POV-Ray : Newsgroups : povray.newusers : Block light from entering cavity : Block light from entering cavity Server Time
15 May 2024 00:49:27 EDT (-0400)
  Block light from entering cavity  
From: John Greenwood
Date: 19 Feb 2014 07:50:01
Message: <web.5304a8068682cf24a7cafab50@news.povray.org>
I want to show a scene in which part is in an underground cavity, as in the
scene below.

The cavity is to be lit from local lights and light coming down the two holes in
the y plane but no light should come through the cross-section z plane. How do I
block this off?

// Persistence of Vision Ray Tracer Scene Description File
// File: Cavity_below_ground.pov
// Vers: 3.7


#include "colors.inc"
#include "stones1.inc"
  camera {
    location <3, 10, -40>
    look_at <0,3 , 0>
    angle 20
  }
  background { color rgb<0.2, 0.4, 0.8>  }
  light_source { <100, 100, -100> color rgb 1 }
  global_settings {assumed_gamma 1.0 }


difference {
  #intersection  {
    plane {y,6 texture { T_Grnt1}}
    plane {z,-4 inverse  texture {T_Stone14}}
                  }
  #union {
    box {<-20,2,.9>,<20,0,-1> }
    box {<-6,10,1>,<-2,1,-1> }
    box {<6,10,1>,<2,1,-1> }
    box {<-5.5,5,-.5>,<5.5,.1,-100> }
    texture {T_Stone15}     }  }


Post a reply to this message

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