[osg-users] State problem

Lionel Lagarde lionel.lagarde at oktal.fr
Tue Oct 30 10:17:09 PDT 2007


Hi,

I'm running osgviewer (2.0 and 2.2) with the attached OSG file.

The file is composed of 4 drawables. Each drawable defines its own StateSet.
The last drawable material is:

Material {
  DataVariance UNSPECIFIED
  ColorMode OFF
  ambientColor 1 1 1 1
  diffuseColor 1 0 0 1
  specularColor 0 0 1 1
  emissionColor 0 1 0 1
  shininess 10
}

But the emissive part is not taken into account.
Curiously, the first frame is correct. The corresponding quad is yellow.
In the other frames, the quad is red.

If I remove one or more drawable, or if I change the order of the drawables
in the file, the quad is correctly rendered.


The bad image:


What it should be (I've removed the first drawable):


Please help !!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071030/0f22151b/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moz-screenshot-1.jpg
Type: image/jpeg
Size: 14222 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071030/0f22151b/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moz-screenshot-2.jpg
Type: image/jpeg
Size: 11946 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071030/0f22151b/attachment-0005.jpg>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dummy.osg
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071030/0f22151b/attachment-0001.asc>


More information about the osg-users mailing list