Tip of the Week
by agoldberg | April 10, 2009 05:24:48 PMThis tip provides an introduction to road style manipulation. CityScape provides numerous parameters to modify road geometry and textures, allowing endless road style permutations. We'll tweak an existing road style in the demo to create styles more suitable for walking paths. We start by creating a simple terrain with a park scene, using an existing road style in the demo world file: Now right-click the 'Main_Street' style, and select 'Duplicate' to copy the style: Right-click the new style, choose 'Rename' and type in a unique name for the duplicated style: Now let's configure the style parameters. We begin by reducing the lane width to 1 meter and changing the default number of lanes to 1. As you change parameters, the style preview and any roads assigned this style will automatically update to reflect the changes: Park paths don't typically have medians, so scroll down and uncheck the 'Median' checkbox: Then do the same for 'Shoulder' to remove the shoulder lanes: The sidewalks aren't really appropriate for the style, so let's change the sidewalk widths to .5 and the sidewalk height to .1: We'll then turn off intersection crosswalks: Setting all the road textures to concrete gets us closer to a park path: We now apply the same texture for the 'Intersection Texture', and change the scale to visually match the road texture scale: Finally, we change the sidewalk texture to something more appropriate: By duplicating our new style, removing sidewalks, and changing the road textures, we can create a dirt path style in a few clicks: With our style modifications complete, we now apply the new styles to our existing roads. Note that we could have applied the style at any earlier time - style modifications are always updated automatically to the roads that use them. To apply a style, simply select the desired roads and double-click the style icon. Let's apply the dirt path first: ...and then apply the park path to the remaining roads (holding 'Shift' while dragging a selection box is helpful here): The styles have been applied, but something doesn't seem quite right. The default 'Rounded' curve type attempts to construct roads using arcs and linear segments. This tends to be convincing for city streets, but feels slightly unnatural for a winding park path: To produce an appearance more natural for park paths, we select all the roads (CTRL+a) and change the 'Curve Type' to 'Cubic' in the right-hand widget pane. We'll also increase the 'Tangent Scale' to 180%: And now we have two new styles that we can re-use to our hearts' content. Try experimenting with the various parameters to create all sorts of interesting styles, and Have Fun! |