Advertisement



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

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

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)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
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



__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

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




LedZepp is offline   Reply With Quote
Old 07-17-2008, 11:18 AM   #2 (permalink)
zB Nightshift
Support Team
Premium Member
Section Staff
Super Zuner
 
Justananomaly's Avatar
 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 1,752
Reputation: 468
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.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"Anomalys exist, for without struggle there is no progress."
This post may or may not contain accurate information. This post is that
of my own opinion, knowledge, and reasoning, and does not nessessarily
reflect that of CroudGather or Zuneboards and their affiliates, period.



Justananomaly is offline   Reply With Quote
Old 07-17-2008, 11:30 AM   #3 (permalink)
ad majorem dei gloriam
Administrator
Ultimate Zuner
 
Deiparous's Avatar
 
Join Date: Jan 2007
Posts: 6,610
Reputation: 474
Send a message via AIM to Deiparous Send a message via MSN to Deiparous Send a message via Yahoo to Deiparous Send a message via Skype™ to Deiparous
Awards Showcase
Most Flamboyant Personality 
Total Awards: 1
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!
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



Deiparous is online now   Reply With Quote
Old 07-17-2008, 11:38 AM   #4 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
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
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

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
Reputation: 11
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
Jr. Member
 
DiNoGames's Avatar
 
Join Date: May 2008
Location: Bremen, germany
Posts: 454
Reputation: 246
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
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.







DiNoGames is offline   Reply With Quote
Old 07-17-2008, 01:13 PM   #7 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
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
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




LedZepp is offline   Reply With Quote
Old 07-17-2008, 01:17 PM   #8 (permalink)
zB Nightshift
Support Team
Premium Member
Section Staff
Super Zuner
 
Justananomaly's Avatar
 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 1,752
Reputation: 468
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.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"Anomalys exist, for without struggle there is no progress."
This post may or may not contain accurate information. This post is that
of my own opinion, knowledge, and reasoning, and does not nessessarily
reflect that of CroudGather or Zuneboards and their affiliates, period.



Justananomaly is offline   Reply With Quote
Old 07-17-2008, 01:18 PM   #9 (permalink)
zB Programmer
Jr. Member
 
DiNoGames's Avatar
 
Join Date: May 2008
Location: Bremen, germany
Posts: 454
Reputation: 246
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?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.







DiNoGames is offline   Reply With Quote
Old 07-17-2008, 01:34 PM   #10 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
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...
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




LedZepp is offline   Reply With Quote
Old 07-17-2008, 01:49 PM   #11 (permalink)
zB Nightshift
Support Team
Premium Member
Section Staff
Super Zuner
 
Justananomaly's Avatar
 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 1,752
Reputation: 468
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?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"Anomalys exist, for without struggle there is no progress."
This post may or may not contain accurate information. This post is that
of my own opinion, knowledge, and reasoning, and does not nessessarily
reflect that of CroudGather or Zuneboards and their affiliates, period.



Justananomaly is offline   Reply With Quote
Old 07-17-2008, 02:12 PM   #12 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

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

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




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

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

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




sk8er209 is offline   Reply With Quote
Old 07-17-2008, 02:42 PM   #14 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 187
Reputation: 16
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
Reputation: 65
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: 54
Reputation: 34
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:

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




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
Reputation: 60
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: 177
Reputation: 18
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.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





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: 54
Reputation: 34
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:

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




MavisPuford is offline   Reply With Quote
Old 11-20-2008, 06:24 PM   #20 (permalink)
Zuner
 
Join Date: Sep 2008
Location: G-Town
<