How to texture multiple tga file on sing .obj file using JPCT in Android?

Started by gkapoor, August 26, 2010, 08:47:30 AM

Previous topic - Next topic

gkapoor

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

zammbi

Jpct doesn't support tga as Java doesn't support tga I believe. Will need to start off and convert them to png.

gkapoor



gkapoor

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


EgonOlsen

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.