POV-Ray : Newsgroups : povray.binaries.images : N-Body Simulation : Re: N-Body Simulation Server Time
1 Aug 2024 12:27:16 EDT (-0400)
  Re: N-Body Simulation  
From: triple r
Date: 7 Aug 2008 22:30:00
Message: <web.489bae9927c5a961ca4884450@news.povray.org>
"DaSilvor" <das### [at] rariuscouk> wrote:
> I dont suppose there is any chance you might post the code for this, please?


No problem.  Just wasn't sure it was that interesting, but here it is, complete
with RK 2, 4, and 8 (ouch!) and plenty of octree visualization with OpenGL.

It should compile with very minimal effort on Mac OS X or Unix/Linux.  (On Mac
OS X you need the funny flag that's commented out in the Makefile for some
bugfix.)  Windows?  It should work in theory, but I'm not sure how to make it
compile with GLUT.  If it doesn't work you can comment out the OpenGL stuff in
main.c and copy the integration from gldisplay.c over to main.c.

No warranty of course, but I hope someone can get something out of it.  It's all
there, just DON'T BE AFRAID TO READ THE SOURCE AND THE README FILES!

http://rsreusser.googlepages.com/barnes_hut.tar.gz

 - Ricky


Post a reply to this message

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