away3d / away3d-core-fp11

Away3D engine for Flash Player 11
http://www.away3d.com
Other
640 stars 273 forks source link

Projector doesn't work. Fire an error. #585

Closed iY0Yi closed 11 years ago

iY0Yi commented 11 years ago

Here is a code for reproducing. https://gist.github.com/GoroMatsumoto/5779482 Projector is at line122.

TypeError: Error #1009: Cannot access a property or method of a null object reference
at away3d.tools.utils::Bounds$/parseObjectBounds()[/Users/Goro/As3Library/away3d/tools/utils/Bounds.as:228]
at away3d.tools.utils::Bounds$/getMeshBounds()[/Users/Goro/As3Library/away3d/tools/utils/Bounds.as:36]
at away3d.tools.utils::Projector$/remapMesh()[/Users/Goro/As3Library/away3d/tools/utils/Projector.as:79]
at away3d.tools.utils::Projector$/parse()[/Users/Goro/As3Library/away3d/tools/utils/Projector.as:62]
at away3d.tools.utils::Projector$/project()[/Users/Goro/As3Library/away3d/tools/utils/Projector.as:55]
at SimpleAwayTest/initObjects()[/Users/Goro/Desktop/Test/src/SimpleAwayTest.as:122]
at SimpleAwayTest()[/Users/Goro/Desktop/Test/src/SimpleAwayTest.as:56]
JohnBrookes commented 11 years ago

Just for reference...

Bug is Bounds.getMeshBounds(mesh) _container Dictionary is not set

Also Projector doesnt work with compactSubGeometry.

Greg209 commented 11 years ago

Another one for referene, the bug in Bounds.getMeshBounds has now been fixed in 18fb5748963631bd52107fb0ba1d21ca53161de9

Fabrice3D commented 11 years ago

Bounds was just one of the problems. It should now work on both type of ISubgeometry (compact and classic) updated this morning.