POV-Ray : Newsgroups : povray.general : Looking for a formula : Re: Looking for a formula Server Time
29 Jul 2024 10:29:13 EDT (-0400)
  Re: Looking for a formula  
From: H  Karsten
Date: 15 Feb 2013 15:55:01
Message: <web.511e9f8924d8606ea3bfeb720@news.povray.org>
That all very cool folks :)

Yesterday I did a cheat-version:

//###########################################
camera {
location  <0,0,-4>*5
direction 1.5*z
right     x*image_width/image_height
look_at   0
}

light_source{<-1,1,-1>*30 color rgb 1}
default{pigment{color rgb 1}}

#declare P1=vrotate(<2,3,0>,z*clock*360);
#declare P2=vrotate(<6,-4,0>,z*clock*360);
#declare P3=vrotate(<5,5,0>,z*clock*360);
#declare P4=vrotate(<-2,-6,0>,z*clock*360);

#declare T=16;
cylinder{P1,P2,1/T}
cylinder{P3,P4,1/T}
cylinder{x*-10,x*10,1/T}
cylinder{y*-10,y*10,1/T}

#macro Intersect(P1,P2,P3,P4)
#local TO=cylinder{P1,P2,1/999999}
trace(TO,P3,P4-P3)
#end

sphere{Intersect(P1,P2,P3,P4),1/8}
torus{.8,1/32 rotate x*90 translate Intersect(P1,P2,P3,P4)}
//###########################################


All right that doesn't count - but it works ;)
Holger


Post a reply to this message

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