Forums WoW Modding Support Archives WoWModding Threads [DiscordArchive] Creating Blobs With Lua API

[DiscordArchive] Creating Blobs With Lua API

[DiscordArchive] Creating Blobs With Lua API

rektbyfaith
Administrator
0
12-03-2024, 12:24 AM
#1
Archived author: Needle • Posted: 2024-12-03T00:24:10.547000+00:00
Original source

rektbyfaith
12-03-2024, 12:24 AM #1

Archived author: Needle • Posted: 2024-12-03T00:24:10.547000+00:00
Original source

rektbyfaith
Administrator
0
12-03-2024, 12:24 AM
#2
Archived author: Needle • Posted: 2024-12-03T00:24:11.205000+00:00
Original source

Thread automatically created by Peacy in <#415944535718494208>
rektbyfaith
12-03-2024, 12:24 AM #2

Archived author: Needle • Posted: 2024-12-03T00:24:11.205000+00:00
Original source

Thread automatically created by Peacy in <#415944535718494208>

rektbyfaith
Administrator
0
12-03-2024, 12:24 AM
#3
Archived author: Needle • Posted: 2024-12-03T00:24:54.040000+00:00
Original source

Creating Blobs With Lua API
rektbyfaith
12-03-2024, 12:24 AM #3

Archived author: Needle • Posted: 2024-12-03T00:24:54.040000+00:00
Original source

Creating Blobs With Lua API

rektbyfaith
Administrator
0
12-03-2024, 07:16 AM
#4
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.
rektbyfaith
12-03-2024, 07:16 AM #4

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.

rektbyfaith
Administrator
0
12-03-2024, 07:20 AM
#5
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.
rektbyfaith
12-03-2024, 07:20 AM #5

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.

rektbyfaith
Administrator
0
12-03-2024, 08:03 AM
#6
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.
rektbyfaith
12-03-2024, 08:03 AM #6

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.

rektbyfaith
Administrator
0
12-03-2024, 01:38 PM
#7
Archived author: Peacy • Posted: 2024-12-03T13:38:54.058000+00:00
Original source

have any examples on how this can be done?
rektbyfaith
12-03-2024, 01:38 PM #7

Archived author: Peacy • Posted: 2024-12-03T13:38:54.058000+00:00
Original source

have any examples on how this can be done?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)