POV-Ray : Newsgroups : povray.general : Putting light sources inside hollow objects : Re: Putting light sources inside hollow objects Server Time
10 Aug 2024 17:22:39 EDT (-0400)
  Re: Putting light sources inside hollow objects  
From: Andrew Clinton
Date: 11 Nov 1999 16:38:12
Message: <382B3736.3B2FCAFF@ibm.net>
Paul,

I don't think it will work with the hollow command on the cylinder because pov
needs solid objects to perform a csg.  Try removing this and it should work.

Andrew C


ranger5 wrote:

> Could someone tell me the best way to do the following in POV-Ray...
>
> I want to create a sphere with a light source inside and then put small
> holes in the sphere to allow the light to shine out through the holes.
>
> I've tried using CSG difference to create a sphere pierced by a cylinder and
> put a light source inside...
>
> global_settings { ambient_light 4 }
> #include "colors.inc"
>
>   difference {
>     intersection {
>       sphere { <0, 0, 0>, 1 hollow
>       }
>       pigment { Red }
>
>     }
>     cylinder { <0, 0, -1> <0, 0, 0>, .35 hollow
>     }
>   }
>
> background {color Black}
> light_source { <-1,2,-3> White shadowless}
> light_source { <0,0,0> White }
> camera{ location <1,0,-5> look_at <0,0,0> orthographic}
>
> Please help, i'm new to POV-Ray and i'm struggling a little with this
> problem.
>
> Thanks
> Paul


Post a reply to this message

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