POV-Ray : Newsgroups : povray.general : Some features I would like 2 : Re: Some features I would like 2 Server Time
16 Nov 2024 11:17:12 EST (-0500)
  Re: Some features I would like 2  
From: Philippe Debar
Date: 22 Aug 1998 04:47:53
Message: <35de77a9.0@news.povray.org>
Ron Parker wrote in message <35dc8acf.0@news.povray.org>...


>>   light_source { 0, color rgb 1 clipped_by{sphere{0,100}} translate
>>TheLight}
>Ah.  I see now that you and I have different views of what it means to clip
>a light source.  I was wanting to clip them so that they only illuminate,
>say, the pyramidal area projected by a square cutout.  Such light sources
>could be used to simulate specular reflection from plane surfaces.

Right - I had some difficulties with understanding the clipping/reflection
relationship, but I got it... while replying last time. The sphere centered
on the
light example was very simple; but if you want:

light_source
  { 0 color rgb <1,1,1>

pped_by{ 
     prism { .... conic_sweep.... matrix/*shearing*/} /* or any object you like */ }
  }

The light_source doesn't have to be in the clipping object, even if it was
in my example. The syntax is simple, already learned and seemed logical
to me (and, yes, I am a bit lazy).

By the way, the cylindrical light_source does seem to be a clipped
light_source (from an user perspective - I dont know about the inner
working) so light_clipping should be possible in POV.


>Yep.  I posted one a while back.  I think it may have been in 
>povray.programming.
I got it. That's already much better. Thank you very much.


Sincerely,

Philippe


Post a reply to this message

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