PDA

View Full Version : Offline viewpoint rendering



Martin Peniak
07-21-2008, 11:04 AM
Hi guys,

We have one window using sdl, which displays a specific viewport of a car with all environment. The car has a camera and now we would like to get the view from this camera and pass it to another application for further processing. We don't want to display this data, just save it and pass it to another program via ports.

What would be the most efficient way to do this please?
Thanks in advance,
Martin

Zengar
07-21-2008, 12:14 PM
Use the framebuffer object ( FBO (http://www.opengl.org/registry/specs/EXT/framebuffer_object.txt) ) to render the scene, then read the image with glReadPixels. If you want to be fancy, you can try utilizing the pixel buffer object as described here (http://http.download.nvidia.com/developer/Papers/2005/Fast_Texture_Transfers/Fast_Texture_Transfers.pdf), but this will probably be an overkill in your situation.