POV-Ray : Newsgroups : povray.binaries.animations : Re: Snake! WIP : Re: Snake! WIP Server Time
19 Jul 2024 08:16:33 EDT (-0400)
  Re: Snake! WIP  
From: Dave Vogt
Date: 21 Sep 2003 14:50:12
Message: <1f8141-b37.ln1@control-alt-del.ch>
Steve Shelby wrote:

> Dave,
> That is pretty cool, although I can't really say I understand
> how it works.

Let me try to explain this. My idea was to have a spline which has
a "static" part (0..2) and a dynamic part. The sine wave stands
still relative to the ground, and only the point where both parts
meet is moved, as well as the three first points. The while loop
"accesses" the sine at different positions each time, relative to
clock.


> I tried substituting the sphere with other shapes,
> and it only worked with the sphere. 

I think this is due to the fact that the objects don't get
re-oriented. I'm too lazy to look up this now.


> [...] 
> When I worked this out, the only way I could find to accomplish 
> that was with Chris Colefax's Spline Macro. 

You can easily put the values into an array and use this (I don't
know well Chris' macro, but it seems to be possible to get my
values in there.


> If your method will do
> that, and I can get a full understanding of how it works, I will
> give it a try. Steve

Try it ;) 


HTH & HAND
Dave


P.S: I know i'm not good at explaining things.. hope you got the
point.


-- 
Dave "tPassive" Vogt| ruby -e "n=gets.to_i;a=(2..n).to_a;a.each{
Linux  user  #225040| |x|puts x;(x*2).step(n,x){|j|a.delete j}}"
____________________|_____________________________             |
PGP Key: http://control-alt-del.ch/public_key.asc \____________/


Post a reply to this message

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