Lugaru physics engine
Lugaru physics engine
I am current reading a book called "Game physics" by David H eberly, and the book is quite heavy on math and physics.
Things like inertia tensor all sort of integrals and algebra.
Since david is still a school student, I wonder how did he create the physics engine? did he learn all the undergraduate math and physics? or did he use some cookbooks or "hacks"?
Just wondering.
Things like inertia tensor all sort of integrals and algebra.
Since david is still a school student, I wonder how did he create the physics engine? did he learn all the undergraduate math and physics? or did he use some cookbooks or "hacks"?
Just wondering.
-
- Wooter
- Posts: 1215
- Joined: Sun Jan 25, 2004 5:56 pm
- Location: Milky Way
- Contact:
The physics in Lugaru are based on simple particle-stick constraints, which are honestly much easier to use (and more robust) than object-level dynamics based on inertia tensors. It is very similar to the physics used in the original hitman games (which they wrote a paper about. It is in a sense the same underlying idea behind Alec's physics engine... break the whole model down into small parts, and then simulate their (relatively) simple constraints. This results in a convincing and stable simulation for the whole complex object.
What?rudel_ic wrote:FastLSM isn't exactly rocket science. Besides, wasn't David involved in research?
Wow, this paper is a lot shorter then the 700 pages book I am reading.David wrote:The physics in Lugaru are based on simple particle-stick constraints, which are honestly much easier to use (and more robust) than object-level dynamics based on inertia tensors. It is very similar to the physics used in the original hitman games (which they wrote a paper about. It is in a sense the same underlying idea behind Alec's physics engine... break the whole model down into small parts, and then simulate their (relatively) simple constraints. This results in a convincing and stable simulation for the whole complex object.
What?rudel_ic wrote:FastLSM isn't exactly rocket science. Besides, wasn't David involved in research?
But of course it is no subtitude for a good theory base.
Thanks, I think I will start implement a physics engine using this article and read the book as well so I will also be able to improove the engine based on theory.
-
- official Wolfire heckler
- Posts: 2193
- Joined: Sun Aug 28, 2005 11:19 pm
- Location: Hamburg City
- Contact:
Well, he thanks you in his paper here. I thought he did that not just for your pizza deliveryDavid wrote:What?rudel_ic wrote:FastLSM isn't exactly rocket science. Besides, wasn't David involved in research?
-
- Gramps
- Posts: 6942
- Joined: Tue Sep 27, 2005 11:59 am
Those physics look so nice, and when he showed that baby, I thought they were going to cut him.
The shadows are great, usually designers have to cheat and put in fake shadows that look like the models, but these are perfect. Even when the models switch from mesh to cubic, the shadows follow them perfectly and when the models glitch out with because of linear and quadratic physics, the shadows do the same thing, it's spot on.
This technology is just so awesome, it's fast, you can break it, and it looks amazing. How can so few people, design something so great?
The shadows are great, usually designers have to cheat and put in fake shadows that look like the models, but these are perfect. Even when the models switch from mesh to cubic, the shadows follow them perfectly and when the models glitch out with because of linear and quadratic physics, the shadows do the same thing, it's spot on.
This technology is just so awesome, it's fast, you can break it, and it looks amazing. How can so few people, design something so great?
Last edited by Zantalos on Sun May 20, 2007 12:05 pm, edited 1 time in total.
-
- official Wolfire heckler
- Posts: 2193
- Joined: Sun Aug 28, 2005 11:19 pm
- Location: Hamburg City
- Contact:
Clone an adjacent face that is preferably orthogonal to the shearing direction and stretch it over the gap, I say.David wrote:I am still working on getting the fractured objects to look better by generating 'cap' faces to cover up gaps created in the surface.
Edit: May only work for small gaps, though. Split the gap-face and shrink the halves when you really want to rip them apart..?
Whoops, you're probably only using triangles, eh? Hmm.
-
- official Wolfire heckler
- Posts: 2193
- Joined: Sun Aug 28, 2005 11:19 pm
- Location: Hamburg City
- Contact:
How would we know? We can read the algorithms for FastLSM, but not for this realmatter thing.
But as I see it, FastLSM is at least more generic than realmatter.
Also, ask David He seems to be pretty involved in this.
In other news, I thought about the cap faces problem, and as it turns out, the problem can be reduced to 4 cases with triangles. Unfortunately, you need an even number of triangles at the gap edges for my approach.
But as I see it, FastLSM is at least more generic than realmatter.
Also, ask David He seems to be pretty involved in this.
In other news, I thought about the cap faces problem, and as it turns out, the problem can be reduced to 4 cases with triangles. Unfortunately, you need an even number of triangles at the gap edges for my approach.
Here is Alec Rivers' site with his paper describing his fast lattice shape matching algorithm. FastLSM is the fundamental algorithm behind his physics engine, and Realmatter is his implementation of it. I don't think there are any fractals involved... are you thinking of fracture? The LSM method is unusual in that it still works if you split cells, so at high enough resolution it can support any kind of cut or stress fracture.Fastlsm is different from realmatter's fractal physics? Is it more optimized to run better?