Hi Julien,

It's me that submitted this change at
http://www.mail-archive.com/osg-submissions@lists.openscenegraph.org/msg05568.html

It's hard to tell what's going wrong without the full code of your camera setup.
In http://www.opengl.org/registry/specs/ARB/geometry_shader4.txt
error 0x8da8 refers to FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB and the 
document has possible cause for this error.

Regards,
-Fred


----- "Julien Valentin" a écrit :

> Hi,
> I'm trying to make efficient fluid simulation with osg
> I've just found this page :
> http://www.mail-archive.com//msg05568.html
> 
> It look pretty great as my 1 camera per slice code is very CPU time
> consuming.
> 
> I develop a geometry shader that change gl_layer value per primitive.
> It work so i change my texture my texture attachement to camera's FBO
> as follow:
> 
> Code:
> 
> for(int i=0;i<_depth;i++){
> //one cam per slice
> _cameras[i]->attach( osg::Camera::COLOR_BUFFER,tex,0,i,false);
> }
> 
> to
> 
> for(int i=0;i<1;i++){
> //one overalll camera
> _cameras[0]->attach(
> osg::Camera::COLOR_BUFFER,tex,0,osg::Camera::FACE_CONTROLLED_BY_GEOMETRY_SHADER);
> }
> 
> But this change make a crash:
> 
> 
> Code:
> 
> RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8da8
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to