Newton Dynamics Mod for BlitzMax NG


Tweet blitzmax blitzmax-ng physics frameworks toolbox
(Posted 5 months ago) RonTek

Newton Dynamics Physics for BlitzMax NG Only

Newton Game Dynamics is an open-source physics engine for realistically simulating rigid bodies in games and other real-time applications. Its solver is deterministic and not based on traditional LCP or iterative methods. Newton Game Dynamics is actively developed by Julio Jerez.

Author: Brucey
Newton Library Version: v3.13
Download Latest: GitHub

(Posted 5 months ago) hardcoal commented:

I used to love it

(Posted 5 months ago) RonTek commented:

It also works with OpenB3DMax, will post the mod later.

Update: https://www.blitzcoder.org/forum/topic.php?id=490

(Posted 2 months ago) hardcoal commented:

Hi. I tried to install it. didnt work..
I dont know what im doing wrong..

I get

Compile Error: Can't find interface for module 'newton.dynamics'
Build Error: failed to compile

I dont know which folder i should put in the mod

(Posted 2 months ago) RonTek commented:

mod → newton.mod → dynamics.mod

(Posted 2 months ago) hardcoal commented:

Sorry.. didnt work.. btw did you mean dynamics.mod? not dynamic.mod right?
anyway it didnt work sadly..
ill keep trying..

(Posted 2 months ago) RonTek commented:

yep sorry that was a typo and it should work. Are you running on vanilla or NG? Remember with vanilla you should build the mod first.

Here's example1 compiled and running...

Image

I'm using DX since I need to rev this thing up ready for release soon.

(Posted 2 months ago) hardcoal commented:

Im using it on blitzmax 1.50.. does it work only on NG?

(Posted 2 months ago) RonTek commented:

The latest should work with both. Threading support is for NG only.

(Posted 1 month ago) markcwm commented:

As far as I can tell, Newton.Dynamics built but didn't run (MAV) with Brl Blitzmax 1.5x in both multi-threaded and single-threaded modes.

I think it would take an edit to Brl.Blitz by Brucey to fix it but I'd rather not ask him because it's not NG.

(Posted 1 month ago) RonTek commented:

Afaik the older version works with vanilla pre NG compatibility. I haven't tested it with NG as I don't use the latest.

(Posted 1 month ago) markcwm commented:

Okay, I'll give that a try then. Thanks Ron.

(Posted 1 month ago) markcwm commented:

Nah, no previous commits to newton.mod works with my version of Brl Blitzmax, which is using Brucey's patched Brl and Pub. I tried the 2nd, 3rd, 4th and 5th commits.

(Posted 1 month ago) RonTek commented:

Perhaps you can try it with a clean installation of official brl blitzmax coz thats how vanilla you can really get.

(Posted 1 month ago) markcwm commented:

Okay well I tried a new install of Blitzmax vanilla OS version, I still get an EAV at runtime no matter what commit or build type I try. So as far as I can tell it is NG-only, indeed Brucey lists it under Blitzmax NG modules.

(Posted 1 month ago) RonTek commented:

Ok thanks for the confirmation, it does seem to be NG only. I did not recall this before as I thought BlitzSupport's version was supposed to be BlitzMax vanilla version but he did link it to the bmx-ng repo which verifies it.

I have updated the title now for clarification. cheers.

(Posted 1 month ago) markcwm commented:

Thanks Ron, yes I'm quite sure it doesn't work. James Boyd's code actually won't build in vanilla Blitzmax because he uses New(with parameters) which I think was added to NG. I had to recode that bit to test it in Blitzmax vanilla.

Also you should probably say that it is using Newton v3.13.

(Posted 1 month ago) RonTek commented:

Done. I can see Newton is another great library but it seems Bullet Physics (v3 or later) is more popular in most games and even in open source game/game engine projects. I think this is due to OpenCL which is using GPU and you don't need to configure or use pthreads anymore.

https://github.com/bulletphysics/bullet3/issues/126

(Posted 1 month ago) Blitzman commented:

Not sure if this of use,but i tryed MinGW 4.6.1 and Newton seems to work with BlitzMax Vanilla.Never tryed with NG as i dont use it.(I maybe wrong).Worth a try tho.

(Posted 1 month ago) RonTek commented:

Not sure if this of use,but i tryed MinGW 4.6.1 and Newton seems to work with BlitzMax Vanilla.Never tryed with NG as i dont use it.(I maybe wrong).Worth a try tho.

That's awesome BlitzMan. I do have the same configuration with 4.6.1, but recently it's stalling on me. I must admit that I still have that slight recollection of building it on vanilla since I mentioned it instinctively.

I have several archived vanilla installation over the years and I can't find the one with it so I can't confirm it. I hope it does work though with the examples, perhaps you can upload your newton copy.

(Posted 1 month ago) markcwm commented:

Hi Blitzman,

I just tried with Nuwen MinGW 4.6.1 and vanilla Blitzmax OS and it won't build Newton.mod, I get the error: can't find pthread.h, so I think it's because Nuwen MinGW doesn't support posix threads (pthreads) just win32 threads.

(Posted 1 month ago) Blitzman commented:

Soz guys made a boo boo.I have been using the itmbin wrapper for BlitzMax which is a dll,not the actual Newton import headers and source.
Well its here if you want it.http://www.mediafire.com/folder/jeqgy5n7mo5m1/newton.mod.
Sorry guys.Im also using an old version of OpenB3d,hope it works for you.I also changed the mod name of OpenB3d.I hate long file names.

(Posted 1 month ago) RonTek commented:

No worries Blitzman and thanks for the upload. So I see that this is the newton wrapper for blitz3d version with blitzmax port.

P.S: it would be easier to upload it n tinyupload.com as mediafire is not allowing bulk download or perhaps provide a zipped version. cheers

(Posted 1 month ago) markcwm commented:

Thanks Blitzman, good to know. Was there ever a Mac version of itmbin's Newton wrapper? It was a great module.

(Posted 2 weeks ago) lavalamp commented:

all i get is

[ 21%] Processing:newtonb3d.bmx
Compile Error: Can't find interface for module 'newton.dynamics'
[/Applications/BlitzMax/mod/openb3dmax.mod/newtonb3d.mod/newtonb3d.bmx;24;0]

Goes no further....

Disregard, needs to go in Mod folder not Newton.MOD , did not follow instructions

Reply To Topic (minimum 10 characters)

Please log in to reply