Select to view content in your preferred language

adding a shade above the ground floor

947
2
07-21-2013 02:06 PM
JoanneO_Brien
Deactivated User
Hi

I have a building which I'm trying to put a shade above my ground floor. But I'm getting a slight issue when it goes around corners, so I was wondering if there was a way to have it joining up so it doesn't have the wedge gap shown below??

This is my current code for it:
FrontFacade--> split(y){ 4 : GroundFloor | 0.2 : Shade | {3 : Floor}*| ~1 : Wall}
   
Shade--> color(wallColour)
 setupProjection(2,scope.xy,scope.sx,scope.sy)
 projectUV(2)
 set(material.dirtmap, walldirt_tex)
 s('1,'1,3)
 i("builtin:cube")
0 Kudos
2 Replies
RafałPerzyna
Emerging Contributor
Hi Joanne,

i'm not sure if there is some straight way to fill that hole...

Maybe try to split Shade
comp(f) {front : FrontShade | back : BackShade |right : SideRightShade | left : SideLeftShade |top: RoofShade |bottom : BottomShade}


and later

 SideLeftShade-->
extrude(1)
 SideRightShade-->
extrude(1)

it isn't best solution, but maybe will give you some tips

or just insert some corner object made in for eg blender

Rafal
0 Kudos
JoanneO_Brien
Deactivated User
Hi

Thanks for your suggestion. Because it's a generic model run for a lot of different buildings I wouldn't be able to insert some blender object as this would be different for every model but it gave me some ideas, and actually fixed another little issue I'd forgotten about.

Anyway in the end I decided that rather than assigning the shade to all the front facades, I added a case function that extruded the facade only for the first edge, and left the others empty. Not perfect but that'll do for now 🙂
0 Kudos