Help me ! load models md2 in jogl

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Help me ! load models md2 in jogl

tmthanhtri
Any one have code or sample load models from file md2
please share me.
i very need is .

Reply | Threaded
Open this post in threaded view
|

Re: Help me ! load models md2 in jogl

gouessej
Administrator
Hi

I already load MD2 models in my game, I use the MD2 loader of Ardor3D and the renderer based on JOGL 2.0. If you don't want to use the whole engine, you can look at the source code of the loader in order to write your own one:
http://ardorlabs.trac.cvsdude.com/Ardor3Dv1/browser/trunk/ardor3d-extras/src/main/java/com/ardor3d/extension/model/md2
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Help me ! load models md2 in jogl

tmthanhtri
Thank gouessej
so i  dont understanding class Mesh in import com.ardor3d.scenegraph.Mesh;
you can share me class Mesh in your project
i very thank you
Reply | Threaded
Open this post in threaded view
|

Re: Help me ! load models md2 in jogl

gouessej
Administrator
The whole source code of Ardor3D is here:
http://ardorlabs.trac.cvsdude.com/Ardor3Dv1/browser#trunk

The Mesh class is in the "ardor3d-core" subproject.

Ardor3D is not "my" project, I'm only an active contributor, I ported its JOGL renderer from JOGL 1.1.1a to JOGL 2.0 and I still use this engine in my own game.

If you plan to use Ardor3D, you can look at this complete example that displays an MD2 model:
http://ardorlabs.trac.cvsdude.com/Ardor3Dv1/browser/trunk/ardor3d-examples/src/main/java/com/ardor3d/example/pipeline/SimpleMd2Example.java
Julien Gouesse | Personal blog | Website