Jump to content

Babylon.js vs Unity - What makes BJS better?


hit2501
 Share

Recommended Posts

Hi everyone,

According to colleagues experiences I know that Unity sometimes requires additoinal plugins for networking functions (access to databases, etc) and I saw that the websites made with Unity take a bit longer to load and sometimes its necessary for user to download additional stuff to be able to use 3d websites.

But all I know is too superficial, can anybody give me more details of why is BJS better than Unity?

Thank you all.

Link to comment
Share on other sites

Unity does not really export to the web.  Yes you can do an HTML output but it's not really optimized for a typical browser scenario.  Babylon allows you to craft an experience with a Web focus.  Also I'm  not sure but Unity html5 might not work on mobile, while Babylon definitely works on mobile.

Unity has advantages though, it has a full featured editor which is easy to use - Babylon has an editor but it's very primitive compared to what you get in Unity.

 

Link to comment
Share on other sites

For pure web development, Babylon.js is better because:

- FAR smaller (250K gzipped)

- Works everywhere (no need of wasm / asm.js support)

- Code is readable (plain JS)

- You can interact with the code from your page

- You can still rely on Unity for editing purpose and then export to babylon.js using our unity exporter

Link to comment
Share on other sites

  • 5 months later...

To expand on what was already said, for me the biggest advantages are:

1) The default build is much, much smaller than Unity's default WebGL build and there's much more potential to trim that size down even further.

2) Free and open source with a code base I can understand and relate to, so extending the engine is a practical prospect for a single developer like myself.

3) I can write UI using web technology and deeply integrate it with the engine for a much better experience than Unity's UI system with much less work on my part.

4) Much easier integration with other web technologies like HTTP and Websocket requests.

Link to comment
Share on other sites

Just curious.. why in such topics (HTML5+JS vs Something) almost nobody mentions that JavaScript is a single-threaded thing? Your code have to be very efficient to make your game enjoyable, because performance is very important.

I haven't used Unity, but fast searching shows there is multithreading in it, so potentially it should work faster with heavier applications, especially on normal multicore PCs. 4-8 cores are better than 1, aren't they?

 

What do you think about that?

Link to comment
Share on other sites

You can simulate multi-threading with smart programming.  Its not true multi-thread and there are caveats but as the webGL get closer to true OpenGL and as thigns like OpenCL gain support you are future proofing yourself.

But then again its all situational and depends on what goal you are trying to accomplish.

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...