POV-Ray : Newsgroups : povray.binaries.images : Help on a Dust ring. : Re: Help on a Dust ring. Server Time
4 Oct 2024 05:21:24 EDT (-0400)
  Re: Help on a Dust ring.  
From: Ben Birdsey
Date: 16 Apr 1999 03:26:49
Message: <3716DCCD.B2E5BE01@unlgrad1.unl.edu>
Looks great, but you should probably squash the torus using a scale command.
(The rings that you can see in our solar system are all pretty thin.)  But
you'll have to turn up your scattering to make the ring the same brightness,
because the ray will travel go smaller distance through the ring.

Also, the absorption keyword controls how much of the transmitted light is
absorbed. (i.e. how much the light from the planet is dimmed by looking through
the ring.)

Here's my suggestion

#define squash = .1;

torus { 20, 0.9
        pigment {color rgbt 1.0}
        finish {
                diffuse 0.4
                ambient 0.8
                }

        // all this info outside the interior command has to do with the
"container"
        // for the media.  If you want to see only the media, make the container
        // invisible by setting the ambient, diffuse, phong, specular, and
reflection
        // values to 0

        interior {
                media {
                        scattering { 2/squash, rgb 0.5 extinction 0.5 }
                        intervals 1
                        samples 1, 5
                        confidence 0.9999
                        variance 1/1000
                        density {
                                bozo
                                ramp_wave
                                turbulence 0.0
                                color_map {
                                        [0.0 color rgb <0, 0, 0>]
                                        [0.5 color rgb <0, 0, 0>]
                                        [0.65 color rgb 0.3]
                                        [0.88 color rgb 0.35]
                                        [1.0 color rgb 0.38]
                                        }
                                scale 0.1 * <1,1/squash,1> // makes sure the
density of
                                                           // the "dust balls"
is the
                                                           // same in all
directions
                                }
                }
        }
        hollow
	scale <1,squash,1> 
        translate <-7,0,30>
        }


Post a reply to this message

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