away3d / away3d-core-fp10

Away3D engine for Flash Player 10
http://www.away3d.com
33 stars 11 forks source link

Outline breaks when resizing 3D object #2

Open Walmink-zz opened 13 years ago

Walmink-zz commented 13 years ago

Also posted on the Google Code group. http://groups.google.com/group/away3d-dev/browse_thread/thread/79f85e6e1d8874bd/b71599376daec637

No response so far and it seems to be a bug, so therefore the repost over here.

I noticed someone with the same issue (http://groups.google.com/group/ away3d-dev/browse_thread/thread/40d9d1d35d69152a/9ff4db4cb0c7ce5f? lnk=gst&q=outline#9ff4db4cb0c7ce5f), but his question was not answered.

Basically, when you apply an WireFrameMaterial as the outline for a cube, it works fine. However, when you change a dimension (w/h/d) of the cube, the outline often (about 1/2 of the time you change dimensions) breaks.

Here is a little demo that show the problem (use sliders for resizing the box): http://away3dtest.walmink.com/wireframetest/WireFrameTest.swf

Here are some screenshots to show the problem: A box with outline applied, working fine: http://away3dtest.walmink.com/wireframetest/box_outline.png After the dimensions have been changed, the outline breaks: http://away3dtest.walmink.com/wireframetest/box_outline_broken.png

I tried many things, but the issue persisted:

The only thing that seems to work is creating a new cube with the right dimensions and replacing the old cube with it. This may work for a simple cube, but I want to create a complex shape or a lot of cubes changing size, so recreating it every cycle would kill the performance.

Is seems to me to be a bug, or an undesirable behavior at least. Does any of the developers or expert users here know what causes this and if there is some kind of fix for this? (I am new to 3D modelling, so I haven't dared to look at the Away3D source code yet :-)