POV-Ray : Newsgroups : povray.binaries.images : Bocce - WIP : Re: Bocce - WIP Server Time
18 Jul 2024 06:47:48 EDT (-0400)
  Re: Bocce - WIP  
From: Chris R
Date: 17 Jun 2024 09:05:00
Message: <web.667034282d85bd69bdf5e0875cc1b6e@news.povray.org>
"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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.