Jump to content


Photo

Gmnewton 2.0


  • Please log in to reply
384 replies to this topic

#1 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 15 May 2008 - 09:47 PM


GMNewton 2.0
A free wrapper for Newton Game Dynamics
Posted Image


What is it?
GMNewton is a wrapper. It is a dll that allows GM users access to the powerful and precise physics engine, Newton Game Dynamics
It releases you to focus less on the physics of your 3d world and more on the game play and design.


Preview the Powa on Youtube! Waterslide simulator Domino Demo 1.0


Where can I get it?
I have it hosted in the following locations:



*Host-a.net: v2.0 v1.0 v0.04 v0.03

download includes everything you need to add physics to your own game


What are some of the key features?
GMNewton already supports these and more!
*Multiple world support
*Creation of dynamic and static bodies
*Convex hull collision generated from model
*Collision tree support for complex concave environments
*Materials interface to define how bodies will interact
*Collision detection
*Customize tradeoff between speed and precision
*Freezing/Unfreezing bodies including auto-freeze feature
*Auto-updating bodies for faster simulation speeds
*Ball and socket joints
*Hinge joints
*Uses Newton 2
*Fixed bugs
*Ultimate 3D compatibility mode
*GMOgre3D compatibility mode
*Breakable hinge joints with limits
*Buoyancy

[Known bugs]
--


What else should I know?
Works in any version of Game Maker that natively supports 3d - comes with gm6 for greater compatability
Coded in C++ using Code::Blocks
This is a wrapper. I did not create Newton Game Dynamics, but rather an interpreter so GM can communicate with it.
The wrapper communicates with NGD beta 2
I am making this in my free time. This is not consistent, so please don\'t expect release dates to be :P
Uses Gmaker C/c++ Library V. 2 by X-tra fear and score_under for auto-updating
GMNewton is a work in progress, but is easily developed enough to make a decent game with.
I am motivated by response! Please let me know what you think by commenting here and letting me know if you use it in a game!


Support GMNewton!
If you would like to support GMNewton, copy and paste the following into your sig:
[url="http://gmc.yoyogames.com/index.php?showtopic=375858&st=0\"][img]http://i561.photobucket.com/albums/ss54/samisaham/gmnewton.jpg[/img][/url]


What are some games that use GMNewton?

Note: Some of these games use old versions of GMNewton. Please use the link above to add the latest version GMNewton to your own game!

Waterslide Demo
Posted Image
[yoyogames] [gmc]
GMNewton 1.0 physics demonstration
by hanson and Asdam

Domino Simulator 1.0
Posted Image
[yoyogames] [gmc]
Design your own domino chains with intuitive designer then watch them fall in a realistic manner
by hanson

Phantom107 GMNewton 0.3 Demo
Screenshot
[yoyogames] [download]
A clean example of GMNewton
by Phantom 107

GMNewton and Ultimate 3d
screenshot
[gm6]
A nice example demonstrating GMNewton with Ultimate 3d
by Skarik


-hanson

Edited by hanson, 19 May 2010 - 01:27 AM.

  • 7

#2 royboyjoytoy2

royboyjoytoy2

    GMC Member

  • New Member
  • 308 posts

Posted 15 May 2008 - 10:24 PM

Hey, this looks great!
  • 0

#3 biggoron

biggoron

    dura lex sed lex

  • New Member
  • 652 posts

Posted 16 May 2008 - 02:55 PM

Great work! I always liked NGD.
  • 0

#4 RamboFox

RamboFox

    Tainted Fortune

  • New Member
  • 992 posts

Posted 23 May 2008 - 02:44 AM

*complete re-edit* Wow, looking back on posts that I created made me look like a complete utter noob.
Anyway, before this edit I was crying for upper and lower limits on springs and such (they have since been added).

Thanks!

Edited by RamboFox, 13 January 2011 - 06:32 AM.

  • 0

#5 softhunterdevil

softhunterdevil

    LazyBoy

  • GMC Member
  • 276 posts

Posted 23 May 2008 - 03:04 AM

Its great! I would like to see the complete engine.

Also, may be you mention as mentioned in sdk license - " give credit if used in any form, splash screen, about box, etc"
  • 0

#6 hotshotscott

hotshotscott

    GMC Member

  • New Member
  • 3483 posts

Posted 23 May 2008 - 10:13 AM

I went to your link for the 'Newton Game Dynamics physics engine' and OMG!!! THEY LOOK SOO GOOD! I will be downloading some of them, but please tell me. Are they all made from game maker? If so, you should definetly make an awesome 3D game. I'll check this out, and some of the games from 'Newton Game Dynamics physics engine' page and i'll reply later.

EDIT
OMG!! Everyone, check out the ''Newton Game Dynamics physics engine' , click the link he's provided in his first post. The games on that page is AMAZING! Im soo incredibly amazed at your 3D physics, especially for game maker. These physics are definetly professional commercial quality, stuff you'd see in 3D games such as Halo etc!! I hope you make a great game out of these!

Scotty

Edited by hotshotscott, 23 May 2008 - 11:10 AM.

  • 0

#7 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 24 May 2008 - 12:06 AM

@royboyjoytoy2: Thanks!

@biggoron: Thanks!

@RamboFox: I do plan on completing it. If I ever do need to stop because of lack of time or something, I will likely release the source so someone else can continue it. I don't plan on dropping out any time soon though :ph34r:

@hotshotscott: I believe that none of the games or demos on that site were created with Game Maker. Realize that I did not create the physics engine, but just created a dll that acts as an interpreter so that NGD and Game Maker can communicate.

@Everybody: I'm glad you like it! Thank you for replying and letting me know what you think :blink:

-hanson

Edited by hanson, 24 May 2008 - 12:06 AM.

  • 0

#8 Rixeno

Rixeno

    The One 'n' Only

  • New Member
  • 513 posts

Posted 25 May 2008 - 02:48 PM

Good work Hanson, it works great. It would be nice to see all those other functions like Joints, etc. B)
  • 0

