I am trying to scatter an asset across a facade which ive been able to do successfully. however when i do so the facade disappears.. How can I keep the facade visible? below is my rule, as well an image of the issue.thanks./**
* File: 120417-rule-02.cga
* Created: 18 Apr 2012 00:01:55 GMT
* Author: alexandergibson
*/
version "2010.3"
attr height = 30
attr floor_height = 4
attr tile_width = 4
attr obstacle = 0
attr residential = 0
attr commercial = 0
attr retail = 0
Building1-->
s(4,0,4)
i("assets/120415-01.obj")
center(xz)
color("#ff0000")
Building2-->
s(1,0,1)
i("/assets/120415-02.obj")
center(xz)
color("#00a600")
Building3-->
s(4,0,4)
i("assets/120415-03.obj")
center(xz)
color("#00a6de")
Lot -->
extrude(height) Building
Building -->
comp(f) { front : Frontfacade | side : Sidefacade | top: Roof}
Frontfacade -->
split(y){{~floor_height : Floor}* }
Floor -->
split(x){ 1: Wall
| { ~tile_width: tile }*
| 1 : Wall }
tile -->
case residential < 0.2 && obstacle < 0.5 : scatterBuilding2
case residential < 1 && residential > 0.2 && obstacle < 0.5 : scatterBuilding
case commercial < 0.2 && obstacle < 0.5 : scatterBuilding3
case commercial < 1 && commercial > 0.2 && obstacle < 0.5 : scatterBuilding
case retail < 0.2 && obstacle < 0.5 : scatterBuilding3
case retail < 1 && retail > 0.2 && obstacle < 0.5 : scatterBuilding
else: NIL
scatterBuilding -->
scatter(scope, 1, uniform) { Building1 }
scatterBuilding2 -->
scatter(surface, 1, uniform ) { Building2 }
scatterBuilding3 -->
scatter(surface, 1, gaussian, center, '0.3 ) { Building3 }
scatterBuilding4 -->
scatter(surface, 0, uniform) { Building1 }