Sukender wrote:
What I like with you is that your answers are clear!
Ha!
The only thing that bothers me is: should "write( read(A) ) == A"? As
far as I'm concerned, I would answer "yes". And you?
Yes, for the coordinate system, definitely.
This is not the case when reading FBX and writing, for instance
(regardless of the output format). So I've been scratching my head to
figure out where the problem (bug?) is, and I still don't find a
suitable answer. Maybe something stupid I don't see in my code...
I've noticed the same thing with OBJ. Try this:
osgconv dumptruck.osg dumptruck.obj
osgviewer dumptruck.obj
You get a truck on its side. I agree with you that this is incorrect
behavior. This doesn't happen in conversion to FLT and back to OSG, for
example.
I'm reluctant to use the term "bug" because I think the plugin was coded
this way intentionally, so the code is doing exactly what it was
designed to do. Perhaps it's a "bug" in the design of the plugin, which
was trying to solve a problem that didn't really exist.
When I encountered this issue with OBJ, I wanted to submit a fix for it,
but didn't want to waste time creating a fix that would get rejected
because it might break existing apps. So, thank you for bringing up this
topic. :-) If we all agree this is wrong, then we can fix the issue,
accept the consequences, and be better off several months down the road.
I ended up working around the OBJ issue by using the ROT pseudoloader to
apply a -90 degree rotation around the x axis:
osgconv dumptruck.osg.-90,1,0,0.rot dumptruck.obj
osgviewer dumptruck.obj
You should be able to do the same, in lieu of any code change.
-Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org