首页/ CityEngine/ Cityengine - textured roofs

Cityengine - textured roofs

作者:dreamsong 2019-10-02 20:30:38 CityEngine

# 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)


微信截图_20191002202904.png



阅读:353