Sign in to follow this  

*.babylon to HTML

Recommended Posts

my script

<!doctype html>
    <script type='text/javascript' src=''></script>
    <script type='text/javascript' src=''></script>
    <script type='text/javascript' src=''></script>
    <style type='text/css'>
        html, body, div, canvas {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
            overflow: hidden;

    <canvas id='canvas'></canvas>
    <script type='text/javascript'>
        var canvas = document.getElementById('canvas');
        var engine = new BABYLON.Engine(canvas, true);
        BABYLON.SceneLoader.Load('', 'BabylonTest1.babylon', engine, function (newScene) {

            engine.runRenderLoop(function() {

            window.addEventListener('resize', function () {

When i press "Export&Run" button on 3dMax Exporter - All work? launching in Localhost and automaticly adding spec. random code in string:
                                                    <BABYLON.SceneLoader.Load('', 'BabylonTest1.babylon?once=1180175707', engine, function (newScene)>
I don't understand... Babylon is not free???

Share this post

Link to post
Share on other sites

Hello AlexeyJr, 

Yes, Babylon is free. The parameter 'once' is here to remove the cache being used by the browser: this way, the displayed version is always the last one.

Your code is correct. Do you have any errors at export ? Are you using it with a webserver ?


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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.