Author Topic: How to Open md2 file?  (Read 7411 times)

Offline LiuFeng

  • byte
  • *
  • Posts: 20
    • View Profile
How to Open md2 file?
« on: August 09, 2007, 04:58:09 pm »
some body tell me  ;D

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: How to Open md2 file?
« Reply #1 on: August 09, 2007, 05:50:29 pm »
By using the appropiate methods in Loader (loadMD2)? I'm sorry, but have you even tried to load it or are you asking "just in case"?

Offline Klaudiusz

  • int
  • **
  • Posts: 75
    • View Profile
Re: How to Open md2 file?
« Reply #2 on: August 09, 2007, 07:01:11 pm »
Please use search option on the forum:)

Have a look into Egon demo,  very short and clear:

http://www.jpct.net/download/tmp/viper.zip

Offline LiuFeng

  • byte
  • *
  • Posts: 20
    • View Profile
Re: How to Open md2 file?
« Reply #3 on: August 10, 2007, 03:14:20 pm »
excuse, but i wonder that how to create a md2 file ;D?????
Some body help me!

Offline Mizuki Takase

  • int
  • **
  • Posts: 97
    • View Profile
Re: How to Open md2 file?
« Reply #4 on: August 10, 2007, 06:23:01 pm »
To load a MD2 file, you will need to use the static method Loader.loadMD2(java.lang.String filename, float newScale) which will return an instance of Object3D that will contain all of your mesh data.


For creating a MD2 file, I usually like to create a 3D mesh in either Blender or 3D Studio Max and then import the 3D mesh into another program called Misfit Model 3D. There, I would have to rig the mesh with bones and create a proper skeleton. Afterwards, I would create animations using the bones that I placed and save as a MD2 file.
Blender can be found here. http://www.blender.org/
Misfit Model 3d can be found here. http://www.misfitcode.com/misfitmodel3d/olh_mm3dformat.html


I hope that helps~!

Offline LiuFeng

  • byte
  • *
  • Posts: 20
    • View Profile
Re: How to Open md2 file?
« Reply #5 on: August 11, 2007, 04:08:47 pm »
thankyou everybody!!!!

Sorry if i'm said English not well, I'm Vietnamese

now, i'm begin learn jpct, and need very much of source code demo for learn

I wish someone can share for me

thankyou very much!     ;D

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: How to Open md2 file?
« Reply #6 on: August 12, 2007, 06:23:02 pm »
In addition to the two examples that come iwth jPCT, the download page (http://www.jpct.net/download.html) offers some more examples/applications...all with source code included.

Offline AcidBurnz

  • byte
  • *
  • Posts: 6
    • View Profile
Re: How to Open md2 file?
« Reply #7 on: December 22, 2007, 12:31:24 am »
Please use search option on the forum:)

Have a look into Egon demo,  very short and clear:

http://www.jpct.net/download/tmp/viper.zip

I hate to resurrect an old thread, but would it be possible to list this download on the homepage? It's helped me a lot and I'm sure it would benefit others too.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: How to Open md2 file?
« Reply #8 on: December 22, 2007, 09:21:51 pm »
I'm glad it helped, but it was never meant to be an official example. But if it is helpful, i can add it add to the download section. But that will take a while, because i've limited access ATM.