JonoPorter
Enlightened
Offline
Gender:
Posts: 656
Don't mess with the US.
|
Remember about a year ago I said I would be writing a game? Well that was not idle talk! Even though its no where complete it has come to a point where I can make screenshots. So far it’s basically a 2D physics engine with a simple GUI interface.
Here is the first screen shot is of a large number of objects orbiting a invisible gravity well. (Notice the spiral taking shape?)
The second screenshot is of a ship that I can control running though a large number of boxes.
The last screenshot is of allot of boxes organized into 3 groups that are linked together via a spring joints. And my ship is firing triangle shaped projectiles at them.
The problem is I have come to the point where my own knowledge about physics is falling short of what I need to do. Here I a few things I need to know about: Fixed joints. (Basically 2 objects welded together.) Pin joints. (Basically a Door and a Frame.) Resting forces. (So objects won’t fall though each other.) Anti Tunneling Algorithm (So object won’t jump over each other in one time step if there velocities are too high.)
I’m working on the “Anti Tunneling Algorithm” right now and think I have it figured out, but all my previous attempts have failed.
|
|
|
Logged
|
|
|
|
JonoPorter
Enlightened
Offline
Gender:
Posts: 656
Don't mess with the US.
|
I’ve implemented a new Collision Detection algorithm which has solved my needs for the Joints and Resting Forces. I tested Resting Forces by making a small planetoid with gravity and having objects fall on it. I also tested the joints by making my friends name from rigid bodies and then had the object I can control shoot objects at it. I then sent screenshots of this to my friend for his birthday. Im still working on the Anti Tunneling Algorithm.
|
|
|
Logged
|
|
|
|
Dean
Guest
|
Woah! Very cool!
What language is it written in? How many lines?
|
|
|
Logged
|
|
|
|
|
Dean
Guest
|
I never saw your original posts, are you planning on developing this into a new SC game, or at least a melee? Seems like a damn good engine for the job....
Also, I saw on the web yesterday that they are now making physics accellerator cards, in a similar fashon to 3D accelerator cards - eventually you will plug then into your PCI or PCIe slots, and then they will handle the physics calucations on supported games. Cool.
- Dean
|
|
|
Logged
|
|
|
|
|
Dean
Guest
|
Sounds good!
I mention the physics cards only as a point of interest. They WILL be only for 3D, and won't be much use in a 2D environment.
I'm suprised noone else's interested in this. Don't forget to post your engine on PlanetSourceCode.com when it's done - there's thousands of people ready to praise your hard work.
- Dean
|
|
|
Logged
|
|
|
|
GeomanNL
*Many bubbles*
Offline
Gender:
Posts: 167
I love YaBB 1G - SP1!
|
I'm working on a similar project... sort of. Except it's based on timewarp, and I didn't start from scratch.
|
|
|
Logged
|
|
|
|
|
JonoPorter
Enlightened
Offline
Gender:
Posts: 656
Don't mess with the US.
|
Ive got some more Screenshots fo you!
This one is of the pin joint system. These are a bunch of bodies joined together to make the shape of humans.
This one is of the resting forces in action. its of a bunch of bodies falling onto a planetoid that has gravity.
Im still working on the "Anti Tunneling Algorithm."
|
|
|
Logged
|
|
|
|
Dean
Guest
|
That's too good - you're gonna have to SourceForge it when it's done. I look forward to seeing the final game....
- Dean
|
|
|
Logged
|
|
|
|
|
Dean
Guest
|
Just go to sourceforge.net, then create an account and a new project. It's easy, and you'll get a LOT of exposure - and you'll be joining over 100,000 other open-source projects.
- Dean
|
|
|
Logged
|
|
|
|
JonoPorter
Enlightened
Offline
Gender:
Posts: 656
Don't mess with the US.
|
The Code isn’t anywhere close to being ready for public scrutiny, but that is slowly changing.
I plan for it to be very friendly to people who decide to use it, but right now its not really useable.
The hardest part of this project so far is that no one writes about 2D physics they only write about 3D physics. I don’t know how many times I’ve spent hours trying to understand equations and code that ended up being totally unneeded in a 2D engine. So if anyone asks if this is going to end up being a 3D engine, the answer is an unwavering NO.
|
|
|
Logged
|
|
|
|
nathan
Guest
|
awesome im still learnin to program and to see a game like this bein made from scratch thats cool keep up the good work were rootin for u
|
|
|
Logged
|
|
|
|