serialized objects contain the User Object?

Started by Disastorm, July 23, 2011, 07:42:43 AM

Previous topic - Next topic

Disastorm

Hello do serialized objects contain the User Object, because it looks like when I tried that, the User Object ends up being null?

EgonOlsen

No, it's not serialized. This isn't a full blown object de-/serializer. All it does, is to store the Object3D into a format that can be loaded very efficiently on Android.

Disastorm

#2
oh ok thanks.  btw i have this problem where im cloning the object and sharing the data and it doesnt seem to be animating, im not sure why.  Im doing the same thing with another object and its working but for one of them the animation isnt working I'm not sure why.  Do you know what I'm doing wrong?

*edit ah i discovered I have to add the original Object3D to the world or else none of its clones will get the animation.  Is this intended?
Also not only that but I need the original Object3D to be within range of the camera for the animation to work???

EgonOlsen

#3
That's not intentionally, but it's simply caused by the way in which the engine handles vertex updates. I'll have a look at it to see if i can improve this.

Edit: I've updated the alpha-zip. It should be able to use unadded/unseen objects for animating the clones now. Please give it a try.

Disastorm

Ah ok thanks Ill try it out.  I had already made a workaround that made it so I had the original object under the ground and it moved with the camera so as to always be in sight but not visible to the user since it was under the ground.  However, thanks for the change though as I should now be able to get rid of that, since it was a bit weird.