mout99 Posted June 23, 2017 Share Posted June 23, 2017 Hello, I have a scene and it's disappearing, I do not know what it can be, I need help, sorry for my english I used google translate, See attached images, I also attached the 3d file, you can use it in the sandbox to see how it looks http://sandbox.babylonjs.com/ if (BABYLON.Engine.isSupported()) { var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); var newScene; BABYLON.SceneLoader.Load("", "js/teste.obj", engine, function (newScene) { newScene.executeWhenReady(function () { var camera = new BABYLON.ArcRotateCamera("ArcRotateCamera", 0, 0, 0, BABYLON.Vector3.Zero(), newScene); camera.setPosition(new BABYLON.Vector3(7000,7000,7000)); camera.attachControl(canvas, true); camera.lowerRadiusLimit = 10; camera.pinchPrecision = 30; newScene.activeCamera = camera; newScene.activeCamera.attachControl(canvas, true); newScene.clearColor = new BABYLON.Color3(0.5, 0.8, 0.5); engine.runRenderLoop(function() { newScene.render(); }); }); },function (progress) { }); } window.addEventListener("resize", function () { engine.resize(); }); teste.obj Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 23, 2017 Share Posted June 23, 2017 Hello this is because your object is really big. (You should scale it down with mesh.scaling) Anyway, to fix your issue, you can increase your camera.maxZ value to avoid being clipped by the far clip plane Quote Link to comment Share on other sites More sharing options...
mout99 Posted June 23, 2017 Author Share Posted June 23, 2017 Thank you so much for your help, I'm very grateful to you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.