POV-Ray : Newsgroups : povray.binaries.images : Distant Haze - How To? : Re: Distant Haze - How To? Server Time
29 Apr 2024 01:41:02 EDT (-0400)
  Re: Distant Haze - How To?  
From: clipka
Date: 27 Apr 2018 18:44:50
Message: <5ae3a7e2$1@news.povray.org>
Am 27.04.2018 um 19:40 schrieb Sven Littkowski:
> Clipka, do you think, adding "torus" to the existing patters (spherical,
> planar, cylindrical, and boxed) of density_maps would be useful and
> possible?

There is no such thing as "patterns of density_maps"; any pattern that
can be used with a pigment_map can also be used with a density_map.

Adding a torus pattern should be possible; however, it would have to be
specified what syntax to use to parameterize it (at least the ratio
between minor and major radius should be configurable; the major radius
could be specified by scaling the pattern), and whether the pattern
should continue /ad infinitum/ like `onion`/`wood`, or rather drop to
zero like `spherical`/`cylindrical`.

Also, it is questionable whether the use case is important enough to
warrant implementing a dedicated pattern, or whether the inbuilt
`f_torus()` function (accessible via `functions.inc`) combined with a
function pattern can be considered sufficient.


Post a reply to this message

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