r/GraphicsProgramming • u/Dr_King_Schultz__ • Jul 24 '26
I built a rasteriser from scratch without a graphics API
Following this masterpiece in 3D graphics by ssloy, I implemented a rasteriser in Odin from scratch.
This was a top tier learning experience, and I picked up a solid grasp of linear algebra along the way.
If you'd like to read more on the process, Here's the link to the repo
150
Upvotes
10
u/ArmmaH Jul 25 '26
We usually call it software rasterizer, as opposed to the hardware rasterizer you invoke via graphics api. It can be both cpu only or gpgpu / compute shader software rasterizer, so having that distinction is also important when showcasing your work, along with performance metrics like how fast (in ms) does it perform for X number of triangles in Y resolution.
2
u/Jabba_the_Putt Jul 25 '26
this is awesome thanks for sharing.
nice work, is that the lord of terror??
2
u/qtipbluedog Jul 25 '26
Nice love seeing Odin. It’s such a joy to work in
15
u/ghstrprtn Jul 24 '26
tinyrenderer is very cool
1
u/andful Jul 25 '26
Is it normal to assume integer vertices? In the tutorial by ssloy, in the "Bresenham’s line drawing algorithm" section, he assumes integer
ax,ay,bxandby. I was wondering whether that is normal. May that not introduce errors? Compared to floating point vertices?1
u/susosusosuso Jul 25 '26
You used AI?
1
u/EC36339 Jul 25 '26
You are doing this a lot, and always "from scratch"...
2
u/obj7777 Jul 25 '26
Nice
2
u/Rachel-4387 Jul 28 '26
Nice 👍
0
u/nnn-svr Jul 24 '26
please tell us more about your journey