AnsweredAssumed Answered

Building texture

Question asked by tgdang-esrisa-esridist on Oct 30, 2012
Latest reply on Oct 31, 2012 by MBuehler-esristaff
Hi,

I am trying to add random texture to the my buildings by using the code provided in the tutorial with minor changes. When I assign the rule to the building polygons and generate, the result was mixed: some buildings has texture applied to them, while other remain blank (white). In some case, only one or two sides of the building have texture, but the rest is blank. Please view screenshot as below:


And here's my rule file code:
const randomFacadeTexture = fileRandom("data/facade_textures/f*.tif") attr floorheight = rand(4,5)  actualFloorHeight =   case scope.sy >= floorheight : scope.sy/rint(scope.sy/floorheight)  else : scope.sy   actualTileWidth =   case scope.sx >= 2 : scope.sx/rint(scope.sx/4)  else : scope.sx  Lot -->  extrude(HEIGHT)  comp(f){front: Facade | side: Facade | top: Roof }  Building.  Facade -->  setupProjection(0, scope.xy, 8*actualTileWidth, 8* actualFloorHeight)  texture(randomFacadeTexture)  projectUV(0)


My building layer has 9000+ polygon. I wonder if that is a problem if the number of polygon/faces is too large.

Thank you for your time!

Outcomes