POV-Ray : Newsgroups : povray.documentation.inbuilt : Problem with formula in blob documentation Server Time
22 Jan 2022 21:14:27 EST (-0500)
  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 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


Post a reply to this message

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