POV-Ray : Newsgroups : povray.binaries.images : Untitled S.F. [W.I.P] take 2 : Re: Untitled S.F. [W.I.P] take 2 Server Time
2 Nov 2024 04:22:15 EDT (-0400)
  Re: Untitled S.F. [W.I.P] take 2  
From: RobF
Date: 31 May 2011 01:20:07
Message: <web.4de47962d55febdd7ab7c0b80@news.povray.org>
Hi Anthony,

Since your planet is far away, you may also want to consider using the aoi
pattern to fake an atmospheric glow. Although it doesn't give that soft/hazy
look, it renders very fast.  Here's a code snippet and an example of what it
looks like (with the USS Enterprise, of course! :-)

#declare p_planet_atmosphere =
      pigment {rgbt <0.5,0.5,0.5,0.5>}; // adjust transparancy component to
change atmospheric translucency

#declare p_planet_atmosphere_glow =
    pigment {rgb <0.9,0.95,1>*1.8}; // atmospheric glow

#declare p_planet_atmosphere =
pigment {
  aoi
  pigment_map {
  [0.5 p_planet_atmosphere_glow]
  [0.7 p_planet_atmosphere]
  }
};

#declare t_planet_atmosphere =
      texture {pigment {p_planet_atmosphere}
              finish {ambient 0}
      }
    union {
      sphere {0,3   texture {T_Stone22  finish {phong 0 ambient 0 reflection 0}}
}  // planet surface
      sphere {0,3.0001 texture {t_planet_atmosphere}}
   // planet atmosphere
     }

// need a bright light to make it glow

---
Rob.
Rob Fitzel
www.fitzel.ca/dart


Post a reply to this message


Attachments:
Download 'aoiatmosphere.jpg' (176 KB)

Preview of image 'aoiatmosphere.jpg'
aoiatmosphere.jpg


 

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