POST
|
Hmm, okay this actually didn't change anything. Nothing still projects. Also, just to be clear, this the correct line of code: "assets/brick_facade_01/brickbrick_facade_01.jpg"
... View more
11-14-2014
06:22 AM
|
0
|
0
|
812
|
POST
|
Okay thanks. So this is what I have (note LAYER is the name of the attribute field): const facadeDirectory = "assets/brick_facade_01/" attr LAYER = "brick" @Range("brick", "stone", "frame", "iron", "special frame") attr facadeTexture = LAYER attr textureScaleX = 4 attr textureScaleY = 4 Facade --> setupProjection(0, scope.xy, textureScaleX, textureScaleY) projectUV(0) texture(facadeDirectory + facadeTexture + "brick_facade_01.jpg") This worked in that it changed the value in the connection editor to the individual prescribed attribute for every object. I'm still not sure about facade texture though. This code didn't project anything and I'm not sure how to make it more specific to differentiate between the attributes. So far I only included one image (brick) just to test.
... View more
11-12-2014
09:20 AM
|
0
|
2
|
812
|
POST
|
Sure. There are no random values. I imported a shapefile of historic building footprints that have a field called "material", which specifies whether the building was constructed from brick, wood, metal, etc. I'd like to assign textures to the facades based on the material specified in that field, which are just recorded as "brick", "wood", "metal" etc. The outcome would be that all buildings specified as "brick" in the material field would receive a brick textured facade, and so on.
... View more
11-03-2014
08:13 AM
|
0
|
4
|
812
|
POST
|
Great! Thanks for this. I was wondering though how exactly do I assign textures based on attributes already specified to the object? I have a set of historic building footprints that have information attached to them (height, # of stories, material etc) and I've been able to extrude them to correspond with their height, but I'm still not sure how to link textures to the given material.
... View more
11-03-2014
07:41 AM
|
0
|
6
|
812
|
POST
|
Hi all, I'm just getting started with City Engine and am trying to apply textures to facades based on building attributes (i.e. brick, wood, stone etc.). Can anyone give an example of how to write the code for this? Thx.
... View more
10-15-2014
09:16 AM
|
0
|
9
|
3457
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|