<div dir="ltr">Hi,<div><br></div><div>you can use pseudo loader to rotate the model.</div><div>osgviewer myfile.fbx.(90,0,0).rot</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 30, 2020 at 9:53 PM Ellery Chan <<a href="mailto:ellery.chan@gmail.com">ellery.chan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am having difficulty loading Z-up FBX models into <i>osgviewer</i>. They get re-oriented to Y-up. While examining the code I discovered there is even a <b>ZUp</b> option that the FBX importer recognizes, though it is not advertised in the interface. However, <b>ZUp</b> causes my Z-up models to display Z-down.<div><br></div><div>It looks like there was a little discussion about this problem back in 2009-2010:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><p style="font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(220,161,13)"><a href="https://groups.google.com/d/msg/osg-users/NsXWvx0z7pI/ACrv21RDNdsJ" target="_blank">https://groups.google.com/d/msg/osg-users/NsXWvx0z7pI/ACrv21RDNdsJ</a></p></div><div><p style="font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(220,161,13)"><a href="https://groups.google.com/d/msg/osg-users/VEBQhl65OsI/z3rqyC34imsJ" target="_blank">https://groups.google.com/d/msg/osg-users/VEBQhl65OsI/z3rqyC34imsJ</a></p></div><div><p style="font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><a href="https://groups.google.com/d/msg/osg-users/7C2XFmHLOEQ/GgvYHTGqMEQJ" target="_blank">https://groups.google.com/d/msg/osg-users/7C2XFmHLOEQ/GgvYHTGqMEQJ</a></p></div></blockquote><div>but as far as I can tell, nothing has been done. I'm surprised there hasn't been more discussion about this. Do other people not have problems with this? Do they have Y-up models? Do they add a rotation after the models are loaded? </div><div><br></div><div>I ended up adding a <b>noRotation</b> flag to the FBX importer. The OBJ importer also has a <b>noRotation</b> flag (apparently it assumes the incoming model is Y-up and rotates it to Z-up?), so it seemed consistent to do the same for FBX.</div><div><br></div><div>-ellery-</div></div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com" target="_blank">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/6f42aab9-77ce-4163-8316-f08a92b89595o%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/6f42aab9-77ce-4163-8316-f08a92b89595o%40googlegroups.com</a>.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">trajce nikolov nick<br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/CAO-%2Bzi%3DJBAG3WAEqr%2Bjg%2BWMw2%2Bqga3BGCb-LUaOYQHpfWm7r8g%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/CAO-%2Bzi%3DJBAG3WAEqr%2Bjg%2BWMw2%2Bqga3BGCb-LUaOYQHpfWm7r8g%40mail.gmail.com</a>.<br />