Hi Terry, On 3/7/07, Terry Welsh <[EMAIL PROTECTED]> wrote:
Was just trying to understand render bins a little better. It looks like the default opaque bin is 0 and the default transparent bin is 10. Should these be #defined or enumed in some header file so that more complicated bin arrangements can be future-proof and easier to design just by looking at the headers?
This is a good idea. You should probably add these definitions in the header file for StateSet.
Also, I still can't grok why there needs to be a bin number *and* a bin name. It just seems like an extra layer of complication, but I'm probably missing something....
The bin number controls the order in which the drawables are rendered. The bin name specifies what type of bin to put it in. For example, the default "RenderBin" uses state sorting to render drawables with the same bin number. The "DepthSortedBin" sorts drawables by their depth. -Farshid _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
