[osg-users] Help with OSG_OPTIMIZER
maya leonard
mayaleonard3 at gmail.com
Fri Oct 2 05:36:37 PDT 2015
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
*>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151002/8ac60aeb/attachment-0003.htm>
More information about the osg-users
mailing list