POV-Ray : Newsgroups : povray.binaries.animations : Wild Hose with Collision Detection : Re: Wild Hose with Collision Detection Server Time
20 Jul 2024 09:19:35 EDT (-0400)
  Re: Wild Hose with Collision Detection  
From: Jan Walzer
Date: 18 Feb 2001 18:13:13
Message: <3a905709@news.povray.org>
but the particles itself don't have collision-det. between them, have they ?

--
plane{y,0 pigment{color rgb 1}}camera{location<1,5,-2>look_at
0}light_source{10 color 1}#macro m(a,b,c,n,i)#if(i=0)cylinder{a,b,c/3
pigment{color rgb z}}#else #local f=vlength(a-b)/32;#local d=(b-a)/8;#local
e=(vcross(d,n)/vlength(vcross(d,n)))*f*4;m(a-e,a+2*d+e,f,n,i-1)m(a+e,a+2*d-e
,f,n,i-1)m(a+3*d-e,a+3*d+e,f,n,i-1)m(a+3*d-e,a+5*d-e,f,n,i-1)
m(a+6*d-e,a+6*d+e,f,n,i-1)m(a+8*d-e,a+8*d+e,f,n,i-1)#end #end
m(-4*x,2*x,1/8,y,4) // Jan Walzer


Post a reply to this message

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