Sergey,

That fixed it, thank you!

-B


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Sergey 
Polischuk
Sent: Tuesday, June 19, 2012 1:59 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Error reported when using RGB_16F cubemap as FBO

Hi, Brad

Add this lines and you should be ok:

    texture->setSourceType(GL_HALF_FLOAT);
    texture->setSourceFormat(GL_RGB);

Cheers,
Sergey.

19.06.2012, 05:01, "Brad Colbert" <[email protected]>:
> Hi,
>
> I'm getting an error when I try to use a floating point texture as a cube map 
> for an FBO.  I'm able to repeat the error using the prerendercubemap example 
> where I changed line 223 to:
>
>     texture->setInternalFormat(GL_RGB16F_ARB);
>
> The error I get is:
>
> RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8cd6
>
> My hardware and driver versions are:
>
> HW: NVidia GT 540M
> Driver: 268.30
>
> I have not dug yet to see if this is something in OSG that may be incorrectly 
> setting up the FBO or if it's a fundamental problem.
>
> Any quick ideas?
>
> ...
>
> Thank you!
>
> Cheers,
> Brad
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to