POV-Ray : Newsgroups : povray.advanced-users : Media and density question : Media and density question Server Time
28 Jul 2024 22:16:38 EDT (-0400)
  Media and density question  
From: Erhard Ducke
Date: 1 Dec 2003 12:24:15
Message: <0utmsvk3jucrmv28dljhnmpbgd264rmbgm@4ax.com>
Hi!
I try to make a sphere media with a spherical density.
The density should be 1 at the center and constant until x percent of the
radius are reached. Then the density should falloff linear until the radius
of the sphere is reached.
How can I achieve this? density_map?

//********************************
                    media {
                        scattering {3, <1,1,1>}
                        intervals 1
                        density_map {
                        ???
                        }
                    }
//***********************************


Can anyone give an example?
Thanks!

-- 
Erhard Ducke


Post a reply to this message

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