cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.

Help with creating a custom tree object.

GrudenJ
Beginner

Hello everyone,

I'm creating a custom GDL tree object for a detailed Floor Plan view. The tree's 2D symbol uses a semi-transparent fill for a ground shadow effect.


I need the shadow fill to be transparent (e.g., 25% or 50% opacity) so that floor pattern lines, roads, etc., underneath the shadow remain visible. However, when I place two or more of these objects close enough for their shadows to overlap, the overlapping region accumulates the transparency, creating an undesirable, darker shade.

 

I want the shadow fill to display with a consistent transparency level, even when multiple instances overlap. The overlapping area should not become darker. The visual effect should be as if the shadows merge and display the same single shade of transparency, as shown in the "correct" image below.

 

Visual Examples:

Single Tree: Shows the desired shadow transparency over the floor (road and lines).

GrudenJ_0-1760368580270.png

Wrong (Current Behavior): Shows the darker accumulation where the shadows overlap.

GrudenJ_2-1760368756443.png

Correct (Desired Outcome): Shows the shadows merging with no accumulated darkness.

GrudenJ_1-1760368596392.png

 

What GDL techniques or settings can I use to achieve this non-accumulating transparent shadow effect? Is there a way to define a "non-additive" transparent fill in the 2D script?

Thank you for your help!

 

2 REPLIES 2
runxel
Hero

No, there is no way I am aware of to magically have non-additive transparencies. Only thing you can do is use pen -1 to simulate transparency (as in the factor of foreground to background) without actually having transparency.

But this is rather something for the wishlist. Like a magic pen "-2" maybe? 😄

 

The only thing you can do is to actually script what you are doing. So, one object and it can have multiple trees and they merge when they are close together.

Sadly objects do not know about what happens around them, so that's why it must come from the same object.

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Hm. I expected to not be able to have non-additive transparancies, but i hoped there was a way to script the 2D view, so that they somehow merge automatically. If objects don't know what happenes around them, i guess this isn't really possible. I believe this type of graphical representation of not just trees could help a lot with preparing good looking floor plan presentations... Thank you!