POV-Ray : Newsgroups : povray.binaries.animations : n-body system : Re: n-body system Server Time
2 Nov 2024 09:20:22 EDT (-0400)
  Re: n-body system  
From: Zeger Knaepen
Date: 11 Mar 2002 12:38:22
Message: <3c8ceb8e$1@news.povray.org>
> If so I think it would be cool if you got rid of the ground plane then
> started with a few thousand randomly scattered particles. When 2 particles
> collide they join together to form 1 particle with the combined size/mass of
> the original 2.
>
> I just wonder whether you would end up with 1 big particle or whether they
> would settle into a stable universe/solar system.
>
> Just wondering :)
I did something like this once using Quickbasic :) It was *very* difficult to
find values to make a stable system.  Either the particles just end up following
their own path, or they collide all, but they never orbit very long.

BTW: a few thousand particles is a *lot* for a system like this.  You need to
check every particle against every other particle!

cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK http://www.povplace.be.tf


Post a reply to this message

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