[osg-users] export to wavefront (obj) of line objects

Maik Nicke maik.nicke at apluss.de
Tue Dec 5 08:18:18 PST 2017


Hi,

I use OpenSceneGraph-3.1.0-VS9.0.30729-x64-release-12752
If I convert line objects like attached example file with osgconv.exe to wavefront I get a obvious wrong result, where the vertices are correct, but the lines in one group are repeat the reference to the first two vertices:

# file written by OpenSceneGraph

mtllib example_line.mtl


g example of line object_0

o example of line object_TestLineObjects_Geometry_0

v 4.06438 -1.35474 4.83852
v 3.79345 -3.79336 6.77393
v 2.70954 3.25152 10.1609
v 2.70961 -2.70954 13.5479
v 3.79345 -3.79336 6.77393
v 2.70954 3.25152 10.1609
v 4.33537 -4.33527 2.90311
v 4.33535 -2.70953 2.90311
v 4.33535 -2.70953 2.90311
v 4.06441 -4.06432 4.83852
v 4.06441 -4.06432 4.83852
v 4.06438 -1.35474 4.83852
# 12 elements written
l 1/ 2/ 
l 1/ 2/ 
l 1/ 2/ 
l 1/ 2/ 
l 1/ 2/ 
l 1/ 2/ 


But I've also discovered that some other cases of line objects work correctly.

What goes wrong?

Thank you!

Cheers,
Maik

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72538#72538




Attachments: 
http://forum.openscenegraph.org//files/example_line_123.osg




More information about the osg-users mailing list