We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
some physics (Read 4306 times)
some physics
Oct 31st, 2005, 11:29pm
 
here's a simple particle physics library i wrote. no collisions but stable runge-kutta integrator and fast implementation.

http://www.cs.princeton.edu/~traer/physics

comments and bugs appreciated...
Re: some physics
Reply #1 - Nov 1st, 2005, 5:47am
 
It's added to the Libraries page. Thank you for the contribution.

Casey

Re: some physics
Reply #2 - Nov 1st, 2005, 9:42am
 
That's damn good!

Fantastic contribution.
Re: some physics
Reply #3 - Nov 1st, 2005, 10:57am
 
Thats fantastic! Thanks a lot. The tendrils example looks really sweet if you make loads of little ones.

Re: some physics
Reply #4 - Nov 18th, 2005, 12:47am
 
Hey Traer
This is fantastic :]

Can you please expose the code for your implementation of Runge-Kutta? I'm very interested in how you wrote it.

Thx!
Re: some physics
Reply #5 - Nov 30th, 2005, 4:23pm
 
You should have a look at these:

Pixar Particle Physics Notes from SIGGRAPH 2001:
http://www.pixar.com/companyinfo/research/pbm2001/notesc.pdf

Wikipedia article on Runge-Kutta solver:
http://en.wikipedia.org/wiki/Runge_kutta

i basically just stuck those together.
problem with library
Reply #6 - Feb 6th, 2007, 2:12am
 
I am using 0123Beta Processing and this library is pretty buggy. Any chance the author has an update?

thx, matthew

p.s. I get error mesages like:
C:/DOCUME~1/mj/LOCALS~1/Temp/build59836.tmp/Temporary_1979_2829.java:71:17:71:26
: Semantic Error: No accessible field named "LINE_STRIP" was found in type "Temporary_1979_2829".
Re: some physics
Reply #7 - Feb 6th, 2007, 11:02am
 
If the bug was in traer.physics, you would see the error coming from the library.

A big clue that tipped me off that it may be you at fault instead of traer is that traer.physics uses no drawing functions, LINE_STRIP is a deprecated part of the Processing drawing api.

http://processing.org/download/revisions.txt

Perhaps you are using an old example on the traer.physics page?
Re: some physics
Reply #8 - Feb 6th, 2007, 3:46pm
 
thanks for the response... on looking closer, the examples on the traer physics web page have syntax problems now that processing has undergone a revision. for example, beginshape(LINE_STRIP); is now beginshape();and framerate(); is now frameRate();

mj-

Re: some physics
Reply #9 - Sep 11th, 2007, 7:13am
 
Is this open source? I want to extend it for some specific simulation.

Thanks
-Pankaj
Re: some physics
Reply #10 - Nov 9th, 2007, 11:43am
 
Hi,

the library is really nice indeed. I happen to have a problem that looks like a bug. (not sure maybe my fault Wink)

I wrote a quick and dirty import from graphviz .dot language

www.graphviz.org

and wanted to display the graph using the library. It works fine as long as the graph is a tree. if I add a single link that creates a cycle, the positions I get are NaN.

I suppose the equation system is stiff and the solver doesn't like it, but still diminishing the step size did not help at all.

you can have a look at the example there

http://luj.ex-haro.net/debug/example/physics/

and the bug there

http://luj.ex-haro.net/debug/example/bug/

thanks for any help.

lluj!
Page Index Toggle Pages: 1