[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
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?
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
Archived author: Adspartan • Posted: 2023-07-02T11:10:24.534000+00:00
Original source
https://github.com/wowdev/noggit3/blob/d...ay.cpp#L50
Archived author: Adspartan • Posted: 2023-07-02T11:12:13.390000+00:00
Original source
it's easy that way since it was already implemented
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
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
Archived author: Nix • Posted: 2023-07-02T11:19:34.295000+00:00
Original source
Is your ray continuous?
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.
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
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