www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: gkapoor on August 26, 2010, 08:47:30 am

Title: How to texture multiple tga file on sing .obj file using JPCT in Android?
Post by: gkapoor on August 26, 2010, 08:47:30 am
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
Title: Re: How to texture multiple tga file on sing .obj file using JPCT in Android?
Post by: zammbi on August 26, 2010, 09:04:54 am
Jpct doesn't support tga as Java doesn't support tga I believe. Will need to start off and convert them to png.
Title: Re: How to texture multiple tga file on sing .obj file using JPCT in Android?
Post by: gkapoor on August 26, 2010, 09:18:35 am
If i convert these file to png or jpg then how can i texture??
Title: Re: How to texture multiple tga file on sing .obj file using JPCT in Android?
Post by: zammbi on August 26, 2010, 09:31:08 am
Have you read the helpful wiki? Might want to start there: http://www.jpct.net/wiki/index.php/Main_Page
Title: Re: How to texture multiple tga file on sing .obj file using JPCT in Android?
Post by: gkapoor on August 26, 2010, 03:45:15 pm
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

Title: Re: How to texture multiple tga file on sing .obj file using JPCT in Android?
Post by: EgonOlsen on August 26, 2010, 08:05:36 pm
You'll find more information about texturing/file loading here: http://www.jpct.net/wiki/index.php/Loading_models (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 (http://www.jpct.net/forum2/index.php?topic=1503.0)) for this.