How do I fix the flickering facade?

969
3
09-30-2016 02:49 PM
MicahTaylor
Occasional Contributor III

The rule is a simple

Footprint-->
    cleanupGeometry(all,1)
    alignScopeToAxes(y) s('1,0,'1)       
    alignScopeToGeometry(yUp, 0, longest)
    Up
    
Up-->
    extrude(HEIGHT * 0.3048)
    Reporter
    Roof
    
Roof-->
    case Style == "color override":
        comp(f){side : color(color_override) | top : RoofGetter}
    else:
        comp(f){side : FacadePainter | top : RoofGetter}
        
FacadePainter-->
    setupProjection(0, scope.xy, 4, 4, 1)
    Paint
    
Paint-->
    set(material.colormap,facade)
    projectUV(0)

Tags (1)
0 Kudos
3 Replies
KennethLindhardt
Occasional Contributor

HI,

it seems that you are creating double shape upon each other .

In your Up rule you are creating the same shapes two times, by creating a Reporter and roof. Delete Reporter…

MicahTaylor
Occasional Contributor III

Thanks!  I did not realize reporting something in a Rule would cause an empty shape after I already textured that shape.

0 Kudos
DavidWasserman
Regular Contributor

Hey Micah, 

If you want to keep reporter, I think you can just add NIL to the end of the rule to terminate the leaf. 

Along with creating gaps in a split, it helps with creating reporting rules that just need to get information then disappear. 

Lot-->
extrude(Height)
comp(f) {top:Roof|side:X.}

Roof-->
roofGable(20)
Flicker
comp(f) {all:Reporter}

Reporter-->
color(1,0,0)
report("Area",geometry.area())

Flicker-->
X.

If you add:
Reporter-->

color(1,0,0)
report("Area",geometry.area())

NIL

The flicker in the images disappears, but the report information remains. 

May not help you right now, but thought I would mention it. 

David

David Wasserman, AICP