Difference between revisions of "Reference:Spherical Pattern"

From POV-Wiki
Jump to navigation Jump to search
m (1 revision: Reference Migration Initial Load)
 
Line 11: Line 11:
 
originally created for use with <code>halo</code> or <code>media</code> but
 
originally created for use with <code>halo</code> or <code>media</code> but
 
it may be used anywhere any pattern may be used.</p>
 
it may be used anywhere any pattern may be used.</p>
 +
 +
 +
<table class="centered" width="420px" cellpadding="0" cellspacing="10">
 +
<tr>
 +
  <td>[[Image:RefImgSphericalMedia.png|center|200px<!--centered--->]]</td>
 +
  <td>[[Image:RefImgSphericalNormal.png|center|200px<!--centered--->]]</td>
 +
</tr>
 +
<tr>
 +
  <td colspan="2"><p class="caption">spherical pattern used as media and normal respectively</p></td>
 +
</tr>
 +
</table>

Latest revision as of 09:41, 1 March 2014

The spherical pattern creates a one unit radius sphere, with its center at the origin. It is computed by: value = 1.0-min(1, sqrt(X^2 + Y^2 + Z^2)) It starts at 1.0 at the origin and decreases to a minimum value of 0.0 as it approaches a distance of 1 unit from the origin in any direction. It remains at 0.0 for all areas beyond that distance. This pattern was originally created for use with halo or media but it may be used anywhere any pattern may be used.


RefImgSphericalMedia.png
RefImgSphericalNormal.png

spherical pattern used as media and normal respectively