Wojciech Lewandowski wrote:
> Yes, because we did not turn former policy off. But we made all the
> steps to make it possible to turn off.  Now its just a mater of
> replacing 1 with 0 in FORCE_COLOR_ATTACHMENT and FORCE_DEPTH_ATTACHMENT
> macros.  Simply change these two #defines or only FORCE_DEPTH_ATTACHMENT
> to 0 and recompile OSG. Now when you don't attach DEPTH_BUFFER it won't
> be implicitly created. Isn't it what you are looking for ?

That's _almost_ what I'm looking for, but not quite. I'm specifically interested in the case where a single Camera creates two FBOs to support multisampling, and I want a depth buffer in one FBO but not the other. (See my original post for more detail.) Currently, I always get a depth buffer in both FBOs which is not what I want.

With your change, if I attach depth to the Camera, then I also get a depth buffer in both FBOs, and if I don't attach a depth buffer to the Camera, then I don't get a depth buffer in either FBO, which is also not what I want. So your solution, as currently coded, won't help with my situation.

However, it's good to know that there are others besides myself who have concerns about the efficiency of the present FBO implementation.

Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to