Need advance solution

Hello!!

I wanna to create an control animation. As requirement, I must draw a body with 2 legs, then use key to control these 2 legs moving.
I think it’s possible to catch the key event but the problem is how to create a controlable animation (body with 2 movable legs).

Please me an advance. I have spent 2 week to find solution but it’s difficult. :’(

I am using JOGL with eclipse. So it’s better if your advance using JOGL.

Hi!

It is not difficult. Use JOGL-utils or one of my loaders to load the animation in MD3 for example and use the key to select the frame that you want to play. Use Blender with the corresponding plugin to create your animation if you cannot use the animation I used to test this loader (a clone of Lara Croft after a period of anorexia ;)).

The Original poster may not be referring to Animations built in to MD3 files or other files, but actually animating a 3D model or object of their own design. In this case you need to create a key handler for the keyboard commands. Inside the renderer of your JOGL code you will need to create and draw the object and do your own math calculations for how you want to orient the various body components.

This question is really a Graphics question and not just limited to JOGL. I would start with a simple stick figure representation first, unless you do plan on loading MD3,etc files.

Thank for your advance!!

I think it’s a graphics problem not limit in jogl, but I only control 2 legs in simple movation.
I will try with MD3… Then report result.

Thank you!

Could you tell me some library support md3.
I ahve tried org.newdawn.j3d.loaders.md3 but it’s difficult to catch the frame to control it.

Use my source code:
https://tuer.svn.sourceforge.net/svnroot/tuer/
It is ready, there is a working example in it. Use the class md3.MD3Viewer.

Mr. gouessej

Thank you vey much!! I can catch frame number and control it by key :wink:

You’re welcome. Z-Knight, I only wanted to help urlybug_in_japan and my source code has been useful once again :slight_smile:

Just pointing out… beware of the license…!

GPL… lol.

Gouessej has tricked people before into using his samples and then forcing them to opensource their work. Just saying.

Hi!

I assume that urlybug_in_japan can read and then respect the license terms, there is no need of such a controversy:
http://www.gnu.org/copyleft/gpl.html
There is already a copy of this license in the main directory on the SVN repository. I have written in the header of almost each file that I use the GPL, it is not hidden.

I’m really too tired to become angry. If you’re looking for trouble, bother someone else. I’m not perfect, I am sometimes harsh, I made some mistakes in the past but such behaviors do not encourage people to contribute. There are enough people to criticize the use of Java for gaming, we have to stay united to defend our choice and to avoid useless conflicts to invest our time, our money and our energy in more constructive projects.