POV-Ray : Newsgroups : povray.text.tutorials : Re: Gas Ball : Re: Gas Ball Server Time
18 May 2024 09:54:26 EDT (-0400)
  Re: Gas Ball  
From: Rick
Date: 26 Apr 1999 13:01:47
Message: <37248deb.0@news.povray.org>
>Great web pages! Looking at that "Nightwatch" image, that must be one
>showing a sphere containing media. You didn't mention which ones,
>Zargon1.jpg as well. Did you try a zero density well within the unit
>size yet? And doubling up on the zero density in a map. By that I mean
>like this:
>
>               //0 index not needed
>  [0.25 rgb 0] //zero density is far within unit size
>  [0.25 rgb 0] //zero density begins here
>  [0.5 rgb 0.5] //and goes to half density here
>  [1 rgb 1]

     Bob, I have tried this and it got me going in the right direction.
Essentially, this yielded an invisible sphere that emanates light, but
there's no gas ball. I messed some more and finally got this, which seems
to work better than what I was using -- it yields an invisible sphere with
a yellow gas ball and a red ball outside the yellow one:

color_map {
      [0.0 color rgb <1, 0, 0>]  //[0.0 color rgb <1, 0, 0>]
      [0.1 color rgb <40, 0, 0>]  // [0.1 color rgb <100, 0, 0>] // THE 40
IS THE KEY
      [1 color rgb <100, 100, 0>]  //[1.0 color rgb <100, 100, 0>]

     I hope this makes sense -- this stuff is all so new to me that *I*
would have a heck of a time understanding it without POV running at the
same time to try it out.

     Thanks again for the feedback, and the kind words, too.


Post a reply to this message

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