Hi all!
I've made small tool: it checks where is the first nearest point on the line (https://love2d.org/wiki/love.graphics.line) from given ray source.
Small ray tracing
Small ray tracing
- Attachments
-
- 2020-11-22T18_10_24-RayTracing v.1-01 (Löve v.11.3).png (62.08 KiB) Viewed 5806 times
-
RayTracing_1-01.love
- (2.59 KiB) Downloaded 132 times
Re: Small ray tracing
My implementation ray tracing as a lib;
Please help me to fix it, I'm bad with objects. If possible, without metatables, I cannot understand them.
Please help me to fix it, I'm bad with objects. If possible, without metatables, I cannot understand them.
- Attachments
-
- Animation (7).gif (3.5 MiB) Viewed 5722 times
-
- 2020-11-25T21_33_01-RayTracing v.1-03 (Löve v.11.3).png (79.18 KiB) Viewed 5722 times
-
RayTracing_1-03.love
- (3.41 KiB) Downloaded 131 times
Re: Small ray tracing
Where were you three months ago when my game needed you? Good work!
Re: Small ray tracing
This game I recently finished. Had to manually assign co-ordinates for each laser and it's respective collision point.
https://mwasanje.itch.io/the-squarehouse
- Attachments
-
The Squarehouse.love
- (268.38 KiB) Downloaded 114 times
Re: Small ray tracing
Tested and fixed version from https://love2d.org/forums/viewtopic.php ... 92#p237207
- Attachments
-
RayTracing_1-04.love
- (2.63 KiB) Downloaded 83 times
Who is online
Users browsing this forum: No registered users and 14 guests