It doesn’t do rasterization or culling in Numpy, so I wouldn’t call it a complete rendering pipeline.
Cool proof of concept — But not particularly surprising that you can do matrix multiplications on points using a matrix library. Pyrr is another good library that is built specifically for this 3D use case.
Yeah, that's just for teaching purpose. There's no way to lose yourself in the code as there's only a few lines for parsing the .obj file and everything else is the pipeline.
Yes and no: you're doing all the rendering in JS without any framework, that's true. But, you're not using a traditional "everything is a matrix multiplication" concept using homogenous coordinates. You're suming vectors coordinates instead of multiplying by a translation matrix.
5 comments
[ 2.5 ms ] story [ 18.0 ms ] threadCool proof of concept — But not particularly surprising that you can do matrix multiplications on points using a matrix library. Pyrr is another good library that is built specifically for this 3D use case.