Rotate Clamped Texture

Blitz3D Forums/Blitz3D Beginners Area/Rotate Clamped Texture

Volturna(Posted 2015) [#1]
As topic title suggests i have a texture loaded with flags 16+32 to clamp U an V and i need to rotate it in game.

So you can understand i have a cube with mutitexture (texture A and texture B). that cube can be rotated (axis Y) every 90º.

Texture A rotates with the cube mesh, but texture B must keep his global orientation.

Since i have both textures clamped, when i rotate texture B it turns all to black.

I understand why this happens, but anyone here have some suggestion so i can create same effect with a different method?


The only solution i think of right now is to have 4 versions of that texture, each one with different rotations (0º, 90º, 180º and 270º)...


Matty(Posted 2015) [#2]
Can you simply transform the mesh uvs instead of rotating the texture?


Volturna(Posted 2015) [#3]
Editing mesh UV will result in rotating both textures. I need to rotate only 1 texture.