#9 UtArEfSoN

UtArEfSoN

    GMC Member

  • GMC Member
  • 23 posts

Posted 25 May 2008 - 03:09 PM

Great work dude! This runs really smoothly with D3D, that's really impressive. Thanks for making this wrapper and please do keep on it!
  • 0

#10 RamboFox

RamboFox

    Tainted Fortune

  • New Member
  • 992 posts

Posted 28 May 2008 - 04:02 AM

Great work dude! This runs really smoothly with D3D, that's really impressive. Thanks for making this wrapper and please do keep on it!

And it runs REALLY well on my ****ty 512mhz 256mb ram Intel Pentium III PC! :)
  • 0

#11 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4922 posts
  • Version:GM8

Posted 08 June 2008 - 05:16 PM

Can i make 3D car physics with this?
  • 0

#12 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 08 June 2008 - 07:08 PM

@all: Thanks! I'm glad it is working well :huh:

@Revel: Car physics are not yet supported by the wrapper, but Newton provides them and I plan to wrap them in the future.

-hanson
  • 0

#13 remoladen

remoladen

    GMC Member

  • New Member
  • 147 posts

Posted 08 June 2008 - 07:17 PM

NICE
  • 0

#14 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4922 posts
  • Version:GM8

Posted 08 June 2008 - 09:24 PM

@hanson I will definitely keep checking back for the car physics.
  • 0

#15 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4922 posts
  • Version:GM8

Posted 16 June 2008 - 05:15 AM

Are you still working on this?

Im waiting for Car physics :whistle:


Edit:
Im playing around with the DLL, and its amazing!!

Edited by Revel, 16 June 2008 - 05:21 AM.

  • 0

#16 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 16 June 2008 - 01:38 PM

Yes, I am still working on this. It is just a project done in my spare time, and right now I am devoting more(but not all) time towards two other projects; one for the competition(03), and one game using this dll's current capabilities. I'll read into the car physics some more right now, though I don't know how hard it is to implement, or how long it will take. I'm a beginner at C++, and this is my first wrapper so I am a little slower programming it than a more experienced C++ programmer might be :unsure:. Thanks for the interest! I'll keep you updated about the car physics.

-hanson
  • 0

#17 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4922 posts
  • Version:GM8

Posted 16 June 2008 - 10:22 PM

Question:

How did you make the map (bowl)? Im trying to make a map and it keeps turning out WAYYY to small no matter how big i scale it (in the modeller).

How did you make the map?

Edited by Revel, 16 June 2008 - 11:04 PM.

  • 0

#18 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 17 June 2008 - 03:06 AM

I made the map in anim8or, and exported it with the script available from anim8or.com. What modeler are you using?

-hanson
  • 0

#19 mrsmes

mrsmes

    GMC Member

  • GMC Member
  • 1319 posts
  • Version:GM:Studio

Posted 22 June 2008 - 02:04 AM

it came up with a error saying:
failed to execute external function.
  • 0

#20 Hepolite

Hepolite

    GMC Member

  • GMC Member
  • 130 posts
  • Version:Unknown

Posted 22 June 2008 - 11:03 AM

I must say that this is great! It's just that I'm missing some stuf thought...

When I add a rotation to a body, it rotates around the world, not the origin of the object. This is solved by placing the object at 0,0,0 then at x,y,z.
Also, nothing happens when this rotating object collides with another object. The same thing happens when you set the position.
No collisions happen.

Other than that, I really like this. I hope for updates soon, as this is one of the best physic engines/wrappers. Keep up the good work!
  • 0

#21 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 22 June 2008 - 12:47 PM

@mrsmes: Is the GMN.dll in the same folder as the gm6?

@Hepolite Thanks! You are correct that there are still unimplemented features. I also noticed the origin problem, and that should be fixed in the next release. I am not sure that newton game dynamics supports collision by directly setting the position or rotation. I will look into alternative methods to do this.

Thanks for the positive support!

-hanson
  • 0

#22 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4922 posts
  • Version:GM8

Posted 25 June 2008 - 11:51 PM

@hanson


m using blender
  • 0

#23 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 01 July 2008 - 10:38 AM

Error
---------------------------
gm_newton.exe - Entry Point Not Found
---------------------------
The procedure entry point NewtonMaterialSetContinuousCollisionMode could not be located in the dynamic link library Newton.dll.
---------------------------
OK
---------------------------

Newton.dll is in the same folder as the example.
  • 0

#24 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 01 July 2008 - 02:04 PM

@Revel: Try selecting the object in object mode, then pressing ctrl+a and choosing the first option. I believe that this will apply the scale.

@freaked: Does this occur when you start the example?

-hanson
  • 0

#25 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 02 July 2008 - 09:24 AM

Yes.
BTW, It works only if I compile the example and then run it from the dll folder.
  • 0

#26 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 07 July 2008 - 09:56 PM

Are you using gm7? icuurd12b42 posted this in the bullet physics topic:

Save the project before running it. It's a GM7 bug. You open a gm6 project that uses a DLL and clicked run without saving to GM7... Somehow/sometimes the dll fails to load or be found if you omit to save to a gmk. It's not a bullet prob. I get the same prob with some, including mine, examples I converted to gm6 and test in gm7.


-hanson
  • 0

#27 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4922 posts
  • Version:GM8

Posted 07 August 2008 - 05:17 AM

Are you almost done car physics? :P
  • 0

#28 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 12 August 2008 - 01:26 PM

No,

I actually have gotten nothing done. I have been giving another project precedence over this, and have also been distracted by other aspects of life (no, I don't just sit at my computer 24/7 :D) Sorry.

I might eventually make this open source if anyone is interested in helping out. It is coded in C++. I am just a beginner in C++, so the current code may not be particularly easy to read though. Would anyone be interested in contributing to this dll?

Thanks,
-hanson
  • 0

#29 KaguyaKiller

KaguyaKiller

    GMC Member

  • New Member
  • 91 posts

Posted 15 August 2008 - 06:26 PM

No,

I actually have gotten nothing done. I have been giving another project precedence over this, and have also been distracted by other aspects of life (no, I don't just sit at my computer 24/7 :)) Sorry.

I might eventually make this open source if anyone is interested in helping out. It is coded in C++. I am just a beginner in C++, so the current code may not be particularly easy to read though. Would anyone be interested in contributing to this dll?

Thanks,
-hanson

Me, i would love to contribuite! I have DEVC++ and the Visual C++ 2008 express, i like coding, and physics, and i really need something like that, ive played real long time with it... loved, and now i need the joints working, i don't think that would be too much code... o.O
p.s: Speed limit please or by line collision, cuz' if you go too fast, you get out of the screen with dah ball.

Edited by KaguyaKiller, 15 August 2008 - 06:34 PM.

  • 0

#30 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 16 August 2008 - 01:39 AM

I think it suppurts continuous collision detection right now through materials.
Thanks for your interest! I'm out of town visiting my grandparents so can't distribute any source at the moment, but can get in toutch with you when I get back.

-hanosn
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users