POV-Ray : Newsgroups : povray.documentation.inbuilt : Problem with formula in blob documentation Server Time
18 Apr 2024 10:07:39 EDT (-0400)
  Problem with formula in blob documentation (Message 1 to 1 of 1)  
From: SharkD
Subject: Problem with formula in blob documentation
Date: 13 Nov 2008 20:30:00
Message: <web.491cd381d5422946849303c80@news.povray.org>
In the section, "Finite Solid Primitives > Blob" (section 3.4.1.1 in the version
3.6 docs), a formula is given for calculating blobs:

density = strength * (1 - (distance / radius)^2)^2

This is only partially correct. While it is true that the density falls off as
it approaches a distance equal to the radius, the problem with the formula is
that the density *increases* as you proceed further from the radius. In order
to fix this, the following formula should be used instead:

density = strength * (1 - (min(distance, radius) / radius)^2)^2

-Mike


Post a reply to this message

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