Author Topic: texture  (Read 3719 times)

Offline Simdanfeg

  • byte
  • *
  • Posts: 41
    • View Profile
texture
« on: May 07, 2012, 03:31:57 am »
Hi,Could I use the engine to one of surface texture?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: texture
« Reply #1 on: May 07, 2012, 08:10:55 am »
What ???

Offline Simdanfeg

  • byte
  • *
  • Posts: 41
    • View Profile
Re: texture
« Reply #2 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: texture
« Reply #3 on: May 08, 2012, 08:34:50 pm »
I still don't get the question... ???

Offline Simdanfeg

  • byte
  • *
  • Posts: 41
    • View Profile
Re: texture
« Reply #4 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: texture
« Reply #5 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...

Offline Simdanfeg

  • byte
  • *
  • Posts: 41
    • View Profile
Re: texture
« Reply #6 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: texture
« Reply #7 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.
« Last Edit: May 09, 2012, 08:46:06 pm by EgonOlsen »

Offline Simdanfeg

  • byte
  • *
  • Posts: 41
    • View Profile
Re: texture
« Reply #8 on: May 09, 2012, 03:10:30 pm »
 ;D You are my light in the dark . thanks