Aldo V

Is Babylonjs recommended for 2D projects?

Recommended Posts

Hi everyone 😊

I am Unity Developer. I want to make rich 2D and 2.5D playable ads. In search of native webgl engine I found babylonjs. I googled, but couldn't find any 2D project. Is 2D projects are recommended with babylonjs 3.3.0?

Share this post


Link to post
Share on other sites

Yup you can definitely rely on it as it provides an amazing supports for GUI and other 2d sprites / effects.

The best part is that you could easily add 3d like shapes and particles to build smthg like Rayman 🙂 I love those 2.5 d games a lot 🙂

Share this post


Link to post
Share on other sites

imho, Phaser is really dedicated to genuine 2D games on webGL. 

BabylonJS is dedicated to 3D and provides a 2D GUI and 2D tools (these tools being able to be injected in a 3D world what is huge)

Phaser has a 2.5 D support what is actually a 2D layer with a z level approach whereas BabylonJS can display real 3D in a 2.5D mode (orthographic camera)

Both are WebGL engine.

Share this post


Link to post
Share on other sites

What would the initial library footprint be (in KB and time to load)?  Does the library come all-as-one, or can it be modularized or have dead code eliminated?  Does a WebGL requirement limit the audience / inventory?  These may be relevant considerations for a playable-ad (or instant-game) when evaluating options.

Share this post


Link to post
Share on other sites
6 hours ago, b10b said:

Does the library come all-as-one, or can it be modularized or have dead code eliminated?

I know they are working on having it automatically remove the dead code with tree-shaking, but it's not there yet.  You can follow this github issue to follow when it's ready:
https://github.com/BabylonJS/Babylon.js/issues/3314
Having said that, it is modularized - the loaders, gui, materials, post-process, etc. are separate imports.

I thought I remembered a page to generate a custom script and I think it's even linked from the NPM page!
http://doc.babylonjs.com/how_to/how_to_start#custom-builds <-- this link should be fixed on the NPM page (https://doc.babylonjs.com/features/npm_support), but I'm not sure where it should point.
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.