POV-Ray : Newsgroups : povray.general : animating complex scenes : Re: animating complex scenes Server Time
2 Aug 2024 22:13:55 EDT (-0400)
  Re: animating complex scenes  
From: Alain
Date: 28 Jun 2004 10:30:14
Message: <40e02b76$1@news.povray.org>
scott nous apporta ses lumieres ainsi en ce 28/06/2004 07:12... :

>Josh wrote:
>  
>
>>>I find the fun part is to make the code run faster by using clever
>>>tricks...
>>>
>>>      
>>>
>>I started the basics this weekend.  Ive got a particles collection
>>sorted and scripting engine  so that I can script animations.  So far
>>all I've produced is one sphere dropping under force of gravity.  Not
>>very intresting to watch.  Thinking in terms of collision checking,
>>I set a "Collision Accuray" parameter  into the scripting language.
>>If I set this to 5, the system will make 5 collision checks as its
>>applies the motion vectors to all particles in the scene in five
>>segments.  I'm thinking that this is getting really "processor heavy".
>>    
>>
>
>What do you mean "in five segments"?  Do you mean 5 segments in space or 5
>in time?
>
>
>  
>
Looks like 5 test between 2 positions, both in time and space. You take 
start position and end position, then you interpolate 5 steps to see if 
there is any colision in that interval. I think that it's possible to 
find that in one step, but I can't replace the mathematics to do that. I 
think that you need some integral or diferential function.

Alain


Post a reply to this message

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