<div dir="ltr"><pre>Hi Robert,<br><br>I'm looking for TriangleLists that do not reproduce the same vertices in VertexArray.<br><br>---------------------------------------------<br>For example I want this:<br><br>DrawElementsUInt TRIANGLES 5766<br>{ <br>2 0 1 2 1 3 1 2 4 1<br>}<br> <br>VertexArray Vec3Array 1024<br>{<br>-291.43 -202.75 266.13<br>-272.63 -202.75 267.03<br>-253.83 -202.75 265.69<br>-235.03 -202.75 267.56<br>-235.03 -202.75 297.56<br>...<br>}<br><br>---------------------------------------------<br></pre><pre>but I'm getting this:<br><br>DrawElementsUInt TRIANGLES 5766<br>{ <br>0 1 2 3 4 5 6 7 8 9<br>}<br><br>VertexArray Vec3Array 1024<br>{<br>-253.83 -202.75 265.69<br>-291.43 -202.75 266.13<br>-272.63 -202.75 267.03<br>-253.83 -202.75 265.69<br>-272.63 -202.75 267.03<br>-235.03 -202.75 267.56<br>-272.63 -202.75 267.03<br>-253.83 -202.75 265.69<br></pre><pre>....<br>}<br></pre><pre>Thank you,<br></pre><pre>Maya<br></pre><pre><br>Hi Maya,
What do you mean by unique?
Robert.
On 1 October 2015 at 22:04, maya leonard <<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">mayaleonard3 at gmail.com</a>> wrote:
><i> Hello OSG developers,
</i>><i>
</i>><i> I'm trying to have all my VertexArray outputs unique in my osg output
</i>><i> file. I tried using set OSG_OPTIMIZER=INDEX_MESH and other settings, but my
</i>><i> VertexArray always has duplicates.
</i>><i>
</i>><i> The osg output file is from osgUtil::DelaunayTriangulator.
</i>><i>
</i>><i> I tried using the osgconv tool, but have the same problem.
</i>><i>
</i>><i> Can someone point me in the right direction to have unique VertexArray
</i>><i> outputs?
</i>><i>
</i>><i>
</i>><i> Thank you,
</i>><i> Maya
</i>></pre></div>