POV-Ray : Newsgroups : povray.binaries.animations : n-body system : Re: n-body system Server Time
2 Nov 2024 09:17:40 EDT (-0400)
  Re: n-body system  
From: Zeger Knaepen
Date: 11 Mar 2002 14:36:49
Message: <3c8d0751$1@news.povray.org>
> I appreciate it could be difficult to do but it would be a good challenge.
>
> You do not need to compare every particle with every other particle as most
> will be outside the gravitational field.
that's the problem: the gravitational field is infinitely large, although it
gets quite small after a distance.

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.