tanya53 Posted September 21, 2017 Share Posted September 21, 2017 I am working thru the Intro. to WebGl by micosoft. I can get Babylon to run with my node.js server. When I try to just use blender and the sandbox, the sandbox is black. In blender the camera persp shows something. There are two lights and a camera. I am exporting the file using export and the Babylon.js. This is the top of the .babylon file {"autoClear":true,"clearColor":[0.0000,0.0000,0.0000],"ambientColor":[0.0000,0.0000,0.0000],"gravity":[0.0000,-9.8100,0.0000],"cameras":[{"name":"Camera","id":"Camera","position":[12.8773,11.3313,-7.9031],"target":[-0.3240,0.8954,0.3054],"fov":0.8576,"minZ":0.1000,"maxZ":100.0000,"speed":1.0000,"inertia":0.9000,"checkCollisions":false,"applyGravity":false,"ellipsoid":[0.2000,0.9000,0.2000]}],"activeCamera":"Camera","lights":[{"name":"Area","id":"Area","type":0.0000,"data":[0.1107,8.9662,-0.2007],"intensity":1.0000,"diffuse":[1.0000,1.0000,1.0000],"specular":[1.0000,1.0000,1.0000]},{"name":"Hemi.001","id":"Hemi.001","type":0.0000,"data":[0.0159,10.6325,2.7594],"intensity":1.0000,"diffuse":[1.0000,1.0000,1.0000],"specular":[1.0000,1.0000,1.0000]}],"materials":[{"name":"Material","id":"Material","ambient":[0.8000,0.8000,0.8000],"diffuse":[0.6400,0.6400,0.6400],"specular":[0.5000,0.5000,0.5000],"specularPower":50.0000,"emissive":[0.0000,0.0000,0.0000],"alpha":1.0000,"backFaceCulling":true},{"name":"Material.001","id":"Material.001","ambient":[0.8000,0.0371,0.0207],"diffuse":[0.6400,0.0297,0.0166],"specular":[0.4281,0.5000,0.0483],"specularPower":50.0000,"emissive":[0.0000,0.0000,0.0000],"alpha":1.0000,"backFaceCulling":true},{"name":"Material.002","id":"Material.002","ambient":[0.8000,0.0338,0.5966],"diffuse":[0.6400,0.0271,0.4773],"specular":[0.5000,0.5000,0.5000],"specularPower":50.0000,"emissive":[0.0000,0.0000,0.0000],"alpha":1.0000,"backFaceCulling":true},{"name":"Material.003","id":"Material.003","ambient":[0.8000,0.7543,0.0833],"diffuse":[0.6400,0.6034,0.0667],"specular":[0.5000,0.5000,0.5000],"specularPower":50.0000,"emissive":[0.0000,0.0000,0.0000],"alpha":1.0000,"backFaceCulling":true}],"meshes":[{"name":"Cube","id":"Cube","materialId":"Material.002","position":[-0.1417,0.6998,3.2061],"rotation":[0.0000,0.0000,0.0000],"scaling":[1.0000,1.0000,1.0000],"isVisible":true,"isEnabled":true,"checkCollisions":false,"billboardMode":0,"uvCount":0,"vertices":[-1.0000,1.0000,-1.0000,-0.5773,0.5773,-0.5773,-1.0000,-1.0000,1.0000,-0.5773,-0.5773,0.5773,-1.0000,-1.0000,-1.0000,-0.5773,-0.5773,-0.5773,-1.0000,1.0000,1.0000,-0.5773,0.5773,0.5773,1.0000,-1.0000,1.0000,0.5773,-0.5773,0.5773,1.0000,1.0000,1.0000,0.5773,0.5773,0.5773,1.0000,-1.0000,-1.0000,0.5773,-0.5773,-0.5773,1.0000,1.0000,-1.0000,0.5773,0.5773,-0.5773].... I know I am doing something stupid, please help. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 21, 2017 Share Posted September 21, 2017 Do you mind sharing the .babylon file? Is there any warnings emitted by the Blender exporter? Quote Link to comment Share on other sites More sharing options...
tanya53 Posted September 21, 2017 Author Share Posted September 21, 2017 there are no warnings by the exporter. Below is the file that is exported that I am trying to import to the sandbox. test1.babylon Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted September 21, 2017 Share Posted September 21, 2017 There is no producer tag in the babylon file. This version of the exporter is ancient. In your picture, you are not even showing the version in the title or the property section. Quote Link to comment Share on other sites More sharing options...
tanya53 Posted September 21, 2017 Author Share Posted September 21, 2017 where can I get a current copy of the exporter? thanks Quote Link to comment Share on other sites More sharing options...
tanya53 Posted September 21, 2017 Author Share Posted September 21, 2017 I used the one from BabylonJS/Babylon.js, from github. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted September 21, 2017 Share Posted September 21, 2017 Use this, https://github.com/BabylonJS/Babylon.js/blob/master/Exporters/Blender/Blender2Babylon-5.4.zip, after removing the old one. Do not expand the zip. I do not need install directions for the .babylon exporter. Go to File->User Preferences->Addons Tab Click the Install from File..., then select You will now have a Babylon JS category in Add-Ons. Select that & and toggle the enable check box. Quote Link to comment Share on other sites More sharing options...
tanya53 Posted September 21, 2017 Author Share Posted September 21, 2017 Sorry to be a pain, if I try to unzip the file it won't let me, thus can't use it in the Add-Ons, if I don't unzip it it is not visible in the Add-Ons. Thanks Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted September 21, 2017 Share Posted September 21, 2017 Should look like this if you loaded the unzipped file. If not restart. Quote Link to comment Share on other sites More sharing options...
tanya53 Posted September 21, 2017 Author Share Posted September 21, 2017 Thank you! It worked perfectly, I have been trying to get this to work for hours, you have no idea how happy you have made me. JCPalmer 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted September 21, 2017 Share Posted September 21, 2017 Be sure to mark the topic answered. That is done by adding a "solved" tag to the first post of the topic. The first post in Question is pinned to discuss this for more. 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.