RTXDucks by Timo Strating
Some ducks have escaped to the world of RTX. Could you please click on every ducky to get them back?
Rendering the game may take some supreme RTX powers. So a frame every 10 seconds sounds about right. Have fun with your newly gathered RTX powers. (REAL RTX NOT REQUIRED)
đšī¸ How to play
Use your cursor to see more of the image.
Click on a ducky when you start seeing it.
If you are correct a new level will start.
Technical details
I have build a ray tracer based on the book series Ray Tracing in One Weekend. This book has recently released to the public domain and is availible here. https://raytracing.github.io/
JavaScirpt sends mouse inputs to c++ that is compiled to webassembly using emscripten. Using Emscripten/val.h memory is shared between c++ and javascript. This results in the following magic. JavaScript calls a c++ function to do all the fancy ray tracing. The results are stored in a buffer in c++. This buffer in then placed on the JavaScript canvas at the end of the fancy raytracing magic.
Note: This is my first sort of working raytracer. It can be made many times faster and many things are not rendered correctly.
Tools / Sources:
Boilerplate code and most raytracing code is inspired or based on https://raytracing.github.io/ The knowhow how most of this works is from https://www.cs.uu.nl/docs/vakken/magr/2021-2022/ Duck model is made in Blender (Obj file is converted to code using python)
| Source Code | https://github.com/timostrating/Ludumdare51 |
| Original URL | https://ldjam.com/events/ludum-dare/51/rtxducks |
Ratings
| Overall | 589th | 3.5â | 21đ§ââī¸ |
| Fun | 896th | 3.025â | 22đ§ââī¸ |
| Innovation | 91th | 4â | 22đ§ââī¸ |
| Theme | 1147th | 2.675â | 22đ§ââī¸ |
| Graphics | 291th | 4.05â | 22đ§ââī¸ |
| Audio | 771th | 1.8â | 17đ§ââī¸ |
| Humor | 193th | 3.632â | 21đ§ââī¸ |
| Mood | 979th | 2.947â | 21đ§ââī¸ |
| Given | 5đŗī¸ | 12đ¨ī¸ |
But I cannot find the duck here

I laughed when the first duck appeared.