|
|
"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
|
|