Yes, I'm having the exact same problem. I can add a Sprite3d at the beginning of the scene but once the first render is called, I get a fixed length error on the objectContainer3d if I try to add another sprite. Hush, did you ever manage to sort this problem?
Thanks On Feb 18, 10:50 pm, Hush <[email protected]> wrote: > 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 theSprite3Dclass. > In our game we need to be able to add/remove these sprites at will. > > Our problem isafterwe 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! To unsubscribe from this group, send email to away3d-dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
