POV-Ray : Newsgroups : povray.newusers : transparent backlit colored gels : Re: transparent backlit colored gels Server Time
30 Jun 2024 15:07:11 EDT (-0400)
  Re: transparent backlit colored gels  
From: George White
Date: 22 Nov 2011 13:55:01
Message: <web.4ecbeefcf120d22746dfc3530@news.povray.org>
I added in the pigment and still have something that looks very strange when
front lit. I am working on an animated sequence where I need the front and back
lit to both work.

_____________

#include "colors.inc"
#include "textures.inc"
#include "shapes.inc"
#include "metals.inc"
#include "skies.inc"


//++++++++++++++++++++

camera {
   location <-0, 1, -5>
   look_at <.5,.5,0>
}

//++++++++++++++++++

//light_source {< 0, 10, 10> color White }  //back

light_source {< 0, 10,-100> color White  }  //front

//++++++++++++++++++
sky_sphere {
    pigment {
      gradient y
      color_map {
        [ .4  color <.9,.9,.9>  ]
     }
      scale 1000
     translate -1
    }
  }

//++++++++++++++++++++++
//wall with opening

#declare wind_width = 3;
#declare wind_height =3;
#declare wind_depth = 1;

#declare wall =box {
                        <-200,-200,wind_depth/3>
                        <200,200,-wind_depth/3> };

#declare window_opening = box {<-5,-.5,wind_depth/2>
<wind_width-.5,wind_height, -wind_depth/2>}

#declare wall      = difference {

                      object {wall pigment {Cherry_Wood}}
                      object {window_opening }
                        }
wall

//+++++++++++++++++++++++


//++++++++++++++++++++++++++++++++++++++++++
#declare Blue_gel =
box {<0, 0,0 >  <1, 1, -.01 > hollow
   texture {pigment {rgbt <0,0,1,1>
                        }
//       finish { reflection rgb 1 }
        }
   interior {
     media {
       scattering {1, <1,0,0>*1000}
     }
   }
}

#declare Yellow_gel =
box {<0, 0,0 >  <1, 1,-.01 > hollow
   texture {pigment{rgbt  <1,1,0,1>
                       }
//      finish { reflection rgb 1 }
                }
   interior {
     media {
       scattering {1, <0,0,1>*1000}
     }
   }
   translate <.5,.5, -.5>
}

Blue_gel
Yellow_gel


Post a reply to this message

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