flagwaver icon indicating copy to clipboard operation
flagwaver copied to clipboard

Feature Request: Weight by transparency.

Open GormAuslander opened this issue 4 years ago • 2 comments

On exceptionally long flags, the spring/weight gets a little whacky. I am wondering if it's possible to assign 0% weight to alpha channel portions of flags, so in the above example it would get lighter as it tapers.

A bonus would be that alpha is seen as a sort of "cutting tool", such that flags with streamers can function properly, as each streamer is seen as an independent body, anchored to the main body. I am not entirely familiar with how physics engines work so I don't know how plausible that is.

GormAuslander avatar Jan 27 '21 20:01 GormAuslander

Hi there,

I think what you are suggesting is certainly possible. However actually developing such a feature is easier said than done. The spring mass model uses a simple rectangular grid, that would have to somehow be modified

krikienoid avatar Feb 04 '21 05:02 krikienoid

I imagine it would be more advanced in complexity, moving from a simple grid defined by image size to calculating new shapes through an alpha boolean. It's far more advanced than anything I know how to do, thus the request 🤣

GormAuslander avatar Feb 04 '21 06:02 GormAuslander