POV-Ray : Newsgroups : povray.binaries.images : Helical SDF for Isosurfaces : Re: Helical SDF for Isosurfaces Server Time
21 Dec 2024 11:53:39 EST (-0500)
  Re: Helical SDF for Isosurfaces  
From: Bald Eagle
Date: 13 Dec 2024 10:20:00
Message: <web.675c4fc34a98c6d66563700825979125@news.povray.org>
"Chris R" <car### [at] comcastnet> wrote:
> My current WIP (Scrabble) had a need for a helix that I could texture, and I
> could not find one in Inigo Quilez article on distance functions, so I decided
> to create one myself using his basic principles.

An explanation of how you went about that would be a welcome tutorial.
I'll probably read that over 100 times when I get some free time in the future
to make some shapes myself.

> I started just sing a circular cross section, but as you can see from the image,
> I abstracted it so you can supply any 2D cross-section SDF, (this one is a
> simple 2D square that I rotated 45 degrees).

There are all of the inbuilt functions and their aliases in functions.inc,
including just such a spiral function with a cross-section parameter.

Hopefully some time this weekend I will post a link to Mike Williams' isosurface
tutorial, which also has a ton of good information.


> Since it is an SDF, applying textures by adding noise works as expected.

And presumably you can make level-set ("coaxial") shells?

Very nice work.

- BW


Post a reply to this message

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