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.
Render to AVI
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.
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.