Hi Carsten.

Am 17.08.2008 um 06:36 schrieb Carsten Neumann:

> FBOViewport can be instructed to read the data back to cpu memory, the
> field that controls this is sfReadBuffer.

Yes, but there's a if clause that prevents this if the internal format  
of the TextureChunk is of type GL_DEPTH_COMPONENT (and some  
others...), see line 980 and following 
http://www.vrac.iastate.edu/~dkabala/Doc/Code/dev/html/OSGFBOViewport_8cpp-source.html

However, as it uses glReadPixels, it should work (glGetTexImage  
doesn't work with GL_DEPTH_COMPONENT at all...), according to the man  
page 
http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readpixels.html

I'll take another look at it tomrrow - I found a way that somehow  
works (using another fbo viewport with a polygon foreground and a  
custom made foreground) but it's more a work-around than a solution.

Thanks,
Dominik

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to