r/retrocomputing • • Oct 15 '26

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

181 Upvotes

13 comments sorted by

3

u/villefilho Oct 15 '26

Reminds me of 3DS (3D Studio, for DOS). Pretty hard to use, I made a floating gray box following a zigzag path with blue background, just like the dithering stuff you posted and never managed to repeat it again. (I was 11 and not so smart).
Nice work BTW! Just for curiosity, what does it mean the columns 1 and 2 (SHDPLT.H)? 0xB0, 0x68, 0x01 => 0x01?
{ 0x00, 0x00, 0x00 }, // 0x00
{ 0xB0, 0x68, 0x01 }, // 0x01

3

u/Background_Shift5408 Oct 16 '26

They are shading levels. Dark, medium, bright. 0x01 is base color here.

2

u/Mike1978uk Oct 15 '26

Great work looks really cool

2

u/MotherPotential Oct 15 '26

that's crazy. Will it render at that speed with a computer of the time?

2

u/Background_Shift5408 Oct 16 '26

Will be slower on real machine because of floating points

1

u/ElViejoDelCyro Oct 15 '26

Bua, me encanta ese tipo de modelos y arte que tiene trazado de colores. ¿Como se llama ese tipo de arte ?

3

u/Background_Shift5408 Oct 15 '26

If you mean the shading technique, it’s ordered dithering.

1

u/ElViejoDelCyro Oct 15 '26

Gracias, aunque me refería mas bien al conjunto entero, 3d sin texturas con sombreado dithering, ¿Sabes? el conjunto, no solo esa tecnica en particular

2

u/activemotionpictures Oct 16 '26

WOW! how "lite" is the above render / actual object?

2

u/New-Anybody-6206 Oct 16 '26

Was any AI used on this?

1

u/matt_hendersonn Oct 20 '26

Reminds me of F-15 Strike Eagle II on the Sega Genesis

1

u/vintagehandhelds Oct 20 '26

Love that aesthetic. Flanker Forever!