Pryme8 Posted November 29, 2017 Share Posted November 29, 2017 Do you have BABYLON.OBJFileLoader.OPTIMIZE_WITH_UV = true; On your js file before you import anything? Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 29, 2017 Author Share Posted November 29, 2017 1 minute ago, Pryme8 said: Do you have BABYLON.OBJFileLoader.OPTIMIZE_WITH_UV = true; On your js file before you import anything? course Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted November 29, 2017 Share Posted November 29, 2017 can you link me to a live version that has this line on it? Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 29, 2017 Author Share Posted November 29, 2017 1 minute ago, Pryme8 said: can you link me to a live version that has this line on it? i will upload to server.. wait me Pryme8 1 Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 29, 2017 Author Share Posted November 29, 2017 6 minutes ago, Pryme8 said: can you link me to a live version that has this line on it? https://turret.000webhostapp.com/ Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted November 29, 2017 Share Posted November 29, 2017 Ok worse case scenario, I am going to hack away at this when I get home... Expect a fix in the next day or so. I might be providing a new model for you though. Sebavan 1 Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 29, 2017 Author Share Posted November 29, 2017 8 minutes ago, Pryme8 said: Ok worse case scenario, I am going to hack away at this when I get home... Expect a fix in the next day or so. I might be providing a new model for you though. many thanks naveTierraSolo.blend naveTierraSolo.blend1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted November 30, 2017 Share Posted November 30, 2017 I have no clue what you are doing wrong now... Everything worked for me when I imported. That is in BJS Here is the code I used: var canvas = document.getElementById("renderCanvas"); // Get the canvas element var engine = new BABYLON.Engine(canvas, true); // Generate the BABYLON 3D engine BABYLON.OBJFileLoader.OPTIMIZE_WITH_UV = true; var createScene = function () { // Create the scene space var scene = new BABYLON.Scene(engine); // Add a camera to the scene and attach it to the canvas var camera = new BABYLON.ArcRotateCamera("Camera", Math.PI / 2, Math.PI / 2, 10, BABYLON.Vector3.Zero(), scene); camera.attachControl(canvas, true); // Add lights to the scene var light1 = new BABYLON.HemisphericLight("light1", new BABYLON.Vector3(1, 1, 0), scene); var light2 = new BABYLON.PointLight("light2", new BABYLON.Vector3(0, 1, -1), scene); light1.intensity = 0.5; light2.intensity = 0.45; var loader = new BABYLON.AssetsManager(scene); var shipLoad = loader.addMeshTask("ship", "", "./", "naveTierraSolo.obj"); loader.load(); shipLoad.onSuccess = function (task) { var ship = task.loadedMeshes[0]; ship.material = new BABYLON.StandardMaterial("shipMat", scene); ship.material.diffuseTexture = new BABYLON.Texture("./texture.png", scene); } return scene; }; var scene = createScene(); //Call the createScene function engine.runRenderLoop(function () { // Register a render loop to repeatedly render the scene scene.render(); }); window.addEventListener("resize", function () { // Watch for browser/canvas resize events engine.resize(); }); naveTierraSolo.obj <- is the OBJ I exported from c4d from your obj file... all I did was make one fix to the nose where a face was not a quad or a triangle. Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 30, 2017 Author Share Posted November 30, 2017 I'm going to check Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 30, 2017 Author Share Posted November 30, 2017 wow.. it's blender, could you please give me the exact configuration that you used to export, it already works .. Also note that it is bigger, you resized it? Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted November 30, 2017 Share Posted November 30, 2017 yeah, my c4d scale is all messed up if you send me the size you need I can fix that and re-export it for you. Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 30, 2017 Author Share Posted November 30, 2017 8 minutes ago, Pryme8 said: yeah, my c4d scale is all messed up if you send me the size you need I can fix that and re-export it for you. strange, i scaled it and the speed is slow and the particles of turbine are hidden. Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 30, 2017 Author Share Posted November 30, 2017 sorry, "c4d" is ?? Quote Link to comment Share on other sites More sharing options...
none-9999 Posted November 30, 2017 Author Share Posted November 30, 2017 OK, solved it. i flip y axs in blender,. babylon reinvests, well it's fine, thanks to everyone, this I had tried before uploading but it had not worked, now yes work Sebavan 1 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.