Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline breaks when resizing 3D object #2

Open
Walmink-zz opened this issue Mar 21, 2011 · 0 comments
Open

Outline breaks when resizing 3D object #2

Walmink-zz opened this issue Mar 21, 2011 · 0 comments

Comments

@Walmink-zz
Copy link


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:

  • different materials
  • different render modes
  • remove & add cube from scene
  • add & remove material
  • updateMesh function on cube
  • forceUpdate property on true for view

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant