from Hacker News

Show HN: Render Arbitrary 3D Boolean Functions

by unixpickle on 2/13/20, 8:28 PM with 6 comments

  • by unixpickle on 2/13/20, 8:28 PM

    This is a web demo for creating 3D models in JavaScript. It uses a variant of ray casting that can render any function mapping `(x, y, z) -> bool` in real-time.

    It's easy to define very interesting 3D models as boolean functions. In my opinion, it's much easier than creating triangle meshes or composing a bunch of primitive shapes. I had fun making the examples, and I'm curious to see what other people can come up with.

  • by photon_off on 2/15/20, 9:07 AM

    I don't have any feedback or strong opinions on this, but the concept of mapping (x,y,z)=>bool and having it produce a 3d object is new to me. This is a very cool demonstration; thank you for sharing.