To access the tutorials in CityEngine, click Help > Download Tutorials and Examples. After choosing a tutorial or example, the project is automatically downloaded and added to your workspace.
Part 1: Use polygonal modeling
In this tutorial, you will make a simple house using the polygonal modeling tools.
- In the Navigator, double-click 14A_Basic_1.cej from the tutorial folder to open the initial project.
- Select the Polygonal Shape Creation tool.
- Click in the viewport to set the first point on the bottom left corner of the white outline.
- Move the mouse to preview the line.
- Find the snapping line at the top, and click the top left point of the outline.
- Move the mouse, and find the 90 degree snapping line.
- Click to set the third point.
- Do the same for the fourth point.
- Follow the shape outline, and click to set the fifth point.
- For the last point, find the intersection between the parallel snapping line (shown with small parallel signs) and the 90 degree snapping line from the first point.
- Click the first point again to finish the shape.
- To create a 3D house, hover over the polygon.
- Click the orange handle and hold the mouse. Drag up the orange handle.
- To split the back section, hover over the edge, click, go for the parallel snap combined with the edge snap, and click again.
- Hover over the polygon, and drag it up.
- To create the roof, split the front polygon like the last one. Then hover over the edge. When an orange handle appears, drag it up until you snap to the polygon.
- To pull the roof out, first select the Rectangular Shape Creation tool. Snap to the corner, click, snap to the edge, and click again.
- Drag out this polygon.
Depending on what roof you want, you can drag along the green or the blue arrow. Use the blue for now.
- To create a garage, first draw a rectangle, and then drag it out.
- Draw another rectangle, and drag it inward a bit.
- To create a door, draw a rectangle and drag it in.
- Rotate the camera to view the house from above. Click the corner, and follow the snapline until the snapline from the top appears.
- Click and then click the other corner to finish the polygon.
Dashed orange lines appear when snapped.
A small arc appears between the current and the previous line for this snap.
Part 2: Add texturing
The shape is now finished, and you will texture it. You can continue with your scene, or alternatively, open the reference 14A_Basic_2.cej.
- Click the selection tool, and then click the house.
- Open the texturing tool. Click browse, and select the wall_stones texture.
- Double-click to open. For a uniform texturing, select mode-dimensions and assign. To make the bricks smaller, set width and height to 10.
- Now select all roofs. Double-click the first polygon, and then press Ctrl and click the other ones.
- Browse for the roof texture and click assign.
- For the door, pick the door texture. Set the mode to Stretch to polygon, to make the texture fit the door, and click assign.
- Do the same for the garage, with the garage texture.
The house is now finished.
Note:
You can still drag all faces and edges. The texture automatically adapts to new dimensions.
You can find it in the asset folder of the tutorial.