The holy grail of software development is to write code once and have it work absolutely everywhere: on any device, on every platform. This is the inspiration behind Babylon Native. This exciting new addition to the Babylon platform allows anyone to take their Babylon.js code and build a native application with it, unlocking the power of native technologies.

Illustration of laptop computer, desktop computer, smart phone, and tablet.

Cross-platform native apps

With Babylon Native, you can write your rendering code once and re-use it across your web site and your various native applications. You code your application in JavaScript and the Babylon Native Runtime runs it on platform native graphics APIs (DirectX on Windows, Metal on iOS/MacOS, OpenGL on Android, and OpenXR devices such as HoloLens 2 and Oculus).

Full power of Babylon.js

The rendering code written with Babylon.js is reusable in Babylon Native. This means that you get access, out of the box, to the feature-packed 3D rendering engine including the latest in Physically Based Rendering (PBR), animations, particle system, and physics engines. It also brings glTF consistency and conformance, backward compatibility, and a constant evolution with hundreds of new features and enhancements per year.

Shader ball demonstrating PBR materials, clear coat, glow, depth of field, and bloom.
Illustration of cardboard box containing smaller packages.

Optimized package size

A large file size can impact the adoption of an application. For instance, mobile users are presented with warning messages about large app sizes before downloading them over-the-air. The full-featured Babylon.js engine is built for the Web and you can pick and choose what you need with ES6 packages. Babylon Native is also built with componentization in mind, allowing you to further optimize your total package size.

Choose your UI technology

What User Interface (UI) technology you include in your application is entirely up to you. Babylon.js comes with certain UI capabilities, particularly including 3D UI for XR and other purposes, which will also work in Babylon Native. However, Babylon Native is not intended to ever include an implementation of the HTML DOM, so depending on how you choose to implement the UI, you might have to incorporate additional technologies such as React Native or a native handcraft UI.

Logo for React Native.
An animated gif of a phone showing a 3D object floating in a room in XR

XR experiences

Augmented Reality, Mixed Reality, and Virtual Reality experiences are being democratized by innovative applications, mobile support, and the upcoming WebXR standard. Babylon Native offers a powerful platform to build such experiences. The use of JavaScript and Babylon.js engine features to develop an application enables a broad set of developers and content creators. The capacity to run natively allows to go beyond the Web sandbox and built-in AR viewers.

Active, Friendly Community

Babylon Native is part of the Babylon.js family and inherits an active open-source community that supports each other in creating amazing experiences. As you begin your Babylon.js and Babylon Native journey, this amazing group of passionate folks is eager and ready to help you get started and answer any of your questions.

A screen capture of our very active forum page.