Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are no vertices in the code. Everything is done with CSG functions. If you are unfamiliar with them, let's just say that they are functions describing if a coordinate is inside or outside an object.

I believe this technique was first popularised in the demoscene, because it makes for some extremely concise procedural descriptions of 3D scenes:

https://iquilezles.org/www/articles/distfunctions/distfuncti...



The POVray ray tracer uses CSG in its scene descriptions as well. CSG is a really neat way to visualize objects mentally, too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: