POV-Ray : Newsgroups : povray.advanced-users : A Simple Lamp Shade ? : Re: A Simple Lamp Shade ? Server Time
30 Jul 2024 14:24:57 EDT (-0400)
  Re: A Simple Lamp Shade ?  
From: Julius Klatte
Date: 1 May 1999 10:31:34
Message: <372b0236.0@news.povray.org>
>Revloving around a
>conical circle is not as simple as it sounds and I would
appreciate any
>tips you may have.


Isn't it possible to define a somewhat rotated 'slab of
shade' and then translating/rotating it around the y-axis?
Something like this:

#declare Slab=box { <0,0,-0.1> , <0.01,1,0.1> rotate
<0,0,20> translate <2,0,0>  texture {...} }

#declare Precision=1;
#declare T=0;
#declare SinCount=0;
#while (T<360)
object { Slab translate <sin(SinCount),0,0> rotate y*T}
#declare SinCount=Sincount+pi/(8*Precision);
#declare T=T+1/Precision;
#end

Haven't tested the code, but the idea should work...

Julius


Post a reply to this message

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