coplanar texture projection

592
4
12-15-2012 10:53 PM
anthonymagdelaine
New Contributor
hello, i' have this problem on my conception of buildings.
i would like to set a random texture on walls but would like to be the same on some parts
i setupprojectionUVW but each split as a different choice of texture.
like shown on this screen:

[ATTACH=CONFIG]19983[/ATTACH]

how can i solve it?
0 Kudos
4 Replies
JoanneO_Brien
Occasional Contributor
you need to set your texture as a constant:
 const wall_tex = "assets/walltex*.jpg"


The reason for this is constants only look at the texture once, so it chooses one random texture for that building wall and sticks with it. If you have it as a function or an attribute then it will choose a new random texture each time.

hope that helps
0 Kudos
anthonymagdelaine
New Contributor
this is exactlty what i need.

big thanks
0 Kudos
JoanneO_Brien
Occasional Contributor
No problems! I had the same issue myself before! 🙂
0 Kudos
MatthiasBuehler1
Frequent Contributor
forum users helping each other ! yay ! 😮
0 Kudos