Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Reply
 
LinkBack Thread Tools
Old 07-17-2008, 11:01 AM   #1 (permalink)
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default Farseer Physics Engine

I've recently been working on porting over the Farseer Physics Library over for the zune. It is a full working physics library. It features:
Code:
* General
   o Easy To Use!
   o Support for XNA (XBOX 360 and Windows)
   o Support for Silverlight (1.1 and above)
   o Support for Managed .Net Languages In General
* Collison
   o Concave and Convex Polygons Supported
   o Multiple Collision Geometries Per Body
   o Collision Categories For Complex Interaction Between Physics Objects
   o Collision Callback Mechanism
   o Multiple Broadphase Colliders: SelectiveSweep, SweepAndPrunde, BruteForce
   o Line-Line, Line-AABB, and Line-Geometry Collision Methods
* Dynamics
   o Joints
      + Revolute Joint (body to body or fixed to world)
      + Angle Joint (body to body or fixed to world)
      + Slider (Prismatic) Joint
      + Pin (Distance) Joint
   o Force Controllers
      + Linear Spring
      + Angular Spring
      + Fluid Drag and Buoyancy Controller.
      + Easy To Build Custom Force Controllers (Explosions, Steering Behaviors, etc.)
* Support and Debugging
   o Samples Framework With Samples Covering Most Major Engine Features. (XNA and Silverlight versions)
   o Debug Viewer To View All Major Physics Objects (part of samples framework)
   o User Manual (in progress)
I also ported over the examples so that developers can see how it is used and everything. It is very easy to use and I'm already making a game that uses it.
I talked with Jeff Weber(The creator of the engine) and he has uploaded the port onto codeplex with the other versions of it.
In the file you download the DLL is in the main folder so it can be easily accessed and to test out the demos you can just launch the .sln file and deploy to the zune.
NOTE: I commented out most of Demo6 because i couldnt get it to work properly for some odd reason.

Snag it here, It is the link at the very bottom.

Also I forgot to mention, In any of the demo's, if you hold the center button and either left or right it will apply a rotational force to the object you are controlling

I hope to see some games made with this!

Heres a video of the Demo's on the Zune:



All credit goes to Jeff Weber, The creator of the Engine
__________________
Game Request Template

Last edited by LedZepp; 07-17-2008 at 11:49 AM.




LedZepp is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 07-17-2008, 11:18 AM   #2 (permalink)
The Digital Phantom
Support Team
Retired Staff
Elite Zuner
 
Justananomaly's Avatar
 
Join Date: Nov 2007
Location: Sexyland with putis and taylor
Posts: 2,314
Justananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud of
Send a message via MSN to Justananomaly Send a message via Yahoo to Justananomaly Send a message via Skype™ to Justananomaly
Default

This is a big deal and I +rep you for taking the time to do this. I can't wait to see some of the goodness to come out of this.
__________________



Justananomaly is offline   Reply With Quote
Old 07-17-2008, 11:30 AM   #3 (permalink)
God
α+ω
Retired Staff
Professional Spammer
 
Join Date: Jan 2007
Location: Look up
Posts: 7,805
God has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud of
Send a message via AIM to God Send a message via MSN to God Send a message via Yahoo to God Send a message via Skype™ to God
Awards Showcase
Biggest Abuser of Noobs Trogdor's Peasant Favorite zB Extremity 
Total Awards: 3
Default

Wow, that engine is very damn impressive! It definitely doesn't like forces acting on alot of bodies. Even the demo game is fun!
__________________
Quote:
Originally Posted by sb
10:15 PM <Marshillboy> I almost never eat out

Nurta.net cures 29 known diseases



God is offline   Reply With Quote
Old 07-17-2008, 11:38 AM   #4 (permalink)
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default

Quote:
Originally Posted by Nurta View Post
Wow, that engine is very damn impressive! It definitely doesn't like forces acting on alot of bodies. Even the demo game is fun!
Yea I realized that if you have to many collision happening at once the fps drops really badly, you can overcome this a little by adding in less edges when creating circles(Look at Demo 4, 5, and 8).
This engine saves time spent on creating collisions, and weird shapes, and that sort of stuff.
I especially like the collision detection, It's really precise and you can customize what happens when a certain object collides with another

Edit: Also I forgot to mention, In any of the demo's, if you hold the center button and either left or right it will apply a rotational force to the object you are controlling
__________________
Game Request Template

