Hi Robert,

I'm looking for TriangleLists that do not reproduce the same vertices
in VertexArray.

---------------------------------------------
For example I want this:

DrawElementsUInt TRIANGLES 5766
{
2 0 1 2 1 3 1 2 4 1
}

VertexArray Vec3Array 1024
{
-291.43 -202.75 266.13
-272.63 -202.75 267.03
-253.83 -202.75 265.69
-235.03 -202.75 267.56
-235.03 -202.75 297.56
...
}

---------------------------------------------

but I'm getting this:

DrawElementsUInt TRIANGLES 5766
{
0 1 2 3 4 5 6 7 8 9
}

VertexArray Vec3Array 1024
{
-253.83 -202.75 265.69
-291.43 -202.75 266.13
-272.63 -202.75 267.03
-253.83 -202.75 265.69
-272.63 -202.75 267.03
-235.03 -202.75 267.56
-272.63 -202.75 267.03
-253.83 -202.75 265.69

....
}

Thank you,

Maya


Hi Maya,

What do you mean by unique?

Robert.


On 1 October 2015 at 22:04, maya leonard <mayaleonard3 at gmail.com
<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org>>
wrote:

>* Hello OSG developers,
*>>* I'm trying to have all my VertexArray outputs unique in my osg output
*>* file. I tried using set OSG_OPTIMIZER=INDEX_MESH and other settings, but my
*>* VertexArray always has duplicates.
*>>* The osg output file is from osgUtil::DelaunayTriangulator.
*>>* I tried using the osgconv tool, but have the same problem.
*>>* Can someone point me in the right direction to have unique VertexArray
*>* outputs?
*>>>* Thank you,
*>* Maya
*>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to