Author Topic: Md2 and Texture  (Read 4232 times)

Neogta

  • Guest
Md2 and Texture
« on: May 25, 2005, 09:35:38 pm »
Hello, I represent a french team who's making a game for university work using JPCT, and we have a few problems but, one is annoying me right now: How does JPCT handle texture with md2 files, how should look a texture for a md2 model like? and finally is it possible ton anim 3ds files?

Thx for your support

Neo

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Md2 and Texture
« Reply #1 on: May 26, 2005, 09:07:04 am »
Bonjour,   :wink:

jPCT doesn't handle textures for MD2 files. You have to assign the texture yourself to the loaded object. Usually, MD2s already come with a texture (sometimes in PCX format, which needs to be converted first). After loading the model into an Object3D, you just load the texture and assign it to the loaded object. That's all. If you are making the models yourself, then there are no restrictions on how the texture should be build/look.
To animate models imported from 3DS, you have the same options that apply to all the other formats: You can manipulate the mesh itself, use rotations and translations and build a keyframed mesh animation from the model. In the projects section, there is a thread about technopolis, which discusses some of this aspects at the end of the thread. Maybe that helps to make things clearer.

neogta

  • Guest
Md2 and Texture
« Reply #2 on: May 26, 2005, 12:15:53 pm »
thx a lot for your your support and for JPCT 8) ...Pic.Cell will let you know how our project will evolve...  :D