|
![](/i/fill.gif) |
Among other things, ABX wrote:
> While my version is not short enough to be a sig, I had fun making it as:
>
> #macro S(I,G)#macro a(_ J E L B Y)_,y-J,z-E,L-x,B-y,Y#end,max(x-a(max(I.x
> ,G.x)max(I.y,G.y)max(I.z,G.z)min(I.x,G.x)min(I.y,G.y)min(I.z,G.z))-z)#end
> light_source{y 1}light_source{9+7*x 1}isosurface{function{min(max(y*5+z*4
> -x*4S(x-.1.1-z+1))S(-.1+t.1+x)S(z-y-.1.1+z)S(z-.1.1+t))}contained_by{box{
> -2 2}}pigment{rgb<.8.2>+z}}camera{orthographic location-z*4+9/4look_at(1-
> y)/4angle 30}
Woot! That's insane! :) Thanks it's a nice version.
--
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
This is a new - but similar - one, I'd like it to be just 3 lines, is it
possible? :)
light_source#macro Z(Y)difference{X(.2)X(x)X(y)X(z)plane{-Y*y,0}rotate
Y*(3*y+z)pigment{rgb<1,.8.2>}no_shadow}#end{99*(1-y)1}light_source{9*x
1#macro X(T)box{-T-z/4-1T+z/4+1}#end}camera{orthographic look_at 0angle
30location x*10}Z(15)Z(-15)
--
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Wed, 05 Mar 2003 22:09:09 +0100, Jellby <jel### [at] M-yahoo com> wrote:
> This is a new - but similar - one, I'd like it to be just 3 lines, is it
> possible? :)
light_source{99#macro Z(Y)difference#macro X(T)box{-T-z/4-1T+z/4+1}#end{X(.2
)X(x)X(y)X(z)plane{-Y*y.0}rotate Y*(3*y+z)pigment{rgb<on.8.2>}no_shadow}#end
*(1-y)1}light_source{x*9on}camera{angle.3location x*1e3look_at 0}Z(15)Z(-15)
ABX
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thank you very much, I've modified it slightly to:
camera#macro Z(Y)difference#macro X(T)box{-T-z/4-1T+z/4+1}#end{X(.2)X(x)X(y)
X(z)plane{-Y*y.0}rotate(y+z/3)*Y*9pigment{rgb<on.8.2>}no_shadow}#end{look_at
0location+x*1e3angle.3}Z(-5)light_source{x*9on}Z(5)light_source{99*(1-y)1}
It's just a shuffle and a slight macro change.
--
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby
Post a reply to this message
|
![](/i/fill.gif) |