Render to AVI

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
JellyDude
Posts: 9
Joined: Tue Dec 11, 2007 6:35 am
Location: Australia

Render to AVI

Post by JellyDude »

Hi Guys,

With the help of the Revel and XVIDCore libraries, I just modified the CSoftwareDriver2 class to render to an AVI (XVid) file. The interface to Revel is very simple. This could be useful for apps (Like the MyPictures 3D screensaver in particular) to render to a video file instead of the screen.

Have a look at the Revel library anyhow. If this seems like a useful addition, a new driver class would be the trick. I can show you the ~30 lines of new code if required.

Let me know if you find this of interest :- I can take rejections.
Yoran
Site Admin
Posts: 96
Joined: Fri Oct 07, 2005 8:55 am
Location: The Netherlands
Contact:

Post by Yoran »

I am very interested in this addition, because I was just looking for a snippet!
But could this be used to render inline, while the app is runnning, or
should it be launched as a new process using the softwaredriver?
JellyDude
Posts: 9
Joined: Tue Dec 11, 2007 6:35 am
Location: Australia

Post by JellyDude »

I'm writing a (not another one) terrain node, and just tested the driver on it. With the OpenGL driver previously I was getting ~75-100 FPS. With the Software Driver writing the AVI I was getting ~2-4. I think this would be best running to completion in the background.

You may get better performance flushing each CImage to disk each cycle, and joining them as a movie at the end of the app ... But you lose on disk space and it's a bit messier IMO.
tonic
Posts: 69
Joined: Mon Dec 10, 2007 6:18 pm
Contact:

Post by tonic »

Sounds very interesting and useful.

However, revel seems to be GPL - which doesn't make it very attractive for many applications.

Anybody have suggestions on how to get similar functionality easily implemented, while having it under similar license to irrlicht itself, and being cross-platform?
Post Reply