POV-Ray : Newsgroups : povray.binaries.images : A Lamp and a Question <21k jpg> : Re: A Lamp and a Question <21k jpg> Server Time
3 Oct 2024 17:16:24 EDT (-0400)
  Re: A Lamp and a Question <21k jpg>  
From: Marc Schimmler
Date: 25 Jan 2000 03:35:12
Message: <388D6040.2AD50275@ica.uni-stuttgart.de>
Eric Freeman wrote:
> 
> Hey all,
> 
> I'm working on a lamp that I saw in a waiting room the other day.  The
> problem is the lamp shade.  It should be opaque in that you can't see thru
> it but transparent in that it lets light out.  Is such a thing possible?  Is
> this a job for media???  I'm clueless.
> 
> Eric

I would use those patches in povray that are translucent, like the
bicubic patch. 

Here's a example code. Have a look at the texture statement. It's only
rgb ... not rgbt.

camera {location <0,5,0>
        look_at  0}

light_source {y*0.5 rgb 4}

bicubic_patch{
  type 0
  flatness 0.001
  u_steps 4
  v_steps 4
  <0,0,0>,<1,1,0>,<2,1,0>,<3,0,0>,
  <0,1,1>,<1,1,1>,<2,1,1>,<3,1,1>,
  <0,1,2>,<1,1,2>,<2,1,2>,<3,1,2>,
  <0,0,3>,<1,1,3>,<2,1,3>,<3,0,3>
  texture{pigment{rgb<1.0,1.0,0.8>}
          finish {ambient 0
                  diffuse 0.4
                  reflection 0}
         }
  translate <-1.5,0,-1.5>        
}


Hope this one helps.

-- 
Marc Schimmler


Post a reply to this message


Attachments:
Download 'bezier.jpg' (6 KB)

Preview of image 'bezier.jpg'
bezier.jpg


 

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