Divide by depth for instant 3D
gabrieloc.com - 45 poäng - 5 kommentarer - 183313 sekunder sedan
Kommentarer (4)
- TN1ck - 186 sekunder sedanThe sliders are great UX on mobile, love the detail to attention.
- aappleby - 6634 sekunder sedanFWIW, if you start with "The view frustum is a 90 degree pyramid with the tip cut off at z = 1 and the 'end' at infinity", you can then work out how to map that to a NDC using a matrix and perspective divide.
I've used that when teaching short "Graphics 101" (not in the first session though) and the math comes out more intuitive than the usual "here's how to calculate a perspective matrix, don't ask where these numbers come from" version.
- gabrieloc - 183313 sekunder sedanHi! I wrote a few notes on how 3D cameras work with interactive examples to hopefully demystify a pretty complex topic that I once struggled with. Maybe this is useful for someone here, and if not, there are fun sliders to play with!
- xcafebabe - 4138 sekunder sedan[dead]
Nördnytt! 🤓