Jump to content

blender smooth export


esseninn
 Share

Recommended Posts

Standart scene, standart example but blender smooth export, why?

 

i need flat model.
or smooth model if modifier smooth

<!DOCTYPE html><html><head>    <meta charset="UTF-8">    <title>Scene</title>    <script src="/js/babylon.1.14.js"></script>    <style>        html, body, canvas {            width: 100%;            height: 100%;            margin: 0;            padding: 0;            overflow: hidden;        }    </style></head><body><canvas id="renderCanvas"></canvas><script>    var canvas = document.getElementById('renderCanvas');    var engine = new BABYLON.Engine(canvas, true);    BABYLON.SceneLoader.Load('/scenes/', 'scene.babylon', engine, function(newScene){        var scene = newScene;        scene.clearColor = new BABYLON.Color3(1, 1, 1);        scene.executeWhenReady(function(){            scene.activeCamera.attachControl(canvas);            engine.runRenderLoop(function(){                scene.render();            });        })    });    window.addEventListener('resize', function(){    });</script></body></html>

tnx.

post-12742-0-61157500-1421962648_thumb.p

post-12742-0-16115700-1421962649.png

post-12742-0-32954500-1421962649_thumb.p

scene.zip

Link to comment
Share on other sites

Hi esseninn - welcome to the forum.

 

In Blender, go to the Properties Panel and chose the tab with the little triangle. In that panel you will see a little arrow with "Babylon.js" next to it. Click on the little arrow and you will see the parameters you can set easily. One is "Flat Shading". Click on the little box to put a check mark in it. You will get that mesh with flat shading.

 

Easy to do. No need to add program lines - and you can select all meshes for each state right in Blender :)

 

cheers, gryff :)

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...