POV-Ray : Newsgroups : povray.documentation.inbuilt : Problem with formula in blob documentation Server Time: 23 Oct 2019 03:12:02 GMT
  Problem with formula in blob documentation (Message 1 to 1 of 1)  
From: SharkD
Subject: Problem with formula in blob documentation
Date: 14 Nov 2008 01: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-2008 Persistence of Vision Raytracer Pty. Ltd.