Last edited by LedZepp; 07-17-2008 at 11:41 AM.




LedZepp is offline   Reply With Quote
Old 07-17-2008, 12:56 PM   #5 (permalink)
Zuner
 
yeloshu's Avatar
 
Join Date: Nov 2007
Posts: 56
yeloshu is on a distinguished road
Default

Oh wow, I love demo 8. I could play with that for hours.




yeloshu is offline   Reply With Quote
Old 07-17-2008, 01:02 PM   #6 (permalink)
zB Programmer
Member
 
DiNoGames's Avatar
 
Join Date: May 2008
Location: Bremen, germany
Posts: 582
DiNoGames is a name known to allDiNoGames is a name known to allDiNoGames is a name known to allDiNoGames is a name known to all
Send a message via Skype™ to DiNoGames
Default

LedZepp! You did what I really wanted to have.... wow! This is awesome! I used Farseer before... look here: This is what I started with Farseer before I got the Zune fever (Some of you might remember some of the graphics ):
Great!! I am already familiar with the engine and now I can use it on the Zune... Wow! +++++Rep
__________________

Valgard's Fate Blog







DiNoGames is offline   Reply With Quote
Old 07-17-2008, 01:13 PM   #7 (permalink)
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default

Thanks guys, That game looks excellent Dirk.

Im glad you know a little about Farseer, Im wondering if you know the answer to this question then.
I asked it on the Codeplex discussions page but i havent gotten a response for it yet.

I was trying to use the FluidDragController just to test it out and mess around with it a bit. Im able to deploy it with no errors and everything seems fine, except that it doesnt show up on the screen anywhere, I thought that maybe the texture for it is just not getting drawn, but my object doesnt even get affected where the "fluid" should be. Heres my code for it, maybe you can see something wrong.
Code:
recBody = BodyFactory.Instance.CreateRectangleBody(physicsSimulator, 100, 100, 1);
rectangleGeom = GeomFactory.Instance.CreateRectangleGeom(physicsSimulator, recBody, 100, 100);
waterAABB = new AABB(new Vector2(150, 240), new Vector2(50, 140));
waterContainer = new AABBFluidContainer(waterAABB);
fluidDragController = new FluidDragController();
fluidDragController.AddGeom(rectangleGeom);
fluidDragController.Initialize(waterContainer, .5f, 3.3f, 1, new Vector2(0, 100)); // Demo's Gravity is (0,200)
physicsSimulator.ControllerList.Add(fluidDragController);
Actually, maybe the problem is the last line. I think i read somewhere that the ControllerList is supposed to be read-only, and instead im adding to it. That might be the problem, I shall go investigate. lol
__________________
Game Request Template




LedZepp is offline   Reply With Quote
Old 07-17-2008, 01:17 PM   #8 (permalink)
The Digital Phantom
Support Team
Retired Staff
Elite Zuner
 
Justananomaly's Avatar
 
Join Date: Nov 2007
Location: Sexyland with putis and taylor
Posts: 2,314
Justananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud of
Send a message via MSN to Justananomaly Send a message via Yahoo to Justananomaly Send a message via Skype™ to Justananomaly
Default

Maybe your gravity is set too low for the fluid to not wtfdisappear? Not sure, its been awhile since I've played with Farseer.
__________________



Justananomaly is offline   Reply With Quote
Old 07-17-2008, 01:18 PM   #9 (permalink)
zB Programmer
Member
 
DiNoGames's Avatar
 
Join Date: May 2008
Location: Bremen, germany
Posts: 582
DiNoGames is a name known to allDiNoGames is a name known to allDiNoGames is a name known to allDiNoGames is a name known to all
Send a message via Skype™ to DiNoGames
Default

I never used the fluidcontrollers.... but your code looks ok so far... I don't know if the last line is the problem though. Did you try to find a similar problem on the discussion page of the codeplex site?
__________________

Valgard's Fate Blog







DiNoGames is offline   Reply With Quote
Old 07-17-2008, 01:34 PM   #10 (permalink)
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default

Adding in a texture for it helped lol, I found it hiding in the Top Left corner.
Unfortunately its not acting like water, just as a rectangle that collides with everything, hmm...
__________________
Game Request Template




LedZepp is offline   Reply With Quote
Old 07-17-2008, 01:49 PM   #11 (permalink)
The Digital Phantom
Support Team
Retired Staff
Elite Zuner
 
Justananomaly's Avatar
 
