Depth sorting for transparency happens at a course level in osg.
I think it uses the center of the bounding box of the geometry object.
For your specific example you'll need to place the 6 cube faces into
separate geometries to get
the result you expect.
If you want to make a complex model
Hello,
I have troubles visualizing a 3D model (e.g. an aircraft) loaded using
the readNodeFile() function when this model is inside a semi-transparent
box.
I create the semi-transparent box, set alpha value and enable blending
by
state--setMode(GL_BLEND, osg::StateAttribute::ON);
2 matches
Mail list logo