Hi all!
I have simple boxes and some textures:
leftrighttex1.jpg
leftrighttex2.jpg
leftrighttex3.jpg
...
frontbacktex1.jpg
frontbacktex2.jpg
frontbacktex3.jpg
.
I would like to texturize the boxes with following rule:
left and right side have the same random texture
than:
front and back side texture with the same id like left and right:
leftrightex1.jpg >> frontbacktex1.jpg
leftrightex2.jpg >> frontbacktex2.jpg
In my following test rule left and right side have random but different textures AND I've no idea how to select the front/back texture depending on left/right texture.
Thanks a lot for help!
michael
[PHP]/**
* File: test2.cga
* Created:
* Author:
*/
version "2012.1"
leftrighttex = fileRandom("assets/facades/textures/leftrighttex*.jpg")
frontbacktex = fileRandom("assets/facades/textures/frontbacktex*.jpg")
Lot -->
extrude(world.y, 10)
comp(f) { 0 : NIL | left : Leftright | right : Leftright}
Leftright -->
setupProjection(0, scope.xy, '1, '1)
texture(leftrighttex)
projectUV(0)
[/PHP]