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




Any idea?

Thank you!

Cheers,
Julien[/code]

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





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

Reply via email to