Author Topic: How to texture multiple tga file on sing .obj file using JPCT in Android?  (Read 4205 times)

Offline gkapoor

  • byte
  • *
  • Posts: 12
    • View Profile
Hello,

Please Help me!!!!!!!!! :(

Im having following files

1. subordinate.obj
2. sub_tex_002.tga
3. weap_tex_010.tga
4. weap_tex_012.tga
5. weap_tex_019.tga
6. subordinate.mtl

4 tga texture file and one mtl file of my single .obj file. How can i texture "subordinate.obj" file with these tga file?
 
Thanks & Regards,
gkapoor

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Jpct doesn't support tga as Java doesn't support tga I believe. Will need to start off and convert them to png.

Offline gkapoor

  • byte
  • *
  • Posts: 12
    • View Profile
If i convert these file to png or jpg then how can i texture??

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Have you read the helpful wiki? Might want to start there: http://www.jpct.net/wiki/index.php/Main_Page

Offline gkapoor

  • byte
  • *
  • Posts: 12
    • View Profile
Yes i read it..but not able find anything related to my issue. Do you have any sample or code from where i start use of jPCT-AE in android. Actually i want to load one model character(.obj format) and wants to animate that mode like jump, fight similar to skelelton example but in android using jPCT-AE and obj model. I don't how can i do this by using jPCT-AE...please help me...

Thanks
GKapoor


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11746
    • View Profile
    • http://www.jpct.net
You'll find more information about texturing/file loading here: http://www.jpct.net/wiki/index.php/Loading_models. There should also be some information in various threads, because we already had this question a few times before. What applies to desktop jPCT applies to AE too.
As mentioned, you can't use the tga format, so you have to convert your textures to jpg or png to mention the most popular formats.

About the skeletal animations, that's a totally different story. You'll have to use something like raft's Bones framework (http://www.jpct.net/forum2/index.php?topic=1503.0) for this.