Klein
PhysX
Klein | PhysX | |
---|---|---|
3 | 18 | |
735 | 2,296 | |
- | 2.0% | |
0.0 | 4.7 | |
12 months ago | 22 days ago | |
C++ | C++ | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Klein
-
Planes in 3D Space
For those interested, this appears to be a really high quality library that provides a 3D PGA C++ API:
https://github.com/jeremyong/klein
I've always wanted to find an excuse to rebuild some projects at work around this.
- Blaze: A High Performance C++ Math library
-
The Bitter Truth: Python 3.11 vs Cython vs C++ Performance for Simulations
Most high-performance math libraries perform a lot of vectorization (Eigen, etc) under the hood. And you've got stuff like Klein, Vc (which is reminiscent of std::valarray), etc. Then there's OpenMP's #pragma omp simd (assuming version 4.0 or greater).
PhysX
-
Blaze: A High Performance C++ Math library
For typical game physics engines... not that much. Math libraries like Eigen or Blaze use lots of template metaprogramming techniques under the hood that can help when you're doing large batched matrix multiplications (since it can remove temporary allocations at compile-time and can also fuse operations efficiently, as well as applying various SIMD optimizations), but it doesn't really help when you need lots of small operations (with mat3 / mat4 / vec3 / quat / etc.). Typical game physics engines tend to use iterative algorithms for their solvers (Gauss-Seidel, PBD, etc...) instead of batched "matrix"-oriented ones, so you'll get less benefits out of Eigen / Blaze compared to what you typically see in deep learning / scientific computing workloads.
The codebases I've seen in many game physics engines seem to all roll their own math libraries for these stuff, or even just use SIMD (SSE / AVX) intrinsics directly. Examples: PhysX (https://github.com/NVIDIA-Omniverse/PhysX), Box2D (https://github.com/erincatto/box2d), Bullet (https://github.com/bulletphysics/bullet3)...
-
Rust Game Physics Engines: PhysX, Rapier, XPBD & Others
NVIDIA PhysX GitHub repo: NVIDIA-Omniverse/PhysX
-
Recommended Physics Engine?
I don’t know of any books but here is the official documentation which includes an API reference. You can also find a lot of sample code snippets and examples on their GitHub.
-
C# Game engine - suggestions
On the other hand, PhysX is available under the MIT License and is both heavily used in games and also well documented with tons of sample code.
-
AMD Finally Opens Up Its Radeon Raytracing Analyzer "RRA" Source Code
The CPU implementation of PhysX is too, no reason you couldn't port that to run on AMD GPUs: https://github.com/NVIDIA-Omniverse/PhysX
-
Nvidia PhysX 5.0 is now open source
The LICENSE.md file on the repo doesn't mention BSD-3-Clause at all, it's just a copywrite notice that reads more like CC-BY than a software license. That's why I said it was weird.
Very! I just picked a random file: https://github.com/NVIDIA-Omniverse/PhysX/blob/release/104.0/physx/source/physx/src/NpArticulationJointReducedCoordinate.cpp
- GitHub - NVIDIA-Omniverse/PhysX: NVIDIA PhysX SDK - 5.0
What are some alternatives?
GLM - OpenGL Mathematics (GLM)
RayTracingDenoiser - NVIDIA Ray Tracing Denoiser
Vc - SIMD Vector Classes for C++
physx-rs - 🎳 Rust binding for NVIDIA PhysX 🦀
OpenBLAS - OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
PhysX - NVIDIA PhysX SDK
ceres-solver - A large scale non-linear optimization library
JoltPhysics - A multi core friendly rigid body physics and collision detection library, written in C++, suitable for games and VR applications.
MIRACL - MIRACL Cryptographic SDK: Multiprecision Integer and Rational Arithmetic Cryptographic Library is a C software library that is widely regarded by developers as the gold standard open source SDK for elliptic curve cryptography (ECC).
AI4Animation - Bringing Characters to Life with Computer Brains in Unity
Eigen
box2d-lite - A small 2D physics engine