kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

applyRotations() does not behave as expected after Obj/Collada.load(url) is called #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
REPRODUCE THE PROBLEM:
======================
The attached source file will reproduce the problem and is commented, find
the comments for Scenario 1, 2, and 3. 1 & 3 fail, 2 works.
Comment/uncomment the 2 lines associated with each scenario  to see the
problem.

What is the expected output? What do you see instead?
=======================================================
If you set the rotation of an object immediately after loading it
(myMesh.roationsX=90) and you then applyRotations() immediately it will not
rotate the object. If you do the same from onLoadSuccess method the same
results occur.

The only way that works is commented in the code as scenario 2, if you set
the rotation immediately after loading, but applyRotations() from
onLoadSuccess.

What version of the product are you using? On what operating system?
====================================================================
Tested for both Obj and Collada loaders, and tested in version 3.3 stable
and build r1463 using flash player 10.

Important files:
================
Terrain2.obj - 
any 'old mesh, happens to be the one I was playing with at the time and
used to reproduce this.

ApplyRotationsBug.as - 
the minimal reproduction of this issue, just get it to load the mesh and
everything else should be clear from the comments, look for comments
"Scenario 1, 2, and 3"

Original issue reported on code.google.com by davidpar...@gmail.com on 24 Jul 2009 at 3:06

Attachments:

GoogleCodeExporter commented 8 years ago
This issue has been fixed

Original comment by fabric...@gmail.com on 9 Feb 2010 at 9:19