Texturing trimesh with N texture

Hello there,



i'me facing a problem about texturing.

I've a trimesh (merged trimesh from single small polygons) that should be textured with 4 texture.



I tought about multitexturing but i'm stuck with coordinates.

I've 4 opaque (JPG) texture that should be rendered as the scheme following:


|                |              |
| texture 1  | texture 2 |
|                |              |
|                |              |
| texture 3  | texture 4 |
|                |              |

I cannot find any reference about how to get this.
Has anyone any advice to give me? :)

Thank you in advance,
Eduard

On all textures, the coords are 0,0 at the bottom left and 1,1 at the top right.  so for example, the tex coords for texture 4 are (starting bottom left and going clockwise)  .5,0  .5,.5  1,.5  1,0

the problem is that i have 4 different files to load on a single mesh and every texture has the (0,0) - (1,1) range.



can i use multitexturing?