Babylon.js is built upon 3 golden rules:
The first golden rule is a really important one because we want our users to trust Babylon.js. And when we need to introduce something that will break backward compatibility, we know that it will imply more work for our customers to switch to a new version. So even if something could be simpler to do by breaking the backward compatibility, we will not do it (exceptions may apply of course if there is a problem with performance or if this is related to a bug).
Babylon.js is a 3D rendering engine. So every piece of code has to be scrutinized to look for potential bottlenecks or slow downs. Ultimately the goal is to render more with less resources.
A developer should be able to quickly and easily learn to use the API.
Simplicity and a low barrier to entry are must-have features of every API. If you have any second thoughts about the complexity of a design, it is almost always much better to cut the feature from the current release and spend more time to get the design right for the next release.
You can always add to an API, you cannot ever remove anything from one. If the design does not feel right, and you ship it anyway, you are likely to regret having done so.
Since the very beginning, Babylon.js relies on a great forum and a tremendous community: https://forum.babylonjs.com/. Please use the forum for ANY questions you may have.
Please use the Github issues (after discussing them on the forum) only for:
We will try to enforce these rules as we consider the forum is a better place for discussions and learnings.
We are not complicated people, but we still have some coding guidelines Before submitting your PR, just check that everything goes well by creating the minified version
You should read the how to contribute documentation before working on your PR.
To validate your PR, please follow these steps:
## What should go where?
In order to not bloat the core engine with unwanted or unnecessary features (that we will need to maintain forever), here is a list of questions you could ask yourself before submitting a new feature (or feature request) for Babylon.js core engine:
If your PR is does not fall into the core category you can consider using our Extensions repo for more high level features.