r/C_Programming • • Oct 22 '26

Project A low-poly 3D Renderer for MSDOS

I’ve been working on a small project called 3Dos — a low-poly 3D renderer targeting MS-DOS and VGA Mode 13h (320×200, 256 colors).

The renderer currently supports:
● Triangle rasterization with backface culling
● Ordered dithering using a 4×4 Bayer matrix
● Double buffering
● Simple low-poly models

Going back to DOS-era graphics has been relaxing after spending quite a bit of time with Vulkan. No boilerplate or abstractions, just putting a pixel at 0xA000.

Github: https://github.com/xms0g/3Dos

AI usage: Only extracting vertices and faces from the model file.

227 Upvotes

30 comments sorted by

•

u/github-guard Oct 22 '26

🔍 GitHub Guard: Trust Report (Passed)

Here are the safety audit results for the linked repositories:

Repository: xms0g/3Dos

Score: 3/6

  • ✅ Established Community (⭐ 88 stars)
  • ✅ Mature Repository (30+ days old)
  • ✅ Licensed under BSD-3-Clause
  • ❌ No Security Policy
  • ℹ️ Personal Account Repository
  • ℹ️ Unsigned Commits

⚠️ Security Reminder: Always verify source code before executing scripts.

10

u/rayriflepie Oct 24 '26

This is divine intellect.

5

u/Background_Shift5408 Oct 24 '26

Thx. Few people in the world can understand how amazing this is.

2

u/Then_Living4630 Oct 24 '26

How in the world pll learn to do this kind of projects???

4

u/Background_Shift5408 Oct 24 '26

Curiosity and passion. Also a lot of patience. We make a lot of mistakes, struggle with crashes. In retro programming, have to deal with ancient tools, awkward architecture and if you stuck at a point you are really stuck at. This is frustrating, but also amazing to figure out what happens.

1

u/Then_Living4630 Oct 27 '26

How long have you programming?

2

u/terra2o Oct 24 '26

i absolutely love DOS projects!! i also have a curses game that can run on FreeDOS :P

1

u/Embarrassed_Army8026 Oct 23 '26

might fit my company's ecosystem perfectly. how many punch cards / tape?

2

u/Background_Shift5408 Oct 24 '26

A standard IBM punch card includes 80 columns across its width.Typically holds 72 lines or characters of actual program or data code per card. So thinking of 42kb of EXE, a lot of cards xd

1

u/Rararror Oct 23 '26

Is this working on a old machine? I mean an old machine is fast enough? or just emulator on a 4GHz ?

2

u/Background_Shift5408 Oct 24 '26

Yes it can but will be slower because of floating points.

1

u/Rabbitical Oct 25 '26

Would be cool to see if fixed point could work

1

u/Background_Shift5408 Oct 28 '26

My next goal is to get rid of floating points

1

u/Imaginary-Set-284 Oct 24 '26

do you have some resources to learn how to build a stuff like that?

1

u/Background_Shift5408 Oct 24 '26 edited Oct 24 '26

What do you want to learn, software rendering or VGA programming?

1

u/Imaginary-Set-284 Oct 24 '26

Both

2

u/Background_Shift5408 Oct 24 '26 • Heartwarming

For software rendering pikuma’s course is the best. For VGA programming, you are at your own. You have to read old blog posts about it, dos manuals, vga manuals. And you have to deal with old-school development tools like turbo c++, tasm, tlink to generate a 16bit dos exe.

1

u/Ok-Lifeguard-9612 Oct 28 '26

I thought was Temple OS for a moment

1

u/AoyamaTama 11d ago

that's sooooo cool, i thought not many would working on projects like this in now days

1

u/Background_Shift5408 11d ago

We need more people working on these

2

u/Zealot8086 Oct 24 '26

Cool. You should try to remake f19.

1

u/AutoModerator Oct 22 '26

Hi /u/Background_Shift5408,

Your submission in r/C_Programming was filtered because it links to a git project.

You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.

While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.

You can read more at https://www.reddit.com/r/C_Programming/wiki/index/posting-projects


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Certain-Flow-0 Oct 27 '26

Love the dithering

1

u/imangoldfish Oct 29 '26

Holy fighter jet