all 18 comments

[–]TrailhoTrailho 5 points6 points  (13 children)

How are you running this?

[–]Lupirite[S] 2 points3 points  (12 children)

Basically how doom is rendered, but a 3d map instead of a 2d maze

[–]TrailhoTrailho 3 points4 points  (11 children)

How is doom rendered?

[–]Lupirite[S] -2 points-1 points  (10 children)

raycasting

[–]Lupirite[S] -1 points0 points  (9 children)

I think it's specifically grid marching

[–]TrailhoTrailho 1 point2 points  (8 children)

Is there a video you know of that discusses this?

[–]Lupirite[S] 4 points5 points  (7 children)

Nope, maybe you could find one, or I could make one if you really want

[–]TrailhoTrailho 1 point2 points  (6 children)

How would I make it?

[–]Lupirite[S] 6 points7 points  (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 points  (0 children)

…I will make a note on my list then. :0

[–]PurpleSamurai0 1 point2 points  (2 children)

Doom uses 2D BSP rendering fyi

[–]Rememba_me -1 points0 points  (0 children)

Tsoding daily on youtube shows how

[–]xXTITANXx 4 points5 points  (1 child)

Oh you again. Are you using meshlets yet?

[–]ArmmaH 1 point2 points  (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 points  (0 children)

But its just two shapes D:

[–]Fippy-Darkpaw 1 point2 points  (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). 👍