Spot on Texture

Blitz3D Forums/Blitz3D Programming/Spot on Texture

Well, normally, the texture co-ords should range between 0 and 1. But since you've scaled the texture, you will have scaled it's movement too.

You wrote

Then I have a Texture of a Circle In Slot2 Clamped U and V it's 64,64. I had to Scale the Texture to .01 x .01.

Currently I have the Circle multitextured on top of the Terrain. My TexturePosition is 49.5 x 49.5 to Center it on the Terrain.



You have scaled the texture to .01 which is a 100th it's normal size. To get the texture in the middle you have set the textures position to 49.5, which is half of 100.

Since you scaled the texture down, you've scaled it's movement down by the same amount. Just remember the positiontexture is more of a percentage.if you scale the mesh up, 49.5 will still be the centre. Only scaling the actual texture will change it's positioning.

Hope that made some sense ;)