Skip to main content


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

#uxn #theWorkshop

in reply to charlie

Wow, this is amazing. I will dive into this today! :uxn:

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 ❤

This entry was edited (1 year ago)
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

in reply to charlie

After a day of toying with this, I can report that this is FANTASTIC :moar:

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.