Whatever you end up doing, you want to avoid doing the equivalent of
glReadPixels since that stalls the pipe and is relatively slow. I
noticed that this was one of the suggestions in the link provided
below...

-Shayne

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ethan
Fahy
Sent: Wednesday, January 23, 2013 7:24 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Most efficient way to get a single pixel RGBA
froman FBO texture

I should note that my needs are very similar to the ones described in
this post:

http://forum.openscenegraph.org/viewtopic.php?t=5941&highlight=glreadpix
els

I adapted the sample code given at the end of that thread and found that
while I was able to retrieve the correct pixel values, I also was
getting the:

warning: detected OpenGL error 'invalid operation' at after
RenderBin::draw()

warning after every frame, regardless of whether my rtt camera was set
to post render or pre render.  Unfortunately that thread ended 2.5 years
ago without a full resolution to the outstanding questions.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52096#52096





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to