Itmbin's Newton physics wrapper in Blitzmax
Community Forums/Showcase/Itmbin's Newton physics wrapper in Blitzmax
| ||
The demo below shows integration of Itmbin's Newton physics wrapper into Blitzmax via the 'itmbin_newton_wrapper.mod' module found in the 'brightrealm.mod' modscope folder in the zip file below. This also shows synchronization between the physics engine and MiniB3D, which is used for the 3D rendering. Download: http://files.pmnova.com/stuff/bmax-itmbin-wrapper-test-1.zip EDIT: Fixed this problem. I was passing a unicode string for the license key instead of a C-style string. Apparently adding a 'z' after the string data-type identifier converts it to a C-style string in the extern block. Seems to be an undocumented feature of Blitzmax (big surprise). Run the 'start.exe' file to run the complied version of the demo. You can also place the 'brightrealm.mod' folder into your Blitzmax mod folder (C:\BlitzMax\mod), do a 'Build Modules', and run the 'start.bmx' file version od the demo in the Blitzmax IDE. You'll need the 'nwphx.dll' wrapper DLL in your program folder to run either the exe or bmx file. The bmx file also requires the 'old014.jpg' texture (the exe has it incbinned). Note that you may also need MingGW installed to compile the module (possibly not). Check the Blitzbasic.com website for info on installing MingGW. You'll also need MiniB3D installed as a module to compile the bmx file. You don't need either of these to run the 'start.exe' file. Instructions for the demo are shown on the screen. The original thread for this wrapper http://www.blitzbasic.com/Community/posts.php?topic=66659 My thread regarding the wrapper and Itmbin agreeing to let me publish my license key. http://www.blitzbasic.com/Community/posts.php?topic=99274 ![]() Last edited 2012 |
| ||
OK, I fixed the problem with the license key not being recognized. I was passing a unicode string for the license key instead of a C-style string. Apparently adding a 'z' after the string data-type identifier converts it to a C-style string in the extern block. Seems to be an undocumented feature of Blitzmax (big surprise). |
| ||
This is amazing and exactly what I need! Is this the latest newton physics API? Thanks a ton! |
| ||
Is there any documentation as to all the commands? |
| ||
Where can I find the OSX/Linux libs? |