Textures..

Started by Hardcoal, October 24, 2021, 08:22:03

Previous topic - Next topic

Hardcoal

Hi.. when youre using a texture scale.. (ScaleTexture)
youre actually scaling the whole Items that uses this texture.
cant you do a personal Texture Scale to a Mesh?

Anyway, what im doing now is im cloning the texture and making it a private texture to a specific mesh
Code

angros47

You cannot scale a texture for just one mesh. But you can modify the UV texture coordinates of that mesh, so texture will be stretched more or less. It would achieve a similar result.

Hardcoal

Code

angros47

You can use VertexTexCoords. You have to do it for each vertex, so it's not so immediate, and it depends on the geometry of your mesh, so unfortunately there is no "universal" method to do it

Hardcoal

Code

RemiD

Quoteyoure actually scaling the whole Items that uses this texture.
cant you do a personal Texture Scale to a Mesh?

have you tried to create another texture with the same width / height, and then copy the texels properties of the oiginal texture to this new texture, and apply a different scale to this new texture (and paint another mesh with it)

never tried but this should work since they would not be considered to be the same texture...

Hardcoal

Instead of copy i simply load it again..
atm its good enough for what i need
Code