POV-Ray : Newsgroups : povray.advanced-users : Media and density question : Re: Media and density question Server Time
28 Jul 2024 22:26:43 EDT (-0400)
  Re: Media and density question  
From: Warp
Date: 2 Dec 2003 06:08:55
Message: <3fcc72c7@news.povray.org>
Tim Nikias v2.0 <tim.nikias (@) nolights.de> wrote:
> density_map{spherical color_map{[0 rgb 0][1 rgb 1]} scale Sphere_Radius}

  He wanted a constant density up to certain radius, after which the
density should drop linearly to 0 on the outer surface of the pattern.
  So instead of the [1 rgb 1] he should write [1-P rgb 1] where P is the
desired percentage of the radius (between 0 and 1).

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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