Box2D
Panda3D
Box2D | Panda3D | |
---|---|---|
35 | 42 | |
7,291 | 4,270 | |
- | 0.6% | |
0.0 | 9.4 | |
about 1 month ago | 8 days ago | |
C++ | C++ | |
MIT License | GNU General Public License v3.0 or later |
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.
Box2D
-
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)...
-
Jolt Physics raylib: trying 3D C++ Game Physics Engine
Box2D: 2D engine used in Unity and also earlier versions of Godot. Open source.
-
Rust Game Physics Engines: PhysX, Rapier, XPBD & Others
Box2D GitHub repo: erincatto/box2d
- Nebula is an open-source and free-to-use modern C++ game engine
-
Linear code is more readable
Why is 600 lines too long? How are you able to make that judgment call without first knowing what the algorithm is even doing? People setting arbitrary limits like this is what leads to convoluted spaghetti, instead of just taking things on a case by case basis. Here’s a function from the Box2D code running a particularly complex algorithm for solving contact velocities https://github.com/erincatto/box2d/blob/411acc32eb6d4f2e96fc... .
It’s 310 lines long. It reads very well, and it looks very maintainable. It has very clear comments explaining the reasoning behind the harder parts of the code. Would you reject this code because it’s pretty long? I wouldn’t.
There is no such thing as too long or too short. There’s overengineered and there’s underengineered and there’s a sweet spot in the middle that has the perfect amount of engineering with the least amount of complexity (preferably no additional complexity than the original problem warranted). Sometimes, the problem at hand is inherently a large algorithm and requires many lines of code. Don’t split it up! It just makes it harder for future maintainers who now have to figure out if the additional functions are actually being used elsewhere or if they’re just there to make the code “pretty”.
-
How would you implement a simple collision system?
There is always the approach of looking at how an existing engine is implemented, such as box2d: https://github.com/erincatto/box2d
-
C++23: The Next C++ Standard
TIL Box2D must not be serious code because it doesn't use copious amounts of explicit temporaries[0].
And just for the record, I'm very glad Erin Catto decided to use operator overloading in his code. It made it much easier for me to read and understand what the code was doing as opposed to it being overly verbose and noisy.
[0]: https://github.com/erincatto/box2d/blob/main/src/collision/b...
-
Make a game engine in C++
For Physics Box2d can be used as a simple starting point.
-
Does anyone know any good open source project to optimize?
I suspect most C++ physics libraries like Box2D (https://github.com/erincatto/box2d) or Bullet3 (https://github.com/bulletphysics/bullet3) could really benefit a lot from SIMD.
-
what to start learning
for 2D physics have a look at Box2D it's amazing https://box2d.org/
Panda3D
-
Not only Unity...
Panda3D (MIT/C++) https://github.com/panda3d/panda3d
-
3D desktop Game Engine scriptable in Python
For open source 3d engines that use Python check out Panda3D or Ursina. They're both a blast to use and let you write your codd how you want.
[0] https://www.panda3d.org/
[1] https://www.ursinaengine.org/
-
Alternative Game Engines for Marooned Unity Developers
Panda3D: Let's you make games with c++ and python. I don't think there is an "editor" or anything like that with this engine, but it does look like there have been some decent games made with it. Could be good for smaller games. Modified BSD License.
-
Game Development Post-Unity
I know a lot of people recommend Godot because it's super good but if you want a more code oriented and batteries included engine I recommend Panda3D [0] it's open source, super mature (it's actually one of the oldest continously developed game engines), and can be used form Python and C++. Not sure why it's not more popular it's flexiable and super fun to use.
[0] https://www.panda3d.org/
- The Open Source Framework for 3D Rendering and Games
- Making games
-
What are some of the most impressive uses of photogrammetry in games that you've seen?
Some of the game engines we have now have photogrammetry technology built-in, meaning that developers can easily integrate it into their games. This allows for even more detailed and realistic environments to be created in 3D games. The most prominent being Unreal, Unity, and Lumberyard -- including new and beginner-friendly ones like Panda3D and Yahaha. All of these game engines have photogrammetry at their core to help developers create realistic 3D models and textures quickly and efficiently.
-
Here are some tips on mentoring junior developers in a collaborative team?
Make sure to provide your junior developers or any new members with the resources and tools they need to succeed. This could include coding books (The Self-Taught Programmer was my favorite before), online tutorials, or access to development tools and software. There are game engines available that can be a training ground for new devs, some of the game engines I’ve tried are Panda3D, GameMaker and Godot. I’ve also tried newer engines like Yahaha, but this one is pretty easy compared to other engines so there’s really not much of a challenge. The point is, no matter what resources and tools you provide, make sure they are tailored to the skill level of your junior developers.
-
If you had to develop a game in Python, what engine and tools would you use?
...and there are some samples in the source https://github.com/panda3d/panda3d/tree/master/samples
-
The Icculus Microgrant is giving out 250 dollar grants to open source projects, please brag about your project(s) in this thread so I can see them!
It's not my project, but https://www.panda3d.org/ is to my knowledge the next best step after Unity and Unreal game engines. Unlike those, panda is open source and available for C++ and Python.
What are some alternatives?
Bullet - Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
Pygame - 🐍🎮 pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.
Chipmunk - A fast and lightweight 2D game physics library.
PyOpenGL - Repository for the PyOpenGL Project
raylib - A simple and easy-to-use library to enjoy videogames programming
Godot - Godot Engine – Multi-platform 2D and 3D game engine
LiquidFun - 2D physics engine for games
Cocos2d - Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
PhysX - NVIDIA PhysX SDK
RenPy - The Ren'Py Visual Novel Engine
box2d-lite - A small 2D physics engine
Arcade - Easy to use Python library for creating 2D arcade games.