Hi, I would like to create a pre-display texture that is base on an iterative pre rendering process
prerender: while(texture not ready) draw a pixel shaded textured quad } render: draw the textured quad For this i use FBO RTT Camera and an overrided myGeometry : public osg::Geometry that perform occlusion queries on normal osg::Geometrys; Code: class myGeometry: public osg::Geometry{ //component geoms osg::Geometry _component[NBComponents]; drawimplementation(){ while not okay{ //perform an occlusion query for each component geoms // update convergence flag based on OccQResults okay=update(okay,occlusionsqueriesresults) } } } } I've chosen to override osg::Geometry in order component shares statesate It work well for one compoenent but i have a steange issue both under linux and windows: ->Debugging fbo with glsldevil shows me a correct execution of the process but when i launch it outside the display seems to get stuck unless i cout some stuff during display and switch alt-TAB between commandline and osgviewer windows: It's seems that curiously queries results are made up to date only with this hack... I havent test it in pure gl/glut so : Could it be a problem in osgviewer Thank you! Cheers, Julien ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28610#28610 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org