Fixed the issue I had with the color. I used to just take a weighted sum doing something like min(1/(dist+1)^2, 1) where dist was to the center of a shape. This resulted in confusion when shapes where inside others, you couldnt tell which was bigger and what kind they where. After many tries and iterations I changed dist to be the distance to the edge of a shape, I already had that as thats how the rendering works. and changed from an inverse function that had a sharp edge to a modified sigmoid: -1/(1 + e^(-(dist - k)/k)) + 1 where k is my smoothing constant * object size.
The project is really close to completion. I think i will add a shape adder using polylines, but that might be out of scope, we’ll see.
Log in to leave a comment