Thanks, Matt,
I did watch the video and it worked at one point when the roof was a flat object but when I added the Lot--> extrude, it gave a white box without the image.
Here is the code that I modified from the gen_Facade_.cga file, I think I have conflicting alignScope commands...
attr LOD = 2
# LOD 0 generates the original texture
# LOD 1 generates flat splits
# LOD 2 generates splits with depth as defined in Facade Wizard
#! SIZE 30.0 17.423582
const n = 3
Lot --> extrude(10)
comp(f) {top : alignScopeToGeometry(yUp, 0, world.lowest)Roof.
| side:Facade.}
Roof -->
case LOD <= 0:
texture("/CityEngine_ForestLawn/images/plastic_panels.jpg")
setupProjection(0, scope.xy, '1.0000, '1.0000)
projectUV(0)
else:
texture("/CityEngine_ForestLawn/images/plastic_panels.jpg")
split(y, noAdjust) { ~5.84: Roof__1(0) | ~4.67: Roof__1(1) | ~6.91: Roof__1(2) }
RoofTrigger(i) -->
case LOD <= 0:
texture("/CityEngine_ForestLawn/images/plastic_panels.jpg")
setupProjection(0, scope.xy, '1.0000, '1.0000)
projectUV(0)
else:
texture("/CityEngine_ForestLawn/images/plastic_panels.jpg")
Roof__1(i)
Roof__1(i) -->
case i == 0: Roof__1_1
case i == 1: Roof__1_2
case i == 2: Roof__1_3
else: Roof__1_1
Roof__1_1 -->
split(x, noAdjust) { ~13.21: Roof__1_1_1 | 2.29: Roof__1_1_2 | 14.50: Roof__1_1_3 }
Roof__1_1_1 -->
setupProjection(0, scope.xy, '2.2707, '2.9822)
projectUV(0)
Roof__1_1_2 -->
setupProjection(0, scope.xy, '13.1258, '2.9822, '-5.7806, '0.0000)
projectUV(0)
Roof__1_1_3 -->
setupProjection(0, scope.xy, '2.0686, '2.9822, '-1.0686, '0.0000)
projectUV(0)
Roof__1_2 -->
setupProjection(0, scope.xy, '1.0000, '3.7302, '0.0000, '-1.2508)
projectUV(0)
Roof__1_3 -->
split(x, noAdjust) { ~3.91: Roof__1_3_1 | 17.68: Roof__1_3_2 | ~8.40: Roof__1_3_3 }
Roof__1_3_1 -->
setupProjection(0, scope.xy, '7.6630, '2.5215, '0.0000, '-1.5214)
projectUV(0)
Roof__1_3_2 -->
setupProjection(0, scope.xy, '1.6968, '2.5215, '-0.2214, '-1.5214)
projectUV(0)
Roof__1_3_3 -->
setupProjection(0, scope.xy, '3.5695, '2.5215, '-2.5695, '-1.5214)
projectUV(0)
Is this the right approach? Thank you, it would be very cool to get this working 🙂