Posts

Showing posts with the label 3D GIS

[039] Procedural Modeling Practice in Esri CityEngine: Split, Comp, and Extrude

Image
Combine split, comp, and extrude commands to reinforce core CGA concepts through a practical exercise. This tutorial provides a hands-on exercise to practice the core procedural modeling commands in Esri CityEngine. By constructing a specific architectural form step-by-step, you will learn how local coordinate systems shift during extrusion and how to use the Model Hierarchy to track your progress accurately. We have concluded our basic lessons on the split command in the previous sessions. The initial shape for this exercise is a rectangle 30m wide and 10m deep. The bottom edge is designated as the first edge. img 1 : Initial 30m x 10m rectangle We will now tackle the challenge of creating the shape shown below using CGA code. Since we haven't covered scale, translations, or coloring yet, we will focus purely on completing the form. img 2 : CityEngine comp and split practice form Tar...

[036] CityEngine comp(): Selecting Sloped Faces with Horizontal, Vertical, Aslant, and Nutant

Image
Learn to target specific building surfaces based on their angle and orientation using sloped-based comp selectors. This tutorial explains how to use the horizontal, aslant, vertical, and nutant selectors in the comp() command. It provides a deep dive into how CityEngine classifies faces based on their normal angles relative to the local coordinate system and explains selector precedence when multiple selectors coexist within a single comp() rule. First, take a look at the example below. img 1 : Sphere model used for selector testing The following code demonstrates how to apply these selectors to the sphere shown above. CGA Code Example and Visual Results Lot1 --> primitiveSphere(10, 10, 10) Horizontal Lot2 --> primitiveSphere(10, 10, 10) Aslant Lot3 --> primitiveSphere(10, 10, 10) Vertical Lot4 --> primitiveSphere(10, 10, 10) Nutant Horizontal --> comp(f){horizontal : color(1,0,0) X.} Aslant --> comp...

[009] How to Generate Basic Streets in CityEngine

Image
Learn how to generate basic streets in Esri CityEngine using the Street Creation tool. The built-in Street tool is best for conceptual networks rather than highly detailed engineering blueprints. Its greatest value lies in automatically dividing geometry into 'Street', 'Sidewalk', and 'Joint' shapes, which act as immediate triggers for your CGA rules. This tutorial covers how to create street networks, adjust sidewalk width, and understand Start Rules (Street, Sidewalk, Joint) for CGA-based procedural modeling. The Street Creation tool is arguably one of the most frustrating features in CityEngine. However, it contains fundamental concepts you must understand before diving into CGA coding, so we need to cover it briefly. First, let me explain why it can be frustrating: it is terrible at handling highly curved or sloped roads. It is incredibly difficult to perfectly replicate a complex, real-world en...

[007] How to Perform Viewshed Analysis in CityEngine

Image
In this tutorial, you will learn how to use the built-in Viewshed Creation tool in CityEngine. We will move beyond traditional 2D line-of-sight mapping to perform highly accurate 3D visibility analysis, taking into account terrain, building heights, and precise camera angles. In landscape review reports or environmental impact assessments, viewshed analysis is a methodology you will frequently encounter. Originally used in telecommunications to identify radio wave shadow areas, it has been widely adopted in landscape architecture to evaluate changes in visual obstruction before and after a construction project. Let's look at a common visual example of how viewshed analysis is typically presented. [img 1 : Traditional 2D viewshed analysis example showing red visible areas] This is a viewshed analysis conducted from position 1, where the red areas indicate the regions that are visible from that specific point. ...