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)<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Just set the path to your texture asset folder.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.