Author Topic: Multitexturing and UV coords  (Read 2698 times)

Offline yindroid

  • byte
  • *
  • Posts: 21
    • View Profile
Multitexturing and UV coords
« on: April 22, 2012, 12:08:44 pm »
Hi, guys!
I know how to make multitexturing with 2 textures, so can I use more than 2 textures?
And the second question; Is there any way to change UV coords to all multitexture layers? (I managed to change UV coords just for one layer with setTextureMatrix() )

Thanks in advance!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Multitexturing and UV coords
« Reply #1 on: April 22, 2012, 10:15:37 pm »
There's a setting in Config that you might have to adjust to use more than 2 layers. However, the hardware has to Support it or the engine will default back to 2 layers.

You can adjust uv-coords of other layers by using the PolygonManager and by compiling the objects with compile(true, false). But it's a quite expensive operation. I don't recommend to do this frequently. Another option is to use a shader for this.

Bzw: Is this question jPCT or -AE related?

Offline yindroid

  • byte
  • *
  • Posts: 21
    • View Profile
Re: Multitexturing and UV coords
« Reply #2 on: April 23, 2012, 01:22:40 pm »
Hi, Egon. Its AE releated.
have to apologize, it seem I made this topic in wrong section  :-[