My 3D projection library for Uxn is complete!
Features points, lines, variable FOV, adjustable view frustum, screen space clipping, and 16 bits of precision, everything in around 4 kilobytes of bytecode.
https://git.sr.ht/~bellinitte/pinhole
My 3D projection library for Uxn is complete!
Features points, lines, variable FOV, adjustable view frustum, screen space clipping, and 16 bits of precision, everything in around 4 kilobytes of bytecode.
https://git.sr.ht/~bellinitte/pinhole
Devine Lu Linvega
in reply to charlie • • •Wow, this is amazing. I will dive into this today!
I've optimized the draw-line routine to do away with zp labels, and it's a bit faster too:
https://git.sr.ht/~rabbits/catclock/tree/main/item/src/catclock.tal#L180
I was wondering if you could add the sphere and teapot examples to the folder? An button to rotate around the cube would be good to have as well ❤
~rabbits/catclock: src/catclock.tal - sourcehut git
git.sr.htcharlie
in reply to Devine Lu Linvega • • •@neauoire Let me know if you encounter anything that "looks off" 😀
I can extend the examples for sure! The thing about that teapot clip though, is that it's not real-time at all (it's sped up 8x), there's just too many edges to project. And also considering that the mesh is kinda huge, including it would be a bit awkward
Devine Lu Linvega
in reply to charlie • • •