[DiscordArchive] Creating Blobs With Lua API
[DiscordArchive] Creating Blobs With Lua API
Archived author: Needle • Posted: 2024-12-03T00:24:10.547000+00:00
Original source
Archived author: Needle • Posted: 2024-12-03T00:24:11.205000+00:00
Original source
Thread automatically created by Peacy in <#415944535718494208>
Archived author: Needle • Posted: 2024-12-03T00:24:54.040000+00:00
Original source
Creating Blobs With Lua API
Archived author: Ninjapleez • Posted: 2024-12-03T07:16:46.412000+00:00
Original source
Could use a union-find algorithm to group the points by minimum distance from each other, and generate a polygon to represent each group with a convex hull algorithm, then draw that polygon.
You can find various implementations of both of those algorithms through Google. It will be expensive if you have a large set of data or if the data updates frequently, however. You'll want to pre-compute as much of your data as possible beforehand and have the LUA do as little as possible.
Archived author: Ninjapleez • Posted: 2024-12-03T07:20:37.951000+00:00
Original source
Even drawing the polygon is jank and expensive, though, since there aren't any direct polygon drawing functions in WoW that I'm aware of.
Archived author: Dvago • Posted: 2024-12-03T08:03:07.282000+00:00
Original source
Don't Vanilla/TBC addons show blobs? maybe you couldn't you retrowork that, and make it an addon the players download.
Archived author: Peacy • Posted: 2024-12-03T13:38:54.058000+00:00
Original source
have any examples on how this can be done?