1
$\begingroup$

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

$\endgroup$
1

1 Answer 1

0
$\begingroup$

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

$\endgroup$
11
  • $\begingroup$ Still not working, see edit. Thank you for your help though. $\endgroup$
    – Vranvs
    Mar 6, 2016 at 1:16
  • $\begingroup$ @Vranvs That's strange, box mapping should have fixed that. Let me try something. $\endgroup$
    – PGmath
    Mar 6, 2016 at 1:24
  • $\begingroup$ @Vranvs Is it possible you could upload your .blend (or just the relevant parts of it) so I could take a look at it? $\endgroup$
    – PGmath
    Mar 6, 2016 at 1:30
  • $\begingroup$ Added a link to my blend file.. see edit. :) $\endgroup$
    – Vranvs
    Mar 6, 2016 at 1:33
  • $\begingroup$ Crap, Im not sure how to include the material with the file $\endgroup$
    – Vranvs
    Mar 6, 2016 at 1:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .