RTXDucks

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)
Tools: Blender

Comments12

Joe Bevis
Joe Bevis3 Oct 2022, 23:11
This is cool and very clever! In the future, some RTX-On music wouldn't go amiss!
Timo Strating
Timo Stratingauthor3 Oct 2022, 23:18
Thanks for the suggestion. I have dabbled with music in the past but it is not one of my strong points. when I do add music it's mostly simple sounds from generators or some self made ambient music. If you have any suggestions of a great tool, then please feel free to post those here as well. If you know a tool that works well on Linux then that would be really great :)
CooLguNxDD3 Oct 2022, 23:19
RTX ON! REQUEST AIR DROP 3090 ti * 10!!! NOOO MAYDAY MAYDAY! BOMB
nuns
nuns3 Oct 2022, 23:19
I love the premise of this game! Kind of reminds me of trying to find a needle in a haystack but it adds the rtx elements along with the fun. Adding some audio would make aspects of this game more engaging too!
Grif_in3 Oct 2022, 23:22
Fun concept rendering over time in a limited area! Feels like it could be expanded on in a larger game in interesting ways.
Ciber_Turtle
Ciber_Turtle3 Oct 2022, 23:23
A very unique idea for a game!

But I cannot find the duck here
Jag
Jag3 Oct 2022, 23:24
That was a fun little game haha! I think this idea could be expanded into something even bigger! The last image was pretty hard i couldn't really spot the duck but clicked randomly and got it anyway. I wish there was more!
Timo Strating
Timo Stratingauthor3 Oct 2022, 23:44
I had an additional level planned before the last one but I did not get it rendering correctly but yes i totally feel you some additional levels would have made it way better.
coolbeens4 Oct 2022, 04:25
This game RULES!! i love it! it was so fun searching for the ducks and the concept is so funny! short and sweet, i would definitely play a longer one!
LDJam user 237588
LDJam user 2375884 Oct 2022, 19:29
Revealing 3D objects using raytracing by moving your cursor is pretty cool, well done.
I laughed when the first duck appeared.

Other games by @timo-strating

Found a bug?
Tell us on Discord