texture

Started by Simdanfeg, May 07, 2012, 03:31:57 AM

Previous topic - Next topic

Simdanfeg

Hi,Could I use the engine to one of surface texture?

EgonOlsen


Simdanfeg

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?

EgonOlsen

I still don't get the question... ???

Simdanfeg

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

EgonOlsen

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...

Simdanfeg

Thank you for your patience to answer, it is . How do I know whether it is  proper uv-mapping for the textures?

EgonOlsen

#7
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.

Simdanfeg

 ;D You are my light in the dark . thanks