Cityengine – textured roofs


ESRI官方论坛

https://community.esri.com/thread/232803-cityengine-textured-roofs


# dimension of the satellite map
const mapdimension_x = 1251 #change this to satellite image details
const mapdimension_z = 1001 #change this to satellite image details
# offset of the satellite map
const mapoffset_x = -753750.290 #change this to satellite image details
const mapoffset_z = 1038999.780 #change this to satellite image details
Lot–>
extrude(rand(0,0)) Mass
Mass –>
# split building mass into roof and side faces
comp(f){top : Roof | side : Facade}
Roof –> Rooftex
Rooftex –> 
setupProjection(0, world.xz, mapdimension_x, mapdimension_z) 
set(material.colormap, “images/KLADNO_1_9_4.tif”) #change this 
projectUV(0) 
translateUV(0, -mapoffset_x/mapdimension_x, -mapoffset_z/mapdimension_z) 
scaleUV(0,1,-1)

Was this article helpful?

Related Articles