RTXDucks

RTXDucks

This game is from ldjam.com, which is currently unavailable.
You can try viewing the original page on Web Archive (may not load correctly).
overall: 3.50
fun: 3.02
innovation: 4.00
theme: 2.67
graphics: 4.05
audio: 1.80
humor: 3.63
mood: 2.95
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)
Found a bug?
Tell us on Discord