[osg-users] Viewer slaves and RTTs
Johny Canes
psijsma at gmail.com
Sat Feb 18 11:50:50 PST 2017
Oi mate,
Ouch! This is indeed the fix.
Code:
texture2D->setInternalFormat(GL_RGBA);
I had commented this out thinking the implicit default was maybe better suited.
Thanks!
mp3butcher wrote:
> Hi Steal
>
> There's few incoherencies in your code
> -targetted Texture2D is not fully setup ( you don't even set the internal texture format)
> -A RenderToTexture camera should always be setted with FBO implementation
>
> I think(as suggest Sebastian) the best course for you would be take the osgmrt example as a start and transform it until it fit your purpose..
> ...or searchingthe forum for more info on OSG RenderToTexture Camera system.
>
> Keep cool dude:)
> Cheers
>
>
> Steal wrote:
> > Hi,
> >
> > So to repeat myself again: camera renders properly to its color attachment, but also the screen (undesired).
> >
> > If I tell this camera to act as / use an FBO, it does neither, it is i.e. 'black'.
> >
> > Thank you!
> >
> > Cheers,
> > Johny
>
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70267#70267
More information about the osg-users
mailing list