[osg-users] OBJ Files Rotated When Saved

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Jun 3 13:46:17 PDT 2020


Hi Scott,

This is default behavior, due to different z or y up conventions. It can 
be disabled with the noRotation loader option:
osgconv -O "noRotation" <inputFile> <outputFile>

You can find out what options a certain format support with:
osgconv --format <format_extension>

Regards,
Andreas


On 2020-06-03 22:41, 'Scott Shaw' via OpenSceneGraph Users wrote:
> I ran into an issue today that seems to be a bug within the OSG OBJ 
> writer.
>
> I called osgDB::writeNodeFile(*geometry,fileName) with .obj as the 
> extension and my geometry ended up rotated 90 degrees about the 
> X-axis.  When I called the same function with the same geometry but 
> with .ive as the extension, the geometry looked fine.  I can just use 
> IVE files for now, but I figured I'd let someone know.
> -- 
> You received this message because you are subscribed to the Google 
> Groups "OpenSceneGraph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to osg-users+unsubscribe at googlegroups.com 
> <mailto:osg-users+unsubscribe at googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/osg-users/cc85a9e2-8690-4b01-8f15-3c7bfb6cc138%40googlegroups.com 
> <https://groups.google.com/d/msgid/osg-users/cc85a9e2-8690-4b01-8f15-3c7bfb6cc138%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/1cdbbaba-f760-1f95-b34e-f069f65d4c68%40remograph.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200603/ada88ed2/attachment.html>


More information about the osg-users mailing list