[osg-users] Capture image on iOS get black image

Raymond de Vries reedev at xs4all.nl
Wed Dec 28 23:34:05 PST 2016


Dear Duc,

If you read your own first mail with the code snippet you pasted:

     virtual void operator () (osg::RenderInfo& renderInfo) const
     {
#if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE)
         glReadBuffer(_readBuffer);
#else
         osg::notify(osg::NOTICE)<<"Error: GLES unable to do 
glReadBuffer"<<std::endl;
#endif

I guess that's clear, right?

Cheers
Raymond




On 29-12-2016 2:27, Sebastian Messerschmidt wrote:
> Hi,
> it is hard to tell what is going wrong without further information. 
> For instance it is crucial to call the glReadPixel function in the 
> right moment. Could you provide some example that shows the problem? 
> Also: is the osgscreencapture or the osgviewers 
> screenshot-functionality working?
>
> Cheers
> Sebastian
> -- 
> Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail 
> gesendet.
> Am 29.12.16, 02:06, duc nguyen <osgforum at tevs.eu> schrieb:
>
>
>     hartwigw wrote:
>     > Hi,
>     >
>     > glReadPixels is not supported by iOS.
>     >
>     > Cheers,
>     > Hartwig
>
>
>     But my iOS device use Open GLES 2.0 an it support glReadPixels
>     function
>
>     ------------------
>     Read this topic online here:
>     http://forum.openscenegraph.org/viewtopic.php?p=69789#69789
>
>
>
>
>
>     _______________________________________________
>     osg-users mailing list
>     osg-users at lists.openscenegraph.org
>     http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161229/9f884ab3/attachment-0003.htm>


More information about the osg-users mailing list