Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Jerec

Movies in games

This topic is 6570 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m working on a game and I''d really like to incorperate a nice full screen animated logo for when you first start the game... Like when you start up Diablo 2, there''s a nice full screen movie with the blizzard logo... where can I get information on doing something like this? Could I use AVIs? If so, where could I get info on playing them with directX? Jerec

Share this post


Link to post
Share on other sites
Advertisement
There was a tutorial on Playing AVI''s here on GameDev.net but I didn''t like it. It seemed vague and not very too the point. But maybe that''s because I''m not a C programmer... :-)

So take a look, otherwise look for a reference on the Multimedia API and Video for Windows, I''m pretty sure there''s an include file vfw32.h and vfw32.lib that deals with video for windows, which is AVI''s. And an AVI can have Video, Audio, Text, and MIDI in some cases. Take look!

Oh yah, if you get a video playing properly with sound, POST IT HERE ON GAMEDEV FOR US TO SEE!!! I''d love that, and I think you''d earn a respect from other game programmers... I haven''t seen many.. wait.. *any* games here with AVI''s in them...
- Ben

Share this post


Link to post
Share on other sites
Dude, rad tools cost 10 grand!

AVIs are relatively fast, but they are huge. It would be better to use mpegs, they are slower, but if all you''re doing is displaying a movie, and the speed of the proccessor is fast enough, you''ll be fine. I would suggest to use DirectShow, it will also take advantage of hardware acceleration if it exists(yes, some cards can decode mpegs).

Share this post


Link to post
Share on other sites
Hi!

You could take a look at the DirectMedia SDK (Microsoft). It contains the libraries to use the MediaPlayer2 functionality (DirectShow). You can just give it a window handle and it will play any file (with sound and all) that your MediaPlayer supports (AVI, MPG, etc...) You could even play an MP3 file with it, although their decoder is kinda slow. Nonetheless it''s free and IMHO much easier to use than the VideoForWindows stuff. BTW, the vfw-libraries don''t support all AVI-codecs ... only the old Microsoft codecs, which makes them kinda useless.

MK42

Share this post


Link to post
Share on other sites
Hi,

I coded a AVI-player (using Directshow) a while ago.
Not the actual encoder, but I actually made a Camera-class that was quite easy to use.

So if anyone is interested I can post it or something.

It''s made in VC6. Hope I haven''t deleted it.

/Mankind gave birth to God.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:


Oh yah, if you get a video playing properly with sound, POST IT HERE ON GAMEDEV
FOR US TO SEE!!! I''d love that, and I think you''d earn a respect from other game
programmers... I haven''t seen many.. wait.. *any* games here with AVI''s in them...
- Ben




Who in their right mind is going to spend the time (hours) downloading some sucky
movie file created by a newbie warez kiddie that is probably 10+ megabytes for a
couple of brief seconds? I won''t even download *the* game if it''s over a couple
of MBs.

Share this post


Link to post
Share on other sites
[ sarcasm ]
Well thanks anonymous poster for contributing to the positive learning atmosphere here on gamedev, that just made him feel a lot better and incouraged to learn to program better.
[/ sarcasm ]

Yah right! If you don''t want to help someone with there problems don''t even post. It''s a waste of space on the server and of precious bandwidth as you seem to value so much.
-Ben

P.S. This is why we want to ban anonymous posting... it''s a shield so you can''t earn a bad reputation. Notice all the good posts in this post were by registered users? Hmm... I see a pattern...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!