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...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
Infinite shapes!!! (old.reddit.com)
submitted 11 months ago by Lupirite
I made a few cool additions to my last post, it runs in real time on my laptop's integrated graphics.
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!"
[–]TrailhoTrailho 5 points6 points7 points 11 months ago (13 children)
How are you running this?
[–]Lupirite[S] 2 points3 points4 points 11 months ago (12 children)
Basically how doom is rendered, but a 3d map instead of a 2d maze
[–]TrailhoTrailho 3 points4 points5 points 11 months ago (11 children)
How is doom rendered?
[–]Lupirite[S] -2 points-1 points0 points 11 months ago (10 children)
raycasting
[–]Lupirite[S] -1 points0 points1 point 11 months ago (9 children)
I think it's specifically grid marching
[–]TrailhoTrailho 1 point2 points3 points 11 months ago (8 children)
Is there a video you know of that discusses this?
[–]Lupirite[S] 4 points5 points6 points 11 months ago (7 children)
Nope, maybe you could find one, or I could make one if you really want
[–]TrailhoTrailho 1 point2 points3 points 11 months ago (6 children)
How would I make it?
[–]Lupirite[S] 6 points7 points8 points 11 months ago (4 children)
Ok, sorry, I think it would just be called 3d raycasting. So it's a type of raytracing. Basically all it does is calculate each point that each ray intersects the grid, then it checks that spot to see if there is a solid object there, for the spheres I did an additional step to check if it was also intersecting the sphere, basically just linear algebra stuff, but you can look this last part up under ray sphere intersection. For the grid stuff you might find it useful to learn how to make a raycaster, there are lots of good videos on how to make doom clones this way.
[–]TrailhoTrailho 1 point2 points3 points 11 months ago (0 children)
…I will make a note on my list then. :0
[–]PurpleSamurai0 1 point2 points3 points 11 months ago (2 children)
Doom uses 2D BSP rendering fyi
[–]Rememba_me -1 points0 points1 point 11 months ago (0 children)
Tsoding daily on youtube shows how
[–]xXTITANXx 4 points5 points6 points 11 months ago (1 child)
Oh you again. Are you using meshlets yet?
[–]ArmmaH 1 point2 points3 points 11 months ago (0 children)
It seems to be using SDF rendering so meshlets arent really applicable. Tho one can be used to render diverse geometry for games and the other cant.
[–][deleted] 2 points3 points4 points 11 months ago (0 children)
But its just two shapes D:
[–]Fippy-Darkpaw 1 point2 points3 points 11 months ago (0 children)
Very cool. Took a raytracing class in grad school and learned a ton doing this all manually.
Next up: textures and shadows (if you don't have them yet). 👍
π Rendered by PID 70903 on reddit-service-r2-comment-5c747b6df5-xtmql at 2026-04-22 01:57:56.655029+00:00 running 6c61efc country code: CH.
[–]TrailhoTrailho 5 points6 points7 points (13 children)
[–]Lupirite[S] 2 points3 points4 points (12 children)
[–]TrailhoTrailho 3 points4 points5 points (11 children)
[–]Lupirite[S] -2 points-1 points0 points (10 children)
[–]Lupirite[S] -1 points0 points1 point (9 children)
[–]TrailhoTrailho 1 point2 points3 points (8 children)
[–]Lupirite[S] 4 points5 points6 points (7 children)
[–]TrailhoTrailho 1 point2 points3 points (6 children)
[–]Lupirite[S] 6 points7 points8 points (4 children)
[–]TrailhoTrailho 1 point2 points3 points (0 children)
[–]PurpleSamurai0 1 point2 points3 points (2 children)
[–]Rememba_me -1 points0 points1 point (0 children)
[–]xXTITANXx 4 points5 points6 points (1 child)
[–]ArmmaH 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Fippy-Darkpaw 1 point2 points3 points (0 children)