Quantcast
Channel: Answers for "What's the difference between clamp and repeat textures?"
Viewing all articles
Browse latest Browse all 6

Answer by Owen-Reynolds

$
0
0
Ah...looked at that second "what I want" picture again. It can't be done, not by using the Unity cube and changing settings. Asking about Repeat/Clamp was just confusing the issue. The rule for 3D models is, when an object stretches, the texture stretches. You're wanting the system to change that to "when an object stretches, the texture tiles more." That makes sense. It's called planar-mapping. But it takes a special set-up this cube doesn't have. And it won't track the model (if you did get a different cube to look this way, then changed size, the texture would still just stretch/shrink.) In 3D modelling, objects are unwrapped a certain way, using a certain number of materials. The Unity cube has one material, and is unwrapped so the entire texture is pasted 1x1 on each face. Since it uses one material, you can only set the tiling on them all the same way. In other words, you can make the right side tile 1x2, the way you have it, but then every face will tile 1x2. One way would be to make/find a new cube, using three materials (for each pair of aligned faces.) Three materials means you can supply three tilings. Or, could just use 3 small cubes (if the match is correct, they will be seamless.)

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>