Re: [osg-users] readNodeFile model not visible through a semi-transparent box

2009-07-12 Thread Simon Hammett
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

[osg-users] readNodeFile model not visible through a semi-transparent box

2009-07-11 Thread Gotthard, Petr
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);