3D renderer!

I was bored, and I only had my school computer. I usually make 3d games on unity or just monogame (c# framework), and I wanted to know how 3d renderers work, so I made one!

One itny issue, the JS! you only use it for pointer lock so why not check if it exists and only do pointer lock WHEN js is enabled. Maybe also do triangles?

Ok, I will fix that after school.

dude you can make 3d stuff here?

yes but its hard

Most 3D imagers uses raycasting. I have a few example projects to show how it’s made, and how to display it.

it doesn’t, have you checked it?

I primarily meant “3D stuff mainly uses” raycasting. Sorry for the confusion :]

wow, nice renderer!
would you mind giving me a brief explanation on your process of making this?
i love 3d projects but i don’t really understand the development part :sweat_smile:


yeah, with raycasters, a lot of math, or the 3D Beetle Geometry library
it’s very cool what you can do in snap!!

nice job my friend. this 3d renderer is my favorite so far. mainly because of its complexity.

so first, you gotta make a 3d line by using pen to go to the first 3d point by doing this (x1 + cam x) / (z1 + cam z) basically do that for the y axis, then a lot of complicated stuff for the rotation

then do the second point by doing the same thing with x1, y1, and z1 with x2 y2 and z2

then you can basically do anything after the rotation stuff

oh i see, seems a bit simpler now
thanks or lending me some knowledge!

your welcome!

I would like to note that the mouse turns too sensitively for players who are not laggy.

and you move too fast.

add max frame rate to fix this? (ex: [forever[wait 0.05 seconds]{rest of the code below it}])

i will probably add delta time instead, but first I will have to figure that out.

Okay.

i know a way to implement (at least a basic form of) delta time if you’d like me to share it with you

dyl you should add a game where you can make a world out of fractals with this renderer (basically fractal block world) it would be cool to experiment with. :o

nah I don’t want to rn

anyway I added deltatime