"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Chris R" <car### [at] comcastnet> wrote:
>
> > One of the things that really helps with this is having a version of
> > f_rounded_box that more accurately returns the distance of a point from the
> > surface of the box. That allows me to simply add/subtract other pigment
> > functions with a depth I can model to the shape function in the isosurface.
> > It's much slower than the built-in f_rounded_box, but gives more controllable
> > results.
>
> Interesting.
> What equation are you using?
>
> I'm wondering if you might benefit from this:
>
> https://iquilezles.org/articles/distfunctions/
>
> - BW
Thanks for the link! I'll have to compare them to what I wrote. For my rounded
box I basically constructed it from boxes, cylinders, and spheres for which I
had exact distance functions; this version is much more elegant.
-- Chris R.
Post a reply to this message
|