I'm looking for a simple rule to add textures to flat polygons, similar to the Apply Color rule found in the Essential Skills Training tutorials. Any help?
Scott
Solved! Go to Solution.
Texture -->
setupProjection(0, scope.xy, 1, 1) #not necessary for sides
texture("images/bricks.jpg")
projectUV(0)
Texture -->
setupProjection(0, scope.xy, 1, 1) #not necessary for sides
texture("images/bricks.jpg")
projectUV(0)
If it is the start shape, then use scope.xz rather than scope.xy.
Thanks, Z R. That worked perfectly. Now what if I want to extrude the polygon slightly (say between 0-5 feet) but still have the textures? It's fine if the texture is the same for the top and sides (in fact that would be preferred).
Scott
Here's how I do it.
Lot --> extrude(5) #comp(f){all: Texture} #this would texture everything; #the stuff below addresses every side on its own. side: also works, to address all sides. comp(f){ left: rc | right: rc | top: Texture | bottom: rc | front: rc | back: rc } Texture --> setupProjection(0, scope.xy, 1, 1) texture("images/bricks.jpg") projectUV(0) rc --> color(rand,rand,rand)
This is correct as well. Thanks again, Z R.
Scott