The picking problem can be reproduced with the following OSG content, containing only 2 triangles:
Code:
Geode {
nodeMask 0xffffffff
cullingActive TRUE
num_drawables 1
Geometry {
UniqueID Geometry_0
DataVariance STATIC
useDisplayList TRUE
useVertexBufferObjects FALSE
PrimitiveSets 1
{
DrawElementsUInt TRIANGLES 6
{
0 1 2 3 4 5
}
}
VertexArray Vec3Array 6
{
5455 -1704.02 1112.38
5455 -1607.33 1317.42
5455 -1691.17 1088.37
5457.5 -1608.46 1304.84
5457.5 -1704.02 1112.38
5457.5 -1691.17 1088.37
}
NormalBinding PER_VERTEX
NormalArray Vec3Array 6
{
-1 0 0
-1 0 0
-1 0 0
1 0 0
1 0 0
1 0 0
}
}
}
Refer to the attached picture for how to reproduce the issue.
Again, balls represent intersection points, lines are normal vectors.
The ball showing up on the right triangle is unexpected - I picked the left
triangle.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20798#20798
<<attachment: picking_bug.PNG>>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

