www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Simdanfeg on May 07, 2012, 03:31:57 am

Title: texture
Post by: Simdanfeg on May 07, 2012, 03:31:57 am
Hi,Could I use the engine to one of surface texture?
Title: Re: texture
Post by: EgonOlsen on May 07, 2012, 08:10:55 am
What ???
Title: Re: texture
Post by: Simdanfeg on May 08, 2012, 10:37:05 am
EgonOlsen

        Sorry for the late reply, I want to say jpct texture mode principle. By the way, i want to write a book to introduce jpct.can i?
Title: Re: texture
Post by: EgonOlsen on May 08, 2012, 08:34:50 pm
I still don't get the question... ???
Title: Re: texture
Post by: Simdanfeg on May 09, 2012, 05:33:57 am
e.g
now i have a texture image(Multiple images in one piece) and a complex 3ds file.now i just call thing.setTexture(texture). Engine will correct it covered with texture? if not ,what can i do for it? please
Title: Re: texture
Post by: EgonOlsen on May 09, 2012, 07:06:46 am
Your file might or might not contain proper uv-mapping for the textures. If it does, a setTexture(...) will use these mappings to apply the texture. If it doesn't contain a mapping, setTexture(...) will still work, but the results might not be satisfying. The engine can't know how to apply a texture if the file contains no mapping.
 
I'm still not sure if this was your question though...
Title: Re: texture
Post by: Simdanfeg on May 09, 2012, 12:38:12 pm
Thank you for your patience to answer, it is . How do I know whether it is  proper uv-mapping for the textures?
Title: Re: texture
Post by: EgonOlsen on May 09, 2012, 12:47:44 pm
Just add a texture. If it looks good, fine. If not, there might be no mapping or at least no mapping that fits the texture. Usually, if you download a model and it comes with a texture, it has a mapping. If the download contains no textures, chances are that there's no mapping in the file either.
Title: Re: texture
Post by: Simdanfeg on May 09, 2012, 03:10:30 pm
 ;D You are my light in the dark . thanks