How can I prevent texture stretching while scaling a mesh?

pianoman
Fri, 28 Nov 2014 04:49:54 +0000
Asset Creation

Hi all. I would love to be able to create brick and tile walls by taking a wall mesh and non-uniformly scaling it to a desired length and height while preserving the proportions of the brick or tile textures. I’ve tried using world aligned textures, and as long as the walls line up with the world axes, it works great. But as soon as I rotate a mesh, the texture retains its world alignment and swims out of line with the mesh. I played around with the LocalAlignedTexture node, but it doesn’t seem to do anything. How do you use LocalAlignedTexture properly? Or can you somehow rotate the world aligned texture to match the local space of a mesh? Any help would be greatly appreciated. Thanks.

23 posts - 19 participants