Beruflich Dokumente
Kultur Dokumente
Esri CityEngine
TUTORIAL 1: ESSENTIAL SKILLS
Content
Part 1: Setting up a new project
10
14
A new project has been created and shows up in the Navigator (by default located in the upper left
corner of the CityEngine window). The default folders that store your project data, like assets, rules
and scenes, are already present, though empty.
Next, we create a new scene:
Use copy paste (Windows and Linux: ctrl-c and ctrl-v // Mac OS: command-c and
command -v) on your keyboard or from the right mouse button context menu
Copy both the contents of the assets and rules folders. Your Navigator now should look
like this:
Approximately 500 streets were created, but we cannot yet see them all in the viewport. Lets frame
the view to see them all.
Hit the a key to frame all objects in the viewport. Your viewport should look similar to this:
Your Scene Editor should now contain a new Streetnetwork layer, containing a network of Blocks,
Graph Segments and Shapes and look like this:
The Current Mouse Scheme dropdown lets you choose among different schemes of other 3d
applications.
For those, who have a 3d Connexion 3d Mouse (http://www.3dconnexion.com/), there are specific
preferences too:
Another tip for efficient navigation of the constant use of the frame key f. There is also a frame
button in the viewports toolbar:
Note: Start using the tumble/pan/zoom based Navigation as early as possible. After a few minutes, it
will become natural to you.
Selection
To interact and edit the objects in your scene, you need to select them. Selecting is done easily:
Enter the Selection Tool (keyboard shortcut q), using the left mouse button. Select them by just
clicking into the viewport!
Note: The F9 F12 keys toggle the visibility of the 4 main object types: Map Layers, Graph
Segments, Shapes and Models. Deactivating the visibility of other object types usually simplifies
making proper selection.
Selection types
Single click:
The left-to-right rectangular selection is usually used to select tiny objects such as single Street
Graph Nodes when there are many objects occupying the same space.
Modifier keys
The ctrl and shift keys toggle the different selection modes. The modes are also listed in the
Select Tools submenu in the toolbar.
3d Model Generation
How are 3d Models generated in CityEngine ?
CityEngine is a Procedural Modeling Application. This means that CityEngine uses rules to generate
the 3d Model:
Assigning Rules
In this tutorial, the rules are already provided. In fact, we have copied them in the first steps of this
tutorial. So lets use them!
Select one Block and change its Subdivision Parameters in the Inspector from Recursive
Subdivision to Offset Subdivision. (For more details on Block Subdivision and Dynamic City
Layouts, work through Tutorial 2.)
10
Select one Shape within the Block, then use the context menu to Select Objects of Same
Group.
Drag and Drop the building.cga Rule File onto the selected Shapes (highlighted orange).
After dropping the Rule on the Shapes, the Model Generation is automatically started. Your
first buildings appear (Make sure, the visibility of Models is activated, toggle with F12):
11
Generated Models can also be deleted in the right mouse button context menu:
Select the footprint Shape again and hit ctrl-g // Mac OS: command-g or use the
Generate button in the toolbar to generate the Model on the selected Shape.
12
New variations of the buildings can be created by changing the Seed value:
Use the Update Seed and Generate new Model button in the toolbar or hit ctrl-shift-g //
Mac OS: command-shift-g.
13
Open the rule file by either double clicking the CGA rule file in the Navigator or use the Rule
File link in the Inspector.
The Rule Editor provides two different ways to visualize the rules: Textual and visually
Toggle the different views with the following buttons in the Rule Editors toolbar:
Most users prefer editing code as text. But to visualize the flow of the rules, the Visual CGA
variation is obviously more intuitive.
14
You will notice that the extrude operation is driven by the attribute height.
Change the height values to other values you like by clicking on the numbers and entering
new values. Note the changes in the text editor after saving the rule file!
Right-click on the grey canvas and add a new Rule, name it Roof.
15
Connect the Lot rules Shape named Shape with the Roof rule. A new grey connection line
should get created. Note that the Shape priorly named Shape is renamed to Roof, now
pointing to the rule called Roof.
Right-click into the new Roof rules rule body, slightly above Shape. Add a new
roofHip operation:
16
Once you have saved your rule, youre at the same state as the provided rule file called
building_02.cga.
Select your building again and generate it again. It now shows the geometry of a roof, which
concludes this tutorial.
17
18