ScaleTexture()

Blitz3D Forums/Blitz3D Beginners Area/ScaleTexture()

The3Leaf(Posted 2011) [#1]
I read on the forums that ScaleTexture() tiles the texture. So I decided to use this on a terrain, but the larger I make the U and V scale the worse the detail gets. I'm wondering what exactly ScaleTexture does and if there is a way to tile textures on a mesh or terrain.

Thanks.


GfK(Posted 2011) [#2]
scale, the texture down - not up.


The3Leaf(Posted 2011) [#3]
GfK I just tryed what you said, But it still loses detail. Actually actually it looks the same in the negatives as it does in the positives.


GfK(Posted 2011) [#4]
Detail loss might be as a result of mipmapping. But to explain what I said in post #2:
ScaleTexture(tex,0.5,0.5)
This will repeat the texture twice, on both axes.

ScaleTexture(tex,0.25,0.25)
This will repeat the texture four times, on both axes.

...etc.

Last edited 2011


The3Leaf(Posted 2011) [#5]
Ah Yes this works perfectly. Thank you very much for you help and time.