POV-Ray : Newsgroups : povray.binaries.images : Helical SDF for Isosurfaces : Re: Helical SDF for Isosurfaces Server Time
2 Jan 2025 09:15:17 EST (-0500)
  Re: Helical SDF for Isosurfaces  
From: Kenneth
Date: 22 Dec 2024 21:10:00
Message: <web.6768c60b4a98c6d6e83955656e066e29@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
>
> The only thing I succeeded in doing was slightly simplifying your
> equations, to make them easier to work with (for me.) I think they behave a
> *little* bit better, but not much.
> [snip]
> I think that the same rifling/spiral effect as your's can be gotten
> by leaving the first 'tau' here as tau/1 (or just tau), and only changing the
> 2nd tau.

Well, I was wrong :-/  In my own 'simplified' group of equations, leaving the
first tau as tau/1 produces only ONE groove down the length of the barrel, no
matter how I change the frequency.

#declare Helix = function {select (mod (Theta(x, y, z), tau/1) - tau/2, 0.15,
0.35)}

The rifling should have *many* grooves---which your code successfully produces.
Your own set of equations is definitely better-- even with the little 'glitch'
(which can be translated away.)

As usual, I didn't see this until after I posted. (**groan**)


Post a reply to this message

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