Newton Dynamics Mod for BlitzMax NG
👉Blast3D is now FREE👈
Support Future Updates by Becoming a Blitz Backer on Patreon.
Tweet blitzmax blitzmax-ng physics frameworks toolbox
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
It also works with OpenB3DMax, will post the mod later.
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
Sorry.. didnt work.. btw did you mean dynamics.mod? not dynamic.mod right?
anyway it didnt work sadly..
ill keep trying..
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...
I'm using DX since I need to rev this thing up ready for release soon.
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.
Afaik the older version works with vanilla pre NG compatibility. I haven't tested it with NG as I don't use the latest.
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.
Perhaps you can try it with a clean installation of official brl blitzmax coz thats how vanilla you can really get.
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.
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.
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.
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.
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.
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.
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.
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.
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
Thanks Blitzman, good to know. Was there ever a Mac version of itmbin's Newton wrapper? It was a great module.
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
I get an error of ACCESS VIOLATION whenever I try to run the examples on Blitzmax NG
Hey sprotz, you can also try and check out Mark's latest repo here: https://github.com/markcwm/newton.mod
I tried it, now it says error 'Can't find interface for openb3dmax.openb3dmax' because seemingly it's not for Blitzmax NG, but for OpenB3DMax and OpenB3DMax does not compile to Android and I want something that works on BlitzMax NG because it compiles to Android.
I also removed the openb3dmax module and tried the included Newton module, same thing , 'EXCEPTION_ACCESS_VIOLATION'
Hey sprotz, as of this time I have not found yet any custom newton mod that works on Android + Blitzmax NG.
As for Brucay's mod, have you tried using the latest NG? or perhaps match closely the version/release date of the mod with the NG release.
You can try also the itmbin version that Blitzman provided above, but that is Windows DLL only.
Reply To Topic (minimum 10 characters)
Please log in to reply