1
Support / Keyframe-based animation
« on: December 27, 2010, 03:39:18 pm »
Hi,
I have a blender model that I animated and exported as seperate objs for each keyframe. Basically all the animation is, is a few things rotating about pivots and I had to check an option in the blender exporter which said "Apply Modifiers" or the keyframes would not carry the rotation information.
Now, that works well, I load each keyframe in an animation object and set the animation to my Object3D, and animate it each frame using obj.animate(index, 2);, etc. That works fine.
What I have done now is create a new object that is meant to surround the first object to a degree. I have basically taken that first model, extruded some sides and deleted the parts I did not extrude. I then exported that as an obj and loaded it in, and is displays fine.
However, I now need it to "latch on" to the first object, so that it rotates simulateously with the first object each keyframe. I could animate the second object manually in blender, but I may not get the rotation angles exactly right and also it will be really tedious to do this. I was thinking of using some better solution in code.
Any ideas?
I have a blender model that I animated and exported as seperate objs for each keyframe. Basically all the animation is, is a few things rotating about pivots and I had to check an option in the blender exporter which said "Apply Modifiers" or the keyframes would not carry the rotation information.
Now, that works well, I load each keyframe in an animation object and set the animation to my Object3D, and animate it each frame using obj.animate(index, 2);, etc. That works fine.
What I have done now is create a new object that is meant to surround the first object to a degree. I have basically taken that first model, extruded some sides and deleted the parts I did not extrude. I then exported that as an obj and loaded it in, and is displays fine.
However, I now need it to "latch on" to the first object, so that it rotates simulateously with the first object each keyframe. I could animate the second object manually in blender, but I may not get the rotation angles exactly right and also it will be really tedious to do this. I was thinking of using some better solution in code.
Any ideas?