POV-Ray : Newsgroups : povray.advanced-users : Re: More trouble with media : Re: More trouble with media Server Time
29 Jul 2024 20:28:06 EDT (-0400)
  Re: More trouble with media  
From: Tom Melly
Date: 12 Jan 2001 07:51:38
Message: <3a5efdda$1@news.povray.org>
>
> > I want a unit sphere that looks like a glowing ball of yellow or green
> > gas.  Once again, I can't get it to show up at all.  it's always
> > completely invisible.
>

// try something like this (note the comments about megapov)
#version unofficial MegaPov 0.5; // remove this line if not using megapov

#include "colors.inc"
light_source{<0,0,0> White translate <-20, 20, -20>}
camera{location  <0,0,-50> look_at <0,0,0>}

sphere{0, 20
  pigment{rgbf 1}
  finish{reflection 0.1 specular 0.5 roughness 0.001}
  hollow on
  interior{
    ior 1.6

    media{
      method 3 // replace this line with "intervals 50" if not using megapov
      emission rgb<0.5,0.5,1>*0.125
      absorption rgb<1,1,0.5>*0.125
      density{
        agate scale 10
        density_map{
          [0.99 Black]
          [0.99 White]
        }
      }
    }

    media{
      method 3 // replace this line with "intervals 50" if not using megapov
      emission rgb<1,0.5,1>*.25
      absorption rgb<0.5,1,0.5>*.25
      density{
        spherical scale 10
        density_map{
          [0.0 Black]
          // [0.1 Black]
          [1.0 wrinkles scale 5]
        }
      }
    }

  }
}


Post a reply to this message

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