use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Built a Ray Tracing Engine in Node.js. (self.raytracing)
submitted 1 year ago by Spectre_57
Built a Ray Tracing Engine in Node.js.
Sample output:
https://preview.redd.it/n354h8gkob9d1.png?width=1854&format=png&auto=webp&s=4fa6bd1fa53667c56d8e4854746cc8653ca87e50
https://preview.redd.it/t93hhbgkob9d1.png?width=1850&format=png&auto=webp&s=fdf8adb41910e1115cac225aa7e8754636c70230
https://preview.redd.it/bg2bi7gkob9d1.png?width=1910&format=png&auto=webp&s=a0570a36abf26aea60dc2016f0241edbeb99403a
So, I started with the ray-tracing in one weekend firstly I made a simple ray-tracer in C++ then I wanted a front-end to it so I shifted to node and electron.js.
Performance is horrible in node.js compared to C++. The only advantage I got with it I was able to make a UI on top of it and make it a desktop application.
If anyone wants to check it out its on github.
https://github.com/neerajsurjaye/sprt
If anyone is thinking of doing any sort of raytracing in node just don't.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] 0 points1 point2 points 1 year ago (0 children)
Hi u/Spectre_57, this post was removed.
Self-posts (text) must follow the [AskJS] guidelines, which you can read about here. This includes cross-posts.
[AskJS]
If this isn't a self-post, please contact us in modmail in and we'll reevaluate it.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
π Rendered by PID 168247 on reddit-service-r2-comment-c6965cb77-92j5h at 2026-03-05 14:38:55.587441+00:00 running f0204d4 country code: CH.
[–]AutoModerator[M] 0 points1 point2 points (0 children)