Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Sure your ray detects the triangle, but how is the value calculated once you have found the triangle

[DiscordArchive] Sure your ray detects the triangle, but how is the value calculated once you have found the triangle

[DiscordArchive] Sure your ray detects the triangle, but how is the value calculated once you have found the triangle

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
07-02-2023, 11:09 AM
#1
Archived author: Nix • Posted: 2023-07-02T11:09:50.924000+00:00
Original source

Sure your ray detects the triangle, but how is the value calculated once you have found the triangle?
rektbyfaith
07-02-2023, 11:09 AM #1

Archived author: Nix • Posted: 2023-07-02T11:09:50.924000+00:00
Original source

Sure your ray detects the triangle, but how is the value calculated once you have found the triangle?

rektbyfaith
Administrator
0
07-02-2023, 11:10 AM
#2
Archived author: Nix • Posted: 2023-07-02T11:10:16.866000+00:00
Original source

also shooting a ray for terrain is kinda stupid, but I can understand how it can be used as a convenience thing when already having to find intersections for WMOs and M2s
rektbyfaith
07-02-2023, 11:10 AM #2

Archived author: Nix • Posted: 2023-07-02T11:10:16.866000+00:00
Original source

also shooting a ray for terrain is kinda stupid, but I can understand how it can be used as a convenience thing when already having to find intersections for WMOs and M2s

rektbyfaith
Administrator
0
07-02-2023, 11:10 AM
#3
Archived author: Adspartan • Posted: 2023-07-02T11:10:24.534000+00:00
Original source

https://github.com/wowdev/noggit3/blob/d...ay.cpp#L50
rektbyfaith
07-02-2023, 11:10 AM #3

Archived author: Adspartan • Posted: 2023-07-02T11:10:24.534000+00:00
Original source

https://github.com/wowdev/noggit3/blob/d...ay.cpp#L50

rektbyfaith
Administrator
0
07-02-2023, 11:12 AM
#4
Archived author: Adspartan • Posted: 2023-07-02T11:12:13.390000+00:00
Original source

it's easy that way since it was already implemented
rektbyfaith
07-02-2023, 11:12 AM #4

Archived author: Adspartan • Posted: 2023-07-02T11:12:13.390000+00:00
Original source

it's easy that way since it was already implemented

rektbyfaith
Administrator
0
07-02-2023, 11:12 AM
#5
Archived author: Nix • Posted: 2023-07-02T11:12:20.679000+00:00
Original source

That does not appear to me at least, to be the barycentric triangle interpolation formula
rektbyfaith
07-02-2023, 11:12 AM #5

Archived author: Nix • Posted: 2023-07-02T11:12:20.679000+00:00
Original source

That does not appear to me at least, to be the barycentric triangle interpolation formula

rektbyfaith
Administrator
0
07-02-2023, 11:13 AM
#6
Archived author: Adspartan • Posted: 2023-07-02T11:13:08.576000+00:00
Original source

you get the distance from the origin of the ray where the triangle was intersected and just need to add the forward vector multiplied by it to get the exact point
rektbyfaith
07-02-2023, 11:13 AM #6

Archived author: Adspartan • Posted: 2023-07-02T11:13:08.576000+00:00
Original source

you get the distance from the origin of the ray where the triangle was intersected and just need to add the forward vector multiplied by it to get the exact point

rektbyfaith
Administrator
0
07-02-2023, 11:19 AM
#7
Archived author: Nix • Posted: 2023-07-02T11:19:34.295000+00:00
Original source

Is your ray continuous?
rektbyfaith
07-02-2023, 11:19 AM #7

Archived author: Nix • Posted: 2023-07-02T11:19:34.295000+00:00
Original source

Is your ray continuous?

rektbyfaith
Administrator
0
07-02-2023, 11:22 AM
#8
Archived author: Nix • Posted: 2023-07-02T11:22:47.536000+00:00
Original source

I've tried to type up a message 3 times now, but discord won't stop crashing. TLDR. If continuous then that should? work, expensive alternative, but faster versions would require more advanced methods of querying the world without a ray.
rektbyfaith
07-02-2023, 11:22 AM #8

Archived author: Nix • Posted: 2023-07-02T11:22:47.536000+00:00
Original source

I've tried to type up a message 3 times now, but discord won't stop crashing. TLDR. If continuous then that should? work, expensive alternative, but faster versions would require more advanced methods of querying the world without a ray.

rektbyfaith
Administrator
0
07-02-2023, 11:28 AM
#9
Archived author: Adspartan • Posted: 2023-07-02T11:28:37.995000+00:00
Original source

well, it's not a ray in the ray tracing sense, it just compute where or not the vector starting at the origin with the direction intersect the triangle (some math that someone else wrote but it works perfectly), so it's not that expensive since I only check for 1 triangle, 2 times in the worst case
rektbyfaith
07-02-2023, 11:28 AM #9

Archived author: Adspartan • Posted: 2023-07-02T11:28:37.995000+00:00
Original source

well, it's not a ray in the ray tracing sense, it just compute where or not the vector starting at the origin with the direction intersect the triangle (some math that someone else wrote but it works perfectly), so it's not that expensive since I only check for 1 triangle, 2 times in the worst case

rektbyfaith
Administrator
0
07-02-2023, 11:29 AM
#10
Archived author: Nix • Posted: 2023-07-02T11:29:47.530000+00:00
Original source

Surely you can't say you shoot a ray that detects intersection point, but isn't a ray
rektbyfaith
07-02-2023, 11:29 AM #10

Archived author: Nix • Posted: 2023-07-02T11:29:47.530000+00:00
Original source

Surely you can't say you shoot a ray that detects intersection point, but isn't a ray

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