www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: mike_pu on May 28, 2012, 05:18:10 am

Title: ktx texture file
Post by: mike_pu on May 28, 2012, 05:18:10 am
please tell me how can i support .ktx texture file. :D
Title: Re: ktx texture file
Post by: EgonOlsen on May 28, 2012, 08:58:50 pm
What's ktx? jPCT-AE supports every file format that Android's Java implementation supports plus everything that can be converted/transformed into a Bitmap or a Drawable. If you can do that with your ktx-format (whatever it is, i can't be bothered to look it up ATM), you can use it.
Title: Re: ktx texture file
Post by: zammbi on May 29, 2012, 02:12:28 am
No support for ktx yet in android: http://code.google.com/p/android/issues/detail?id=31423
Title: Re: ktx texture file
Post by: mike_pu on May 30, 2012, 03:56:39 am
thank your's reply :)
Title: Re: ktx texture file
Post by: arianaa30 on June 08, 2012, 01:35:50 am
By the way King! :),
I've got many .md2 files, but they are all accompanied with .pcx texture files. And I get error for them; they are not supported as well? (.3ds objects are formed as an array; that's why I'm interested in .md2!)
Title: Re: ktx texture file
Post by: EgonOlsen on June 08, 2012, 08:06:10 am
By the way King! :),
I've got many .md2 files, but they are all accompanied with .pcx texture files. And I get error for them; they are not supported as well? (.3ds objects are formed as an array; that's why I'm interested in .md2!)
PCX is an ancient, paletted format. It already was ancient when they deciced to use it for md2. Java doesn't support PCX. However, you can load the textures with any image tool/converter that can load PCX (which should be a lot) and save it as png or jpg. You might have to flip the image in addition (depends on the model).