Dear Enrico,

Enrico Borrione wrote:

i need to render my viewport to a texture,
and i was wondering how it can be done in opensg.

Possibly i'd like to "shot" a picture in 16bit floats.

Any ideas? I mined a bit into the old mailing list topics,
but could not find any clue. Thank you,

At the moment, I'm playing around with this and someone pointed the rendertexture lib out to me (since I need to render into a floating point buffer). It's available here:

 http://www.markmark.net/misc/rendertexture.html

 For Linux, you'll need the glew library

 http://glew.sourceforge.net

as well. It basically provides a (sort of) capture mechanism to get any arbitrary OpenGL stuff happening into a pbuffer instead of the normal renderbuffer. Seems to work for me, however there also seem to be issues (possibly just minor things I've overlooked since I didn't spend more than a couple of minutes on it) like messed up depth.

If you manage with it I'd b glad to hear from any problems / solutions you might come across :)

 Best regards,
-.jan.-


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to