Dear ng,

first of all thanks for the support for my last questions!

I try to get a scene snapshot into a numpy array.
In pure OpenGL I used a QT or glut context and glReadPixels and converted that 
to a numpy array using scipy.
My problem on osg is that the context seems to be deactivated after a 
viewer.frame() call - glReadPixels returns only zeros.
So I guess either I need to keep the context active, reactivate it, or register 
a callback somehow in a post render phase (?).
Furthermore, if I want to use the osg method with a camera-attached osg.Image, 
I'll need to convert the Image.data() to numpy format.
Has sb got an idea (or even a code snippet) that would work in osgswig?

Thanks a lot!
   Mathias
_______________________________________________________________________
Jetzt 1 Monat kostenlos! WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 17,95 EURO/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to