Hi.
In Cityengine I have several 3D objects and may texture them over Shapes-Texture-Shapes. But if I wanted to automatically choose a random texture individually for each object, how could I do so?
Thank you!
Hi Antonia.
This task can be automated by applying this CGA rule to the shapes:
assets = "/ESRI.lib/assets/Facades/International/Upperfloors/*.jpg"
Lot -->
comp(f) {all: Face}
Face -->
setupProjection(0, scope.xy, '1, '1)
texture(imageBestRatio(assets, "xy"))
projectUV(0)
Just set the path to your texture asset folder.