Hey all, turns out I don't know how to use google groups and just
replied to an old thread so the post just went to the author hehe.

We are developing a game using Away3DLite. Specifically version 1.0.2
from the svn repository. In this version, you have the Sprite3D class.
In our game we need to be able to add/remove these sprites at will.

Our problem is after we call

view.render()

we can no longer add or remove sprites as some Vectors all get set to
fixed. These Vectors are located in /away3dlite/containers/
ObjectContainer3D.as

If you look in the functions addSprite and removeSprite, a number of
Vectors are manipulated. This is ok as long as you add everything
before calling view.render()

I have done a bad hack to get addSprite to work by setting these
vector's fixed property to false, then manipulate them, then set the
property back to true. I realise this is not a good way!

It turns out doing the same thing for removeSprite breaks the
rendering completely by throwing out of bounds exceptions.

Just wondering if there is a solution to this, or if we're just doing
things wrong in the first place. Thanks!

Reply via email to