This project is read-only.

Babylon 3D (C#/native port)

Babylon 3D has been ported from Babylon.js into C#.

The target of the project is to show how to compile OpenGL native application for Windows and Android using C# native compiler and at the same time can be compiled as .NET framework application.

Read DOCUMENTATION for mode details.


private void Scene()
    // This creates and positions a free camera
    var camera = new BABYLON.FreeCamera("camera1", new BABYLON.Vector3(0, 5, -10), this.scene);

    // This targets the camera to scene origin

    // This creates a light, aiming 0,1,0 - to the sky.
    var light = new BABYLON.HemisphericLight("light1", new BABYLON.Vector3(0, 1, 0), this.scene);

    // Dim the light a small amount
    light.intensity = .5;

    // Let's try our built-in 'sphere' shape. Params: name, subdivisions, size, scene
    var sphere = BABYLON.Mesh.CreateSphere("sphere1", 16, 2, this.scene);

    // Move the sphere upward 1/2 its height
    sphere.position.y = 1;

    // Let's try our built-in 'ground' shape.  Params: name, width, depth, subdivisions, scene
    BABYLON.Mesh.CreateGround("ground1", 6, 6, 2, this.scene);

Last edited Jan 13, 2015 at 7:19 AM by AlexDev, version 10