www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: yindroid on April 22, 2012, 12:08:44 pm

Title: Multitexturing and UV coords
Post by: yindroid 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!
Title: Re: Multitexturing and UV coords
Post by: EgonOlsen 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?
Title: Re: Multitexturing and UV coords
Post by: yindroid 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  :-[