3 ms·
Well, those shapes are hard to accomplish with a CSG of primitive shapes at least. This isn't really "plain CSG" though. I think it uses distance fields (a tree
by alkonaut 11y ago
Well, those shapes are hard to accomplish with a CSG of primitive shapes at least.
This isn't really "plain CSG" though. I think it uses distance fields (a tree of distance functions), which can be of any kind. The simples ones are just primitives, but anything that has a defined distance could be used, including parametric surfaces, fractals... (If you are using it for actual CAD and not just visualization, you probably want to be able to triangulate though). These distance fields have some neat features when rendering, such as blending, which is hard to do with classical CSG:
http://iquilezles.org/www/articles/distfunctions/gfx18.png http://iquilezles.org/www/articles/distfunctions/gfx18.png
(from http://iquilezles.org/www/articles/distfunctions/distfunctions.htm http://iquilezles.org/www/articles/distfunctions/distfunctio...).
- jjoonathan 11y agoYeah, but how difficult is it to make a distance field with the same versatility as a spline which lets you drag its surface, explicitly add seams of lower continuity (which are important out past the second derivative for reflections), shell a surface to uniform thickness, etc? Blending shapes is neat trick but the market cares most about fundamental operations and it seems to me that the fundamentals are harder to implement with CSG.
- alkonaut 11y agoYes, it's definitely a tradeoff. I wouldn't think distance field modeling will ever be mainstream in design for manufacturing, just like CSG won't be. They are mainly useful in direct visualization. There may be lost of niches such as content creation for gaming etc where other representations can be useful.