POV-Ray : Newsgroups : povray.general : Memory question - splines : Re: Memory question - splines Server Time
7 Aug 2024 03:17:18 EDT (-0400)
  Re: Memory question - splines  
From: Tim Nikias
Date: 2 Dec 2001 21:01:22
Message: <3C0ADC83.461DFC5F@gmx.de>
Well, just an idea I had:

What if you just collect the points where the particles rebounce, and save
the time it would
take to hit the next rebounce-position?

If you know the rebounce position, you can calculate the surface-normal
there, and based on
the particles initial settings of speed and direction, you can recalculate
the new direction and speed
as well.

Hm, but then, you'd have a lot of calculation to do near the end of an
animation...

How about saving direction, speed, rebounce-position and time until next
rebounce? You can
calculate the path pretty easily from there on, I guess.

Hope you get the idea...

Tim


Post a reply to this message

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