magcius/sw3dv
View on GitHub ↗ ★ 6 JavaScript
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2016-09-27 · latest 2022-09-11
20082026
-
…to do your rotations without a matrix, for the learners ( just expand out the functions, e.g. https://github.com/magcius/sw3dv/blob/gh-pages/b_vert.glsl#L... )
comment by Jasper_ · 2022-09-11 · in Rendering my (billiard) balls in a fragment shader -
You can write a basic (read: slow) rasterizer in 100 lines or so. It's mostly math. https://github.com/magcius/sw3dv/blob/gh-pages/sw_rast.js#L1...
comment by Jasper_ · 2020-12-01 · in Computer Graphics from Scratch (2017) -
…C++, if you want a second opinion of "how it works": http://magcius.github.io/sw3dv/sw_rast.html https://github.com/magcius/sw3dv/blob/gh-pages/sw_rast.js The math and geometry behind 3D projection and 3D rendering is fairly basic once it…
comment by Jasper_ · 2016-09-27 · in How OpenGL works: software rendering in 500 lines of code