POST
|
error correction... wow it works! Thanks a lot! michael
... View more
04-04-2013
08:20 AM
|
0
|
0
|
220
|
POST
|
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 | front : Frontback | back : Frontback} Leftright --> setupProjection(0, scope.xy, '1, '1) texture(leftrighttex) projectUV(0) comp(f) { front : Frontback | back : Frontback} Frontback --> setupProjection(0, scope.xy, '1, '1) texture(frontbacktex) projectUV(0) [/PHP]
... View more
04-04-2013
01:18 AM
|
0
|
3
|
1842
|
POST
|
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]
... View more
04-04-2013
01:16 AM
|
0
|
0
|
393
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|