p5.js vs Babylon.js
When comparing p5.js vs Babylon.js, the Slant community recommends Babylon.js for most people. In the question“What are the best JavaScript 3D frameworks?” Babylon.js is ranked 2nd while p5.js is ranked 4th. The most important reason people chose Babylon.js is:
Thanks to the increasing popularity of Babylon, it has a growing community of helpful developers. It's easy to find help on their [forum](http://www.html5gamedevs.com/forum/16-babylonjs/).
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Accessible documentation
Reference documentation and lots of examples are available directly on the website.
Pro Great community
p5 users benefit from the Processing community's 15+ years of growth and discovery. Processing code can easily be converted to p5.
Pro General programming concepts
As a continuation of the Processing project, this frameworks helps in understanding the general programming concepts that goes beyond drawing (connecting electronics, using sounds or the webcam etc),
Pro Easiest to learn to obtain high grade results
In a few days any body can understand extremely complex figures in a few minutes.
Pro A lot of YouTube tutorials
Pro Small (but helpful) community
Thanks to the increasing popularity of Babylon, it has a growing community of helpful developers. It's easy to find help on their forum.
Pro A good amount of easy to understand resources to learn from
Babylon provides a playground where you can explore examples and play with the code.
The official documentation offers a wide variety of well-written tutorials on topics from beginner to advanced.
Additionally, there are many tutorials written by the community available that you can find by doing a google search.
Pro Great base shader material
Pro Actively developed
Babylon has great project health, with activity on Github daily for bug fixes and new features.
Cons
Con No built-in rendering
If looking for something to build UIs with or similar, one might be disappointed by the lack of any pre-defined UI element objects and such in p5.js. One has to write all the rendering code for any objects one includes, integrating it appropriately with the loop.
Con Young project
Babylon is quite young compared to many of it's competitors (released in 2013). The community is still somewhat small, however growing quickly.