Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: [1] 2 3

Author Topic: Movie Scene  (Read 9378 times)

c.y.p.h.e.r

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Movie Scene
« on: March 15, 2006, 03:33:26 AM »

i am completely new to ogre and game programming. i want to develope a game and i'm looking for a engine to use, i like what i've seen about ogre so far. Part of the requirements for my game is for it to play a video clip (like movie scene). I was wondering if i could do that with this plugin. I would want to transition from 3d rendering to the video and back seamlessly. Thanks in advance.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #1 on: March 15, 2006, 09:07:55 AM »

Yes, this plugin allows video to be played with Ogre relatively easily. Though, having a seemless transition is all up to you getting the same lighting and look when you rendered the video as the actual 3D scene. If you use something like fraps to capture some in game video, then, that should not be a problem.
Logged

grizzley90

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 18
    • View Profile
Movie Scene
« Reply #2 on: March 16, 2006, 06:39:37 PM »

howwwww do you use frap!!! is there a source which we can use or a library of some sort because the only fraps i find is the demo one which doesn't come with a way to compile with an app... I really want to know! Sorry if i seem direct. Ive even asked for movie recording as a feature request. Can you please tell me how we build in fraps? is there a sourcecode for it or what ?  :cry:  :cry:  :cry:  :cry:  :cry:  :cry:  :? Please help !  :cry:
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #3 on: March 16, 2006, 06:41:17 PM »

http://www.fraps.com/

It is an external app, which works very well. If you buy it, you don't have to wrry about length of recordings or watermarks.
Logged

grizzley90

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 18
    • View Profile
Movie Scene
« Reply #4 on: March 16, 2006, 06:43:28 PM »

ok, i knew that, but how does wallaber do it in his stuntplayground? ive been told its fraps but as you said its an external app and all the recording takes place inside the game with nothing on the outsite? im so confused!  :cry:  :cry:
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #5 on: March 16, 2006, 06:50:10 PM »

I have no idea how walaber does it.

But.. i can speculate that he did it one of two ways:
1) Don't record a video at all. Instead, record something like a script, or keystrokes, or motions, and play back a scene according to that (these are how alot of games do scripted scenes).

2) Record screenshots to file.. or even better, grap the contents yourself, and start combining frames into a fast (and not heavily compressed) encoding codec (ie. not mpeg, divx, or theora) - and stream to disk. Then, to playback, just start playing back your codec.

Encoding to a real format like theora, mpeg, divx, etc at runtime is too slow - which is why fraps encodes video into a not very compressed file.You can later go back and compress it with something like theora.
Logged

c.y.p.h.e.r

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Movie Scene
« Reply #6 on: March 19, 2006, 06:13:32 PM »

Hey, thanks for replying. Going to do some experimenting to see what i can come up with.
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
I am new
« Reply #7 on: April 14, 2006, 03:54:11 PM »

Hi,
I have just tried out Ogre a week ago for my game class. I don't know how to import video into my game. Could you please give me some kind of tutorial or sample code asap (cuz my course only 10 weeks)?  Thank you very much inadvance  :mrgreen:
<I know, i am retarted>
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #8 on: April 14, 2006, 05:01:03 PM »

Here is a starting point perhaps: http://www.wreckedgames.com/forum/viewtopic.php?t=140

Google: ffmpeg2theora for a converter app.
Download the prerews listed on the wiki, download Theora plugin from ogreaddons cvs. Or, you can get the source from here:
www.wreckedgames.com/files/TheoraPlugin_source_Mar11_06.zip

Then build the TheoraVideo solution file. VC6 is no longer supported by me, it should work, but if you have any problems you will have to fix them yourself. Of course, you need either Ogre source, or Ogre SDK with CEGUi 0.4.+.
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
thank you
« Reply #9 on: April 16, 2006, 11:09:44 PM »

Yay! i finally got it compile and run. Now i don't know which folder i can put my movie under so that i can play it?
 :D
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #10 on: April 17, 2006, 07:41:25 AM »

Movies are loaded from Ogre resource locations. So, any of the media directories that are listed in resources.cfg (or, if resource locations are generated by code).
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #11 on: April 19, 2006, 05:02:06 PM »

hey, thank you pjcast I can see movie
i am going to write a wrapper class to play movie. Do you have any suggestion?
Thank you in advance for helping me
 :D
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #12 on: April 19, 2006, 06:12:29 PM »

Take what you need from the demo source codes, they are all public domain ;) (whereas the plugin is LGPL).

Integrate the audio system however you like into your own app, and try to keep the qaulity level, and dimensions of the movie file low :)
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #13 on: April 21, 2006, 02:12:26 AM »

i have this error... do you know how to fix it?

Tutorial_2 error LNK2019: unresolved external symbol "public: void __thiscall Ogre::MovieLogic::playMovie(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?playMovie@MovieLogic@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: virtual void __thiscall FirstApp::createScene(void)" (?createScene@FirstApp@@UAEXXZ)

Tutorial_2 error LNK2019: unresolved external symbol "public: __thiscall Ogre::MovieLogic::MovieLogic(class CEGUI::OgreCEGUIRenderer *)" (??0MovieLogic@Ogre@@QAE@PAVOgreCEGUIRenderer@CEGUI@@@Z) referenced in function "public: virtual void __thiscall FirstApp::createScene(void)" (?createScene@FirstApp@@UAEXXZ)

 :oops:  :shock:  :?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #14 on: April 21, 2006, 08:10:18 AM »

I imagine you are using the source code from the CEGUI_TheoraDemo, but are not including the MoveLogic.cpp file in your own application.

All the Movie logic/and sound stuff are not part of the Plugin_TheoraVideoSystem. So, just linking to that will not give you those things ;) The MovieLogic is just an example of how to use the plugin, take what you need from it, and itegrate it into your own app. As for sound, chose either Fmod or OpenAL, and integrate that into your code.. Or, as I am doing with my WGE engine, you can support both at the same time, similiar to how the CEGUI_TheoraDemo works.
Logged
Pages: [1] 2 3