this post was submitted on 22 Sep 2026
151 points (100.0% liked)
Programming
28617 readers
230 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do you render with GPU or CPU? In any case, sort the vertices by distance and it should come together for you.
Just simple CPU calculations. I'm basically just mapping my points from 3D space to my 2D screen and drawing lines between them. Not sure if rendering engine is actually the correct term for what I am doing. The word engine kind of implies a larger scope than I am going for.
Of course, I had to massively complicate this for myself by setting out to use this for displaying basic wireframe graphics on embedded systems... Basically I currently need to figure out how to reduce my triangle based objects to ones that only have the silhouette lines or that only show triangles which are actually visible, except my line drawing setup does not allow for partially obscured faces as is.
It's called projection, and culling, in that order if you want to search for help. But I would have built a ray marcher instead as that is more fun and useful if you are doing it to learn
Sounds great! I would still call it a rendering engine, I don't think it matters how large the scope is. It looks like you're on a good path forward, I'm sure you'll get it soon! Don't go too crazy on the optimizations is my only recommendation.