Suggestion, actually a request of Jeff..

On the old forums you mentioned a bit of source code you were workign on for “collision avoidance” for java3D. Were you ever able to complete and if so, do you have a url for it. (more than happy to have uncommented code) :slight_smile:

M

-and thanks a ton!

very good links.
very funny applets. If cars were driven by computer, and using this algorithm, i would have a heart attack at each crossing. :slight_smile:

I have basic peice of collision detection code up and running. It does
hirearchical bounding spheres down to the tree nodes and then does triangle v. triangle and returns the colision points,

It uses Java3D geometry, and doesn’t yet undertsand all possible forms of Java3D geometry, but that is well encapsulated and should be easily modified or expanded.

Would it be useful for me to post it? I don’t think it comented much yet :frowning: Also, would you gusy want the whoel thing, test program and all, or just key bits? (Diference is if you want all of it I need to find a palce to post a zip file. If you justw anted the trickiest bits, I could probably post those in the Shared Code section.)

JK

Verlet is one of the kinds of integration for physics, thats about as much as I know off the top of my head though i have the Oriely book on my shelf.

I used the Jakobsen integrator (Hitman Code:57) in my project which is a soft-body iterative approximator. I got stuck actually at the point where I was trying to extract the implicit constraints from the
“rigid” Java3D object. Extracting edges and points from java3D’s structures is a real bear.

I have a non-working last iteration of my test prog for that, where I drop a sphere and when it hist the ground plane, it shatters due to incorrect constraints :confused:

Yes would love to see some code. :slight_smile:

My collision detection is leaving a lot to be desired.

Would like the whole thing. You can email it if its too large to post. worldbuilder@comcast.net

THanks,

M

Okay,

let me see about zipping it up and putting it online somewhere…

JK

[quote]Okay,

let me see about zipping it up and putting it online somewhere…

JK
[/quote]
So i am stil ltrying to find this code.>:(

I can’t believe I didn’t archive it somewhere.

I’m going to check my main projects drive at home tonight.

Its gotta be here somwhere… I can’t imagine I’d let it vanish.

Update:

I’m on a huint for this damn code. I will be as much or more
disappointed as any one else if I actually lost this :frowning: :frowning: :frowning:

Unfrotunately it was written at time when I was in transition between buildings and wokring ona borrowed machine. But I cannot believe that, after all the work I put into it, i just let it get wiped.

More when i know more.

JK

thanks for you efforts, Jeff!

Don’t forget that there’s a pile of collision avoidance code in the j3d.org repository too. Go to http://code.j3d.org/ and look for org.j3d.ui package. You’ll need CVS to fetch it.

Yeah I have that and didnt want to use so much code. I am only going to have cubes in my universe.(strange as it sounds)

thanks though!!

M