Multiple textures on one mesh?

Blitz3D Forums/Blitz3D Beginners Area/Multiple textures on one mesh?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

First of all, What are the forum codes?

Secondly, the image is aligned to the mesh through U,V coordinates. All vertices have X,Y,Z,U,V coordinates. X,Y,Z relate to position in space, while U,V relate to texture coordinates.

U and V are values between 0 and 1. 0 meaning leftmost or topmost part of the texture, and 1 meaning the rightmost or bottommost part of the texture. Numberse between 0 and 1 are, amazingly, somewhere in between the left and right or top and bottom of the texture.

Using 0 through 1 allows you to substitute any size image you want for the texture, and the U,V coordinates don't have to be customized for the size of the image.

You need to use a U,V texturing tool in order to get the U,V coordinates to correctly match your mesh. Many modelling programs come with U,V texturing tools.

The image you use for the texture doesn't even have to look like the 'real' image. Take for example the texture supplied with the missile model in the BAIT community project. It doesn't look anything like a missile, but if you load the model into a game or viewer, you will see that it's textured correctly.