Join Date: Nov 2007
Location: Sexyland with putis and taylor
Posts: 2,314
Justananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud ofJustananomaly has much to be proud of
Send a message via MSN to Justananomaly Send a message via Yahoo to Justananomaly Send a message via Skype™ to Justananomaly
Default

Oh and LedZepp is this the "Secret Project" you stated you were busy working on?
__________________



Justananomaly is offline   Reply With Quote
Old 07-17-2008, 02:12 PM   #12 (permalink)
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default

1 of them, the other one is the one that uses this engine
__________________
Game Request Template




LedZepp is offline   Reply With Quote
Old 07-17-2008, 02:25 PM   #13 (permalink)
Experienced Zuner
 
Join Date: Jun 2008
Posts: 141
sk8er209 is on a distinguished road
Default

demos were fun can't wait too see wat else you have
demo 7 is like a scorpian or some thing lol
__________________




sk8er209 is offline   Reply With Quote
Old 07-17-2008, 02:42 PM   #14 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 187
zunebro is on a distinguished road
Default

+rep for this one now maybe someone can create pool.
__________________
Jesus is Lord

Celebrity wallpapers coming to a zune near you!



zunebro is offline   Reply With Quote
Old 07-17-2008, 02:48 PM   #15 (permalink)
Zune Guardian
 
birdman's Avatar
 
Join Date: Jan 2008
Location: earth
Posts: 758
birdman will become famous soon enough
Default

Quote:
Originally Posted by zunebro View Post
+rep for this one now maybe someone can create pool.
damn exactly what i was going to say.
__________________
I don't like you.




birdman is offline   Reply With Quote
Old 07-17-2008, 03:49 PM   #16 (permalink)
Zuner
 
MavisPuford's Avatar
 
Join Date: Jun 2008
Location: USA
Posts: 65
MavisPuford is on a distinguished road
Default

+rep I have been waiting for a physics engine to mess with! I've got some ideas already..

Good work LedZepp! You rock!
__________________
Here's my deviantART website:
http://puford.deviantart.com




MavisPuford is offline   Reply With Quote
Old 07-17-2008, 06:57 PM   #17 (permalink)
Jr. Member
 
SimReality's Avatar
 
Join Date: May 2008
Posts: 410
SimReality will become famous soon enough
Default

One thing you might try (if you haven't already) is to turn off the broad phase collision detection. I have it from a pretty reliable source that that will increase your performance. I haven't tried it personally though, so don't blame me if they were wrong.



SimReality is offline   Reply With Quote
Old 07-21-2008, 06:25 PM   #18 (permalink)
Experienced Zuner
 
Epoc's Avatar
 
Join Date: Sep 2007
Location: Vermont
Posts: 242
Epoc is on a distinguished road
Default

good job ledzepp. maybe when im done my first game(a port of the xna 2.0 tutorial for xbox 360) and zuno, i'll play around with it. +rep
__________________
\nn/===IRON MAIDEN RULES===\nn/

Xbox live/Zune= Epocilyps. Invites are fine. need people with zunes on my friends list.





Epoc is offline   Reply With Quote
Old 11-17-2008, 01:36 PM   #19 (permalink)
Zuner
 
MavisPuford's Avatar
 
Join Date: Jun 2008
Location: USA
Posts: 65
MavisPuford is on a distinguished road
Default

There is a new version (2.0) of the Farseer Physics Engine just so you know. It would be great to have an update for the Zune version. I don't know what changes need to be made for it to work, but I'd love to play around with the engine and maybe even make a game with it.

Farseer Physics Engine - Release: Farseer Physics Engine 2.0
__________________
Here's my deviantART website:
http://puford.deviantart.com




MavisPuford is offline   Reply With Quote
Old 11-20-2008, 06:24 PM   #20 (permalink)
Jr. Member
 
ConnerWoods's Avatar
 
Join Date: Sep 2008
Location: G-Town, California
Posts: 309
ConnerWoods is on a distinguished road
Send a message via MSN to ConnerWoods Send a message via Yahoo to ConnerWoods Send a message via Skype™ to ConnerWoods
Default

it would be awesome if someone could make a version of this game for xna final so that i could try it out. thx in advance
__________________
Add me on the Zune Social. Search for PickleAndCheese. Also, my Zune games/apps Archive!
-Zune Social
-Zune Boards
-Zunegg
-Zunited











ConnerWoods is offline   Reply With Quote
Reply

Bookmarks

Thread Tools