modeling urban spaces using procedural …...marcio cabral, sylvain lefebvre, carsten dachsbacher,...

59
Modeling 3D Urban Spaces Using Procedural and SimulationBased Techniques Computational Building Design Peter Wonka Arizona State University

Upload: others

Post on 05-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling 3D Urban Spaces Using Procedural and Simulation‐Based Techniques

Computational Building Design

Peter WonkaArizona State University

Page 2: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

CGA‐Shape

• Procedural Modeling of BuildingsPascal Mueller, Peter Wonka, Simon Haegler, Andreas Ulmer, Luc Van Gool.Siggraph 2006

Page 3: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Results: Shape Interaction

Page 4: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Mayan Architecture and Temples

Page 5: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Editing of CGA‐Shape Grammars

• Interactive Visual Editing of Grammars for Procedural ArchitectureMarkus Lipp, Peter Wonka, Michael WimmerSiggraph 2008

Page 6: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Overview• Problem #1: no direct artistic control

– Solution: instance locators• Problem #2: text‐based grammars

– Solution: visual grammar editing

Page 7: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Markus Lipp, Peter Wonka and Michael Wimmer 7

Direct Artistic Control!

Page 8: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Visual Rule Editing

Page 9: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling Buildings from Floorplans

• Computer‐Generated Residential Building LayoutsMerrell, Schkufza, KoltunSiggraph Aisa 2010

Page 10: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Design Overview

Set of Floor Plans3D ModelArchitectural Program

Rooms & Adjacencies

Client’sHigh‐level

Specifications

Page 11: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Learning Structural Relationships

• Train a probabilistic graphical model.– Compactly represents the 

structure of the data.– Bayesian Network 

• Nodes – probabilities • Edges – conditional 

dependencies• Sample from conditional 

distributions– Use high level specifications

Bayesian Network

Page 12: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Metropolis Algorithm

• Objective Function

• Each iteration, propose a new building layout• Accept with probability

Building Layout

Constant

Cost Function

Page 13: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Proposal Moves

• Slide a wall

Split into two collinear walls

Slide the entire wall

Snap walls together

Page 14: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

The Cost Function

AccessibilityTerm

DimensionTerm

Floor CompatibilityTerm

ShapeTerm

Evaluates the quality of the layout

Page 15: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Floor Plan Optimization

200 Iterations

2,000 Iterations

20,000 Iterations

100,000 Iterations

Page 16: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Different Styles of Architecture

Cottage Italinate

Tudor Craftsman

Page 17: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

17

Results

Page 18: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Results

Page 19: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Results

Page 20: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Procedural Extrustions

• Interactive Architectural Modeling with Procedural ExtrusionsKelly and WonkaACM TOG

Page 21: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Example

Page 22: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Example

Page 23: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Example

Page 24: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Results

Page 25: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Results

Page 26: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Deforming Architecture

• Structure‐Preserving Reshape for Textured Architectural ScenesMarcio Cabral, Sylvain Lefebvre, CarstenDachsbacher, George Drettakis

Page 27: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

OverviewPieces

Systems of equations

Constraintsgeometry+ textures

Solve System for geometry

Result

OfflineOffline

OnlineOnline

User interaction

Solve Systems for textures

For each

Page 28: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Geometry Reshape

• piece = set of textured faces

• one or several openings (portals)

Page 29: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

User control• User controls few vertices.• System computes other vertices positions.

– Trying to satisfy constraints

Page 30: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Reasonable behavior

• Preserve wall angles

• Preserve contacts(e.g. pillars)

• Allow some flexibility in edge length– Long edges more flexible than short ones– As little change as possible

Page 31: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Geometry Reshape

• To be preserved– Angles  Edge directions– Contacts 

• Flexible– Edge lengths– Relative positions of contacts

Strict constraints: Enforce 

Soft constraints:Minimize

Page 32: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Limitations and Future Work

• Portals must be compatible• Detail tiles have strong limitations• 3D models must have indexed textured faces

– It is the case with most game models

• Self collision / Intersection• Add feedback from texture rigidity constraints to geometry

Page 33: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Reshaping 3D Architecture

Page 34: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Pipeline

Page 35: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Finding the longest path

Page 36: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

More Results

Page 37: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Masonry Building Design

• Procedural Modeling ofStructurally‐Sound Masonry BuildingsWhiting, Ochsendorf, DurandSiggraph Asia 2009

Page 38: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Procedural Buildings for Simulation

structurally stable• will look more realistic

• suitable for physical simulations

• react to external forces

Page 39: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Goals

Generate models that are structurally sound

• Inverse Statics

• Special case of brick structures

• Parametric Models as input

unstable input stable output

Page 40: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Related work structural analysis

geometric configuration

rigid block assemblage [Heyman 1995]

linear constraint formulation[Livesley 1978, 1992; RING software]

elastic material

masonry

vs.

analyze material stress

wrong physical model for masonrynot deformable

Page 41: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

procedural building generation

analysis method for masonry

inverse problem

Overview

Page 42: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

ProceduralModel

feasible?Analysis

parameters

Optimization loop

Update Parameters

model fromoutput

parameters

Page 43: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Typical Parameters

• building height• thickness of columns,

walls, arches• window size• angle of flying buttresses

Page 44: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

model #blocks #params #iters time/iter

Cluny 986

4579

10549

45.7 s57.3 s70.0 s106.6 s

arch 10 2 6 0.1 s

SainteChapelle

486

35710

4968

12.5 s26.5 s29.3 s40.1 s

tower 96 32 6 12.5 s

barrel vault 140 1 8 0.6 s

performance

Page 45: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling of Facades

• Instant ArchitectureWonka, Wimmer, Sillion, RibarskySIGGRAPH 2003

Page 46: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling of Facades

• Input: Target building design• Output: Textured 3D models of building facades

Page 47: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling of Facades

• Approach: Split grammars– Used instead of L‐systems– L‐systems simulate growth in open spaces (better for plants and road networks)

– Buildings have stricter spatial constraints and their structure does not reflect a growth process

Page 48: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling of Facades

• Take Photograph• Create abstraction

Page 49: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling of Facades

• Facade  Subdiv(“Y”,3.5,0.3,1r){ firstfloor | ledge | floors}

• Floors  Repeat(“Y”,3){floor}

Page 50: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling of Facades

• floor  Repeat(“X”,tile_width){ Tile }

=

Page 51: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Modeling of Facades

• Tile  Subdiv(“XY”, …){ Wall | Wall |…| A | Wall | … }

Page 52: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Synthesis of Mass Models

• Continuous Model SynthesisMerrell, ManochaSIGGRAPH Asia 2008

Page 53: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

• Inspired by texture synthesis

Example Model

Output Model

Modeling of Mass with Facades

Page 54: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

• Approach:– maintain adjacency constraints between boundary features (e.g. faces, edges, and vertices)

– create planes parallel to the faces of the example model that subdivide the space into basic components to generate novel models

Modeling of Mass with Facades

Page 55: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

• Example

Modeling of Mass with Facades

Page 56: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

• Applied to buildings

Modeling of Mass with Facades

Page 57: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

• Applied to buildings

Modeling of Mass with Facades

Page 58: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Free‐form Architecture

Page 59: Modeling Urban Spaces Using Procedural …...Marcio Cabral, Sylvain Lefebvre, Carsten Dachsbacher, George Drettakis OverviewPieces Systems of equations ... tower 96 32 6 12.5 s barrel

Procedural Mesh Labeling