91
Bones / Re: Animation Editor
« on: November 11, 2012, 11:59:29 am »
Hey raft!
Thank you for the reply. I will start working on this today and see how far I get.
**Will edit this post when I have something to show
Regards,
aZen
_______________________________
***Update***
I'm now trying to put everything together. However I have a lot of questions:
1)
Could you please explain what variables the MeshData constructor requires? It is not explained in the JavaDocs. How would you generate this information from the World or the World objects? Or is that not possible?
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/MeshData.html
2)
To contruct Skeleton, we need to create a Joint array. Could you please explain what is expected for the first argument in the Joint constructor (Matrix)?
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/Joint.html
3)
As far as I understand the SkeletonPose is a wrapper for Skeleton. I thought I need to define one SkeletonPose for each key frame of the animation (while using the same Skeleton). But that wouldn't make sense with what I gathered below. Could you please explain what SkeletonPose is used for? Is it just a wrapper for "internal things"?
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/SkeletonPose.html
4)
What do the parameters look like for the SkinData? I can think of multiple ways and would prefere not to use try and error
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/SkinData.html
5)
All right, let's assume I have created the Animated3D. As I understand I just need to create this once. If I have different animations (e.g. walking, jumping, crawling, etc), I just attach different SkinClipSequence to the Animated3D. Can I attach several at once and then change between them?
In the java doc it is written that Animated3D is an Object3D. So I don't need to add anything else to the world to display it? But then how do I color it or add textures?
I have currently a lot of objects with different texture in the world that I want to animate as a whole. Can I make things simpler with using AnimatedGroup?
References:
http://aptalkarga.com/bones/api/raft/jpct/bones/Animated3D.html
http://aptalkarga.com/bones/api/raft/jpct/bones/AnimatedGroup.html
6)
Just making sure I understand correctly: I define a JointChannel for each Joint. This defines how the joint changes from state A to state B. And those JointChannel are then summarized in the SkinClip, which defines the transition from one key frame to another. These transitions are summerized in SkinClipSequence (an animation, e.g. "attack", for our object), which itself can be attached to the Animated3D object.
References:
http://aptalkarga.com/bones/api/raft/jpct/bones/SkinClipSequence.html
http://aptalkarga.com/bones/api/raft/jpct/bones/SkinClip.html
http://aptalkarga.com/bones/api/raft/jpct/bones/JointChannel.html
7)
When I'm done with all these things, would I be able to export everything easily to a file (Collada or Ogre)?
I'm still learning a lot about these things, so feel free to direct me to any additional material that you think might be helpful!
Thank you,
aZen
Thank you for the reply. I will start working on this today and see how far I get.
**Will edit this post when I have something to show
Regards,
aZen
_______________________________
***Update***
I'm now trying to put everything together. However I have a lot of questions:
1)
Could you please explain what variables the MeshData constructor requires? It is not explained in the JavaDocs. How would you generate this information from the World or the World objects? Or is that not possible?
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/MeshData.html
2)
To contruct Skeleton, we need to create a Joint array. Could you please explain what is expected for the first argument in the Joint constructor (Matrix)?
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/Joint.html
3)
As far as I understand the SkeletonPose is a wrapper for Skeleton. I thought I need to define one SkeletonPose for each key frame of the animation (while using the same Skeleton). But that wouldn't make sense with what I gathered below. Could you please explain what SkeletonPose is used for? Is it just a wrapper for "internal things"?
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/SkeletonPose.html
4)
What do the parameters look like for the SkinData? I can think of multiple ways and would prefere not to use try and error
Reference: http://aptalkarga.com/bones/api/raft/jpct/bones/SkinData.html
5)
All right, let's assume I have created the Animated3D. As I understand I just need to create this once. If I have different animations (e.g. walking, jumping, crawling, etc), I just attach different SkinClipSequence to the Animated3D. Can I attach several at once and then change between them?
In the java doc it is written that Animated3D is an Object3D. So I don't need to add anything else to the world to display it? But then how do I color it or add textures?
I have currently a lot of objects with different texture in the world that I want to animate as a whole. Can I make things simpler with using AnimatedGroup?
References:
http://aptalkarga.com/bones/api/raft/jpct/bones/Animated3D.html
http://aptalkarga.com/bones/api/raft/jpct/bones/AnimatedGroup.html
6)
Just making sure I understand correctly: I define a JointChannel for each Joint. This defines how the joint changes from state A to state B. And those JointChannel are then summarized in the SkinClip, which defines the transition from one key frame to another. These transitions are summerized in SkinClipSequence (an animation, e.g. "attack", for our object), which itself can be attached to the Animated3D object.
References:
http://aptalkarga.com/bones/api/raft/jpct/bones/SkinClipSequence.html
http://aptalkarga.com/bones/api/raft/jpct/bones/SkinClip.html
http://aptalkarga.com/bones/api/raft/jpct/bones/JointChannel.html
7)
When I'm done with all these things, would I be able to export everything easily to a file (Collada or Ogre)?
I'm still learning a lot about these things, so feel free to direct me to any additional material that you think might be helpful!
Thank you,
aZen