POV-Ray : Newsgroups : povray.general : How to see an atom? : Re: How to see an atom? Server Time
14 Apr 2024 12:43:16 EDT (-0400)
  Re: How to see an atom?  
From: Bald Eagle
Date: 3 Mar 2024 10:35:00
Message: <web.65e4988c149eb1aa1f9dae3025979125@news.povray.org>
"Thomas Fester" <tfe### [at] scivitde> wrote:

> Can you define gradients for media? So far I only know how to do uniform
> material.

Yes.  Media is controlled by any pattern or function just like pigments,
normals, etc.

https://www.f-lohmueller.de/pov_tut/interior/interior_000e.htm

#version 3.8;
#include "colors.inc"
#include "shapes.inc"
global_settings {
 assumed_gamma 0.4
}

sky_sphere {pigment {rgb 1}}

camera {
  location <0, 0, -35>
  look_at  <0, -1, 0>
}


box {
 <-20, -5, -5>, <20, 5, 5>
 pigment {rgbt 1}
 hollow
 interior {
  media {
   emission <1, 0.2, -0.6> * 0.9
   scattering {1, <1, 1, 1> extinction 2.0}
   density {gradient x
    color_map {
     [0.0 rgb 0.0]
     [0.5 rgb 0.1]
     [1.0 rgb 1.0]
    } // end color_map
   } // end of density
  } // end of media ----
 } // end of interior
}

Then you can just use spherical harmonics functions to simulate the orbital
shapes, like I mentioned in an earlier post.

- BW


Post a reply to this message

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