× Components and Libraries for Graphics 3D Development, discussions, problems and suggestions

Question I ported the Newton engine to trunk API v3.14

  • Ben Grasset
  • Topic Author
  • Visitor
  • Visitor
4 years 11 months ago - 4 years 11 months ago #9203 by Ben Grasset
Two files are in the 7z archive I've attached here: "newton_base.inc" (which is a slightly modified/fixed version of Sascha Willems Newton 3.14 headers) and then "orca_scene3d_newton.inc", which is a fully "Orcafied" adaption of the original DXScene Newton physics engine that I've updated to use the latest trunk version of the Newton API (version 3.14). You just have to put both files in the "inc" directory, and then in orca_scene3d.pas, add {$I orca_scene3d_newton.inc} at the end of the big include list that happens near the end of the file (AFTER the platform canvas include). You'll also need to change "GVarD3DefaultPhysicsClass := TD3DummyPhysics" over to "GVarD3DefaultPhysicsClass := TD3NewtonPhysics", in the initialization.

Please note that I have only tested this on Windows, but it does work 100% perfectly for me. Used it with the "Breakout" demo and all the ball/bat physics behaviour was exactly as it should be, just like it was in the original DXScene version of the demo.

EDIT: I've attached the copy of "newton.dll" that I've been using (64-Bit, built with Visual Studio 2015), just to make things a bit more convenient. I can upload a 32-Bit build as well if anyone needs it. Also, if a non-windows-user could provide a ".dylib" or ".so" build of 3.14, that would be great, obviously.
Attachments:
Last edit: 4 years 11 months ago by Ben Grasset.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 11 months ago - 4 years 11 months ago #9204 by Sternas Stefanos
Replied by Sternas Stefanos on topic I ported the Newton engine to trunk API v3.14
Thanks Sir
My suggestion is to look and pl_Pappe or pl_ChipmunkPas native pascal CodeTyphon 3D Physics libraries.

Please, don't forget CodeTyphon is real Multi-CPU-OS-Platform Programming Studio,
so, we try to use as posible, native pascal libraries.

PilotLogic Architect and Core Programmer
Last edit: 4 years 11 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.