CodingTrain / Suggestion-Box

A repo to track ideas for topics
571 stars 86 forks source link

Ray Tracing in p5.js or processing! #1556

Open kae1506 opened 3 years ago

kae1506 commented 3 years ago

You should attempt to make a simple ray tracer in p5.js or processing! It would be epic.

Wikipedia: https://en.wikipedia.org/wiki/Ray_tracing_(graphics)#:~:text=In%203D%20computer%20graphics%2C%20ray,its%20encounters%20with%20virtual%20objects.

Article: https://www.scratchapixel.com/lessons/3d-basic-rendering/introduction-to-ray-tracing/implementing-the-raytracing-algorithm

fferreira12 commented 3 years ago

A 3D version would be nice. He's done a 2D Raycasting and it was really cool. (Not sure if ray casting and ray tracing are the same thing, though. Sorry if they're different things)

kae1506 commented 3 years ago

They are different things, very different, though i can see the confusion. I loved the ray casting videos as well. You can read the articles for more info. Enjoy!

fferreira12 commented 3 years ago

My bad, then! Hope he does it!