Tile a texture in B3D
Blitz3D Forums/Blitz3D Programming/Tile a texture in B3D
| ||
Hi All, I was wondering, how do you 'tile a texture' in B3D? I know how to apply one and scale it, but how do I tile it? Thanks! |
| ||
Er, scaling a texture IS tiling it. Or at least, that's one way to tile a texture. The two primary methods are: 1) Increase the texture scale. For example, ScaleTexture texture,2,2 will tile the texture twice. 2) Tile the object's UV coordinates. When setting UV coordinates for an object, overlapping the UV coordinates will tile the texture. |
| ||
Ah', #2 makes sense. I was under the impression that scale 2,2 made twice as large because thats what it did on my model. It became very blury and washy looking. I'll take another stab at it and see what I get. thanks for the help. |
| ||
It's the other way around. ScaleTexture tx, 0.5, 0.5 This makes the texture look half as big, so it tiles twice. |
| ||
My bad. What he said, scale the texture down. For some purposes (eg. detail textures on terrain) I'll get down to like .01 |