Hey guys,
So I'm basically going like..
LoadObjectWithChildren ( 1, "object.3ds" )
The file has a single 3D box in it that has keyframe animations applied. When I used GetObjectChildID, it returns a value of 100001, and I can use this to texture THAT object with SetObjectImage ( 100001, 1, 0 ) for example.
I'm using other functions, like SetObjectAnimationSpeed, which I set to the "parent" object, like SetObjectAnimationSpeed ( 1, 10.0 )
This setup works totally fine me on PC. When I use GetObjectNumChildren ( 1 ) it returns 1 (since it's the only object in the 3ds Max scene), if I add more objects there, that will increase.
So all good, until I go to load it up on mobile, and then I get the error "Failed to set animation speed for object 1 - object is not set up for animation, use LoadObjectWithChildren.."
Weird, because I'm already using LoadObjectWithChildren..
If I then comment out //SetObjectAnimationSpeed and //SetObjectImage - it will then at least not crash, however no objects are visible. When I query GetObjectExists(1) it says it exists, but now GetObjectNumChildren(1) will return 0.
Again, if I run it on PC it works totally fine no problems. I just can't seem to figure out what's wrong for mobile.
I've tried to call Sync() straight after LoadObjectWithChildren to try and update the scene, to no avail. Sometimes the scene will work randomly and it'll load the object, but promptly crash when I try to do anything else before not working at all when I re-run it. Not sure what that's about.
Is the .3ds format sketch-y with mobile? I've got other static objects in the world scene that just don't show on mobile either even when I get rid of the animated object. Again it runs fine on PC.
Any ideas?