Texture Quirks...

Blitz3D Forums/Blitz3D Programming/Texture Quirks...

WillKoh(Posted 2004) [#1]
I am making my own little ver of 'SpriteControl' for use in a GUI-system, which has gone surprisingly well for not knowing what I'm doing ;) I'm now on trickier parts (for *me*, I admit) were texture sizing / resizing is important to really understand, and I see that TextureWidth(tex) / TextureHeight(tex) shows no change after using ScaleTexture! Why is this?


N(Posted 2004) [#2]
ScaleTexture does not affect the texture directly, instead think of it as a modifier to UV coordinates on a mesh. U*(1.0/ScaleX) and V*(1.0/ScaleY) is how it's calculated, I think.