Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse

[DiscordArchive] Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse

[DiscordArchive] Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
11-13-2022, 10:40 AM
#1
Archived author: Kaev • Posted: 2022-11-13T10:40:10.498000+00:00
Original source

Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse position in world to end drag mouse position in world (calculate it from min(start.x, end.x) to max(start.x, end.x) and for y, z aswell)?
rektbyfaith
11-13-2022, 10:40 AM #1

Archived author: Kaev • Posted: 2022-11-13T10:40:10.498000+00:00
Original source

Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse position in world to end drag mouse position in world (calculate it from min(start.x, end.x) to max(start.x, end.x) and for y, z aswell)?

rektbyfaith
Administrator
0
11-13-2022, 10:46 AM
#2
Archived author: Pursche • Posted: 2022-11-13T10:46:06.786000+00:00
Original source

AABB wont be as accurate as an OBB. Sure you can do it in 3d but then you have to figure out how to project the screenspace coords to a 3d box on the plane of the camera that stops where you intersect the terrain, which is far more complicated.
rektbyfaith
11-13-2022, 10:46 AM #2

Archived author: Pursche • Posted: 2022-11-13T10:46:06.786000+00:00
Original source

AABB wont be as accurate as an OBB. Sure you can do it in 3d but then you have to figure out how to project the screenspace coords to a 3d box on the plane of the camera that stops where you intersect the terrain, which is far more complicated.

rektbyfaith
Administrator
0
11-13-2022, 10:48 AM
#3
Archived author: Pursche • Posted: 2022-11-13T10:48:13.427000+00:00
Original source

<@138006906915651585> What you just explained doesn't work on all 3 axises. The "depth" axis of the camera needs special treatment, and it will rarely line up to be X, Y or Z.
rektbyfaith
11-13-2022, 10:48 AM #3

Archived author: Pursche • Posted: 2022-11-13T10:48:13.427000+00:00
Original source

<@138006906915651585> What you just explained doesn't work on all 3 axises. The "depth" axis of the camera needs special treatment, and it will rarely line up to be X, Y or Z.

rektbyfaith
Administrator
0
11-13-2022, 10:49 AM
#4
Archived author: Kaev • Posted: 2022-11-13T10:49:04.697000+00:00
Original source

Why is 3d stuff always so complicated
rektbyfaith
11-13-2022, 10:49 AM #4

Archived author: Kaev • Posted: 2022-11-13T10:49:04.697000+00:00
Original source

Why is 3d stuff always so complicated

rektbyfaith
Administrator
0
11-13-2022, 10:49 AM
#5
Archived author: Pursche • Posted: 2022-11-13T10:49:38.962000+00:00
Original source

The first rule of 3d is to simplify the problem to 2d
rektbyfaith
11-13-2022, 10:49 AM #5

Archived author: Pursche • Posted: 2022-11-13T10:49:38.962000+00:00
Original source

The first rule of 3d is to simplify the problem to 2d

rektbyfaith
Administrator
0
11-13-2022, 10:50 AM
#6
Archived author: Kaev • Posted: 2022-11-13T10:50:17.185000+00:00
Original source

in 2d aabb would be enough
rektbyfaith
11-13-2022, 10:50 AM #6

Archived author: Kaev • Posted: 2022-11-13T10:50:17.185000+00:00
Original source

in 2d aabb would be enough

rektbyfaith
Administrator
0
11-13-2022, 10:50 AM
#7
Archived author: Pursche • Posted: 2022-11-13T10:50:50.097000+00:00
Original source

In 2d, the OBB can be used without much difference
rektbyfaith
11-13-2022, 10:50 AM #7

Archived author: Pursche • Posted: 2022-11-13T10:50:50.097000+00:00
Original source

In 2d, the OBB can be used without much difference

rektbyfaith
Administrator
0
11-13-2022, 10:50 AM
#8
Archived author: Michael Crilly • Posted: 2022-11-13T10:50:57.051000+00:00
Original source

AC Discord is a bit quiet, so figured I'd ask here too.

Any idea why a dialogue isn't opening up when speaking to my NPC? He turns to me, says hello, and I hear the dialogue open sound, but nothing is rendered. I'm also getting log file entries in the console that clearly show that my script is being attached, but it's not going to the primary, first page, but to what seems like a secondary page?

Whilst I'm engaged in "conversation" with him, I get the following in the console log (from my module): ```AC> Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...```

Code: https://github.com/mrcrilly/mod-level-to...s.cpp#L119
[Embed: mod-level-tokens/mod_leveltokens.cpp at master · mrcrilly/mod-level...]
Level token system to speed up levelling, if desired. - mod-level-tokens/mod_leveltokens.cpp at master · mrcrilly/mod-level-tokens
https://github.com/mrcrilly/mod-level-to...tokens.cpp
rektbyfaith
11-13-2022, 10:50 AM #8

Archived author: Michael Crilly • Posted: 2022-11-13T10:50:57.051000+00:00
Original source

AC Discord is a bit quiet, so figured I'd ask here too.

Any idea why a dialogue isn't opening up when speaking to my NPC? He turns to me, says hello, and I hear the dialogue open sound, but nothing is rendered. I'm also getting log file entries in the console that clearly show that my script is being attached, but it's not going to the primary, first page, but to what seems like a secondary page?

Whilst I'm engaged in "conversation" with him, I get the following in the console log (from my module): ```AC> Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...```

Code: https://github.com/mrcrilly/mod-level-to...s.cpp#L119
[Embed: mod-level-tokens/mod_leveltokens.cpp at master · mrcrilly/mod-level...]
Level token system to speed up levelling, if desired. - mod-level-tokens/mod_leveltokens.cpp at master · mrcrilly/mod-level-tokens
https://github.com/mrcrilly/mod-level-to...tokens.cpp

rektbyfaith
Administrator
0
11-13-2022, 10:51 AM
#9
Archived author: Kaev • Posted: 2022-11-13T10:51:47.736000+00:00
Original source

OBB = AABB but can be rotated?
rektbyfaith
11-13-2022, 10:51 AM #9

Archived author: Kaev • Posted: 2022-11-13T10:51:47.736000+00:00
Original source

OBB = AABB but can be rotated?

rektbyfaith
Administrator
0
11-13-2022, 10:53 AM
#10
Archived author: Pursche • Posted: 2022-11-13T10:53:45.455000+00:00
Original source

Yes, oriented bounding box.
rektbyfaith
11-13-2022, 10:53 AM #10

Archived author: Pursche • Posted: 2022-11-13T10:53:45.455000+00:00
Original source

Yes, oriented bounding box.

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)