Small ray tracing

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
darkfrei
Party member
Posts: 109
Joined: Sat Feb 08, 2020 11:09 pm

Small ray tracing

Post by darkfrei » Sun Nov 22, 2020 5:17 pm

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.
Attachments
2020-11-22T18_10_24-RayTracing v.1-01 (Löve v.11.3).png
2020-11-22T18_10_24-RayTracing v.1-01 (Löve v.11.3).png (62.08 KiB) Viewed 4702 times
RayTracing_1-01.love
(2.59 KiB) Downloaded 112 times

User avatar
darkfrei
Party member
Posts: 109
Joined: Sat Feb 08, 2020 11:09 pm

Re: Small ray tracing

Post by darkfrei » Wed Nov 25, 2020 8:36 pm

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.
Attachments
Animation (7).gif
Animation (7).gif (3.5 MiB) Viewed 4618 times
2020-11-25T21_33_01-RayTracing v.1-03 (Löve v.11.3).png
2020-11-25T21_33_01-RayTracing v.1-03 (Löve v.11.3).png (79.18 KiB) Viewed 4618 times
RayTracing_1-03.love
(3.41 KiB) Downloaded 110 times

noahnadai
Prole
Posts: 15
Joined: Sat Jun 27, 2020 10:43 am

Re: Small ray tracing

Post by noahnadai » Wed Dec 02, 2020 2:51 pm

Where were you three months ago when my game needed you? Good work!

User avatar
darkfrei
Party member
Posts: 109
Joined: Sat Feb 08, 2020 11:09 pm

Re: Small ray tracing

Post by darkfrei » Wed Dec 02, 2020 10:40 pm

noahnadai wrote:
Wed Dec 02, 2020 2:51 pm
Where were you three months ago when my game needed you? Good work!
I need that tool for my project too, that's why I wrote that.

Where are you need it?

noahnadai
Prole
Posts: 15
Joined: Sat Jun 27, 2020 10:43 am

Re: Small ray tracing

Post by noahnadai » Thu Dec 03, 2020 6:16 am

darkfrei wrote:
Wed Dec 02, 2020 10:40 pm
noahnadai wrote:
Wed Dec 02, 2020 2:51 pm
Where were you three months ago when my game needed you? Good work!
I need that tool for my project too, that's why I wrote that.

Where are you need it?
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 91 times

User avatar
darkfrei
Party member
Posts: 109
Joined: Sat Feb 08, 2020 11:09 pm

Re: Small ray tracing

Post by darkfrei » Wed Dec 23, 2020 3:34 pm

Attachments
RayTracing_1-04.love
(2.63 KiB) Downloaded 62 times

lucked
Prole
Posts: 8
Joined: Fri Nov 13, 2020 10:27 am

Re: Small ray tracing

Post by lucked » Mon Jan 04, 2021 10:19 am

Well done!

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests