Hi,
In the attached .osg file, the center horizontal and vertical lines
should be red, accomplished by binding colors per primitive set. But
with "useDisplayLists TRUE", all lines are green. Disabling display
lists will fix the problem, but I'm just curious on why this happens -
maybe it's too early in the morning and I'm not seeing the
obvious...please enlighten me.
Regards,
Andreas
Group {
UniqueID Group_5
nodeMask 0xffffffff
cullingActive TRUE
num_children 1
Geode {
UniqueID Geode_12
nodeMask 0xffffffff
cullingActive TRUE
StateSet {
UniqueID StateSet_13
rendering_hint DEFAULT_BIN
renderBinMode USE
binNumber 0
binName RenderBin
GL_LIGHTING OVERRIDE|OFF
}
num_drawables 1
Geometry {
UniqueID Geometry_14
useDisplayList TRUE
useVertexBufferObjects FALSE
PrimitiveSets 10
{
DrawArrays LINES 0 2
DrawArrays LINES 2 2
DrawArrays LINES 4 2
DrawArrays LINES 6 2
DrawArrays LINES 8 2
DrawArrays LINES 10 2
DrawArrays LINES 12 2
DrawArrays LINES 14 2
DrawArrays LINES 16 2
DrawArrays LINES 18 2
}
VertexArray Vec3Array 20
{
-20 20 0
-20 -20 0
-10 20 0
-10 -20 0
0 20 0
0 -20 0
10 20 0
10 -20 0
20 20 0
20 -20 0
-20 20 0
20 20 0
-20 10 0
20 10 0
-20 0 0
20 0 0
-20 -10 0
20 -10 0
-20 -20 0
20 -20 0
}
ColorBinding PER_PRIMITIVE_SET
ColorArray Vec4Array 10
{
0.0 1.0 0.0 1.0
0.0 1.0 0.0 1.0
1.0 0.0 0.0 1
0.0 1.0 0.0 1.0
0.0 1.0 0.0 1.0
0.0 1.0 0.0 1.0
0.0 1.0 0.0 1.0
1.0 0.0 0.0 1
0.0 1.0 0.0 1.0
0.0 1.0 0.0 1.0
}
}
}
}
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org