cga shape grammar

17
CGA Shape grammar C. Andujar May 2014 1

Upload: independent

Post on 20-Feb-2023

5 views

Category:

Documents


0 download

TRANSCRIPT

CGA Shape grammar

C. Andujar

May 2014

1

CGA Shape grammar

P. Müller, P. Wonka, S. Haegler, A. Ulmer, L. Van Gool:

Procedural modeling of buildings

SIGGRAPH 2006

http://doi.acm.org/10.1145/1141911.1141931

2

Examples

3

Basic shapes

• Cube

• Cylinder

• Predefined roof types

4

With labeled faces and edges

Shapes

Shape attributes

– Position P = (px,py,pz)

– Size vector (sx,sy,sz)

– Coordinate system (3 vectors)

5

Define an OBB called scope

Push/Pop example

1: A →[ T(0,0,6) S(8,10,18) I(”cube”) ]

T(6,0,0) S(7,13,18) I(”cube”) T(0,0,16) S(8,15,8)

I(”cylinder”)

6

Z

X

P=(0,0,6)

P=(6,0,0)

P=(6,0,16)

Subdivision example

7

Y

Relative size values

8

Assembling solids

• Union of basic 3D shapes

• Extrusion of a building footprint

9

Occlusion tests

10

Example: office building

11

Rule 1

X

Z

facades

sidewings

Rule 2 facades Rule 3

Example: office building

See paper for more examples

18

Homes

19

Results

20

21

150 rules

22

190 rules