Tuesday, March 16, 2010

How to create an adjustable dotted street line – PART 1

Here I will explain how to create dotted lines on the road.
Create a curved line in your viewport and make sure to turn on Enable in Renderer, Enable in Viewport, Generate Mapping Cords and Real-World Map Size under the rendering. Also check Rectangular – change size to Length 0’0.1”, Width 0’6.0”. If you have lines imported from Auto CAD as an Editable Spline, it should have the same options and you can use it the same way.











Now, we need to create a material. I use a standard material and Diffuse color to white (1). Go to Opacity map then choose Gradient Ramp (2,3). Gradient Type is Linear (4). Make two color points next to each other and right click on the left side point. You will get an Edit Properties option then change the color to black. Right side color point is going to white, so you will get a solid black and white color bar (5). Turn on Use Real-World Scale and size is 12' (6,7). This mean is your black and white color total size is 12’. Make sure to turn on Show Standard Map in Viewport (8), so you can see the material. Apply this material to the line. You should get a dotted street line.
You can now move vertex and change the shape. This material follows your new shape.


















If you don’t like to see shadow from this line, right click the line and go Object Properties. Turn off Cast Shadow.

No comments:

Post a Comment