4 ms·
I recently got tip on a 3D version of round rectangles, called octasphere: https://prideout.net/blog/octasphere/ https://prideout.net/blog/octasphere/ It's not
by jmiskovic 5y ago
I recently got tip on a 3D version of round rectangles, called octasphere: https://prideout.net/blog/octasphere/ https://prideout.net/blog/octasphere/
It's not a direct-to-screen rendering technique like the article, rather a way to procedurally construct the 3D mesh based on few parameters (W,H,D, radius, # of subdivisions). Just like rectangles in 2D, boxes in 3D are too simple and have harsh sharp edges. Adding rounded edges makes them nicer to look at. Additionally, the octasphere method gives you capsules and spheres and everything in-between.
Edit: Oh look - there's a front page article that talks about this in-depth: https://wwwtyro.net/2021/09/24/rounded-box.html https://wwwtyro.net/2021/09/24/rounded-box.html