|
|
On 16 Nov 2001 21:40:22 -0500, Ron Parker wrote:
>> (Though I still
>> want to know how to do reflection based on distance to
>> object being reflected.)
>
> I posted some code to do this the last time it came up, though I'm not
> sure it was in this group. Be warned, though, that the effect is not
> in any way related to any real physical process.
Ah, here it is. It was even in response to a post by you. Did you try
what I suggested?
Newsgroups: povray.general
From: Ron Parker <ron### [at] povrayorg>
Subject: Re: Reflections
Message-ID: <slr### [at] fwicom>
Date: 22 Oct 2001 13:29:04 -0400
Xref: news.povray.org povray.general:32823
http://news.povray.org/povray.general/19478/126317/#126317
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}
Post a reply to this message
|
|