1

I'm trying to make a level/levels for a game, and the walls are my biggest challenge, because I have to re-scale textures every time I make a new wall of a different size.

Is there a way to have a texture scale automatically when I change the size? For example, I properly scaled the texture on the middle wall (see image), but the smaller (left) and larger (right) walls have skewed textures. I want these to mimic the scale of the middle wall. Is there a node for this?

Thanks!

enter image description here

EDIT:

New node still doesn't help:

EDIT:

Blend file uploaded here: http://www.filedropper.com/walltesting_2

enter image description here

Still not working with new texture: enter image description here

I was playing around with settings, but I can't seem to get it to work (thats why flat was selected). Even with BOX, still doesnt work :/

enter image description here

enter image description here

Vranvs
  • 125
  • 6
  • I should note that the solution here: http://blender.stackexchange.com/questions/22872/unwrap-uv-map-proportionally-to-object-size

    does not work for me. It just causes the texture to become very squished, and I can't change the scale.

    – Vranvs Mar 06 '16 at 01:07

1 Answers1

0

You can do this by using Position texture coordinates.

Just use the Position output of the Input > Geometry node for your texture coordinates. This uses absolute world-space instead of the scaled local-space, so the textures will not be stretched. To get it to map from all directions, select Box on the image texture node.

enter image description here

PGmath
  • 25,106
  • 17
  • 103
  • 199