cx20

Members
  • Content count

    91
  • Joined

  • Last visited

About cx20

  • Rank
    Advanced Member

Contact Methods

  • Twitter
    cx20

Profile Information

  • Location
    Tokyo

Recent Profile Visitors

1,491 profile views
  1. @Sebavan Thank you for teaching me a link to a wonderful thread. Since I do not have enough knowledge about PBR, I would like to study. I am also interested in PBR results in other applications, so I would like to investigate if possible. Blender, Unity, Unreal, Mixed Reality Viewer, Paint 3D, Windows 10 Explorer Preview, etc. @PatrickRyan I am deeply moved by your wonderful work. I understood that the rendering of Babylon.js has about the same capability as a commercial rendering engine. I'm glad that you prepared sample code as well. I do not have much knowledge about IBL, so I'd like to try various things and study.
  2. @Sebavan Thanks for the advice. I tried PBR with Babylon.js v3.2 and v3.3, but it looks the same as v3.1. Babylon.js v3.2 + PBR Sample: http://jsdo.it/cx20/e40a Babylon.js v3.3 + PBR Sample: http://jsdo.it/cx20/45C3 Also, I made a glTF model with the same result as PBR sample and compared Three.js and Babylon.js. The result of Babylon.js looks dark. Three.js r95 + PBR glTF sample: http://jsdo.it/cx20/mvgp Babylon.js v3.2 + PBR glTF Sample: http://jsdo.it/cx20/eLqO The following is reference information. I tried to compare with several other libraries. Because each library gave different results, I did not know where the correct answer was.
  3. I tried changing the library version of PBRMaterial sample from 3.0 to 3.1. Babylon.js v3.0 + PBR Sample: http://jsdo.it/cx20/ebAu Babylon.js v3.1 + PBR Sample: http://jsdo.it/cx20/QfBY If the usage has changed, can you tell me how to fix it? var light0 = new BABYLON.DirectionalLight("Dir0", new BABYLON.Vector3(0, 0, 1), scene); light0.diffuse = new BABYLON.Color3(1, 1, 1); light0.specular = new BABYLON.Color3(1, 1, 1); for(var r = 0.0; r <= 1.0; r += 0.25) { for(var m = 0.0; m <= 1.0; m += 0.25) { sphere = BABYLON.MeshBuilder.CreateSphere('sphere', {segments:24.0, diameter:1.0}, scene); sphere.position = new BABYLON.Vector3((r-0.5)*4, (m-0.5)*4, 0); var pbr = new BABYLON.PBRMaterial("pbr", scene); pbr.baseColor = new BABYLON.Color3(1.0, 1.0, 1.0); pbr.metallic = m; pbr.roughness = r; sphere.material = pbr; } }
  4. I confirmed that the model will be displayed with the latest BabylonJS Sandbox. I have reported validation errors to the Sketchfab Forum. https://forum.sketchfab.com/t/many-validation-errors-occur-in-littlesttokyo-gltf-model/22923
  5. I tried to display the following DRACO format glb model with Babylon JS Sandbox. https://github.com/mrdoob/three.js/blob/dev/examples/models/gltf/LittlestTokyo.glb However, the following error occurred and the model was not displayed. babylonjs.loaders.min.js:1 Uncaught (in promise) Error: #/meshes/38/primitives/0: undefined at babylonjs.loaders.min.js:1 (anonymous) @ babylonjs.loaders.min.js:1 Promise.then (async) (anonymous) @ babylonjs.loaders.min.js:1 Promise.then (async) p._loadAsync @ babylonjs.loaders.min.js:1 (anonymous) @ babylonjs.loaders.min.js:1 Promise.then (async) p.loadAsync @ babylonjs.loaders.min.js:1 (anonymous) @ babylonjs.loaders.min.js:1 Promise.then (async) l.loadAsync @ babylonjs.loaders.min.js:1 (anonymous) @ babylon.js:1 f @ babylon.js:1 n.onload @ babylon.js:1 load (async) m.ReadFile @ babylon.js:1 P._loadData @ babylon.js:1 P.Append @ babylon.js:1 P.Load @ babylon.js:1 (anonymous) @ babylon.js:1 P.LoadAsync @ babylon.js:1 n.reload @ babylon.js:1 n._processReload @ babylon.js:1 n.loadFiles @ babylon.js:1 n.drop @ babylon.js:1 e._dropHandler @ babylon.js:1 I confirmed that it can be displayed with BabylonJS Sandbox if it is a normal glb file which is not DRACO format. https://sketchfab.com/models/94b24a60dc1b48248de50bf087c0f042
  6. BTW, how can I add a "solved" tag to this topic? I tried add a tag on the trial but it seems not to turn red.
  7. @kcoley I tested with the latest version build and confirmed that the problem was solved. Thank you very much for your response. The following is the result of exporting the model displayed at 10 times scale.
  8. @kcoley Thank you for fixing Issue. However, it seems that the latest version of glTF Exporter is not created by nightly build. This is because the timestamp is in a state one day ago. Could you check if the latest version of glTF Exporter was created? https://github.com/BabylonJS/Babylon.js/tree/master/dist/preview release/serializers
  9. The following are the main differences of the exported file.
  10. Hi @kcoley, Hmm. I tried it again, but it seems to reproduce. It reproduced with the following combination. Windows 10 Version 1803 + Chrome 67.0.3396.99 Windows 10 Version 1803 + Firefox 61.0.1 The reproduction procedure is as follows. 1. Go to the following URL. https://cx20.github.io/gltf-test/examples/babylonjs/index.html?category=tutorialModels&amp;model=WaterBottle&amp;scale=10.0&amp;type=glTF Set the scale parameter to 10. 2. Check "Debug" on the control panel 3. Select glTF menu from the inspector window. 4. Click the "Export GLB" button. 5. Download the export file. 6. Drag and drop the glb file into the glTF Viewer. https://gltf-viewer.donmccurdy.com/ 7. Please look at the display result.
  11. I understood what kind of situation it will go wrong. I am changing the scale of the model in the sample program displaying my glTF, but it seems that exporting can not be performed correctly if it is not 1.0. NG : https://cx20.github.io/gltf-test/examples/babylonjs/index.html?category=tutorialModels&amp;model=WaterBottle&amp;scale=10.0&amp;type=glTF OK : https://cx20.github.io/gltf-test/examples/babylonjs/index.html?category=tutorialModels&amp;model=WaterBottle&amp;scale=1.0&amp;type=glTF However, I do not know how to fix it. Are there any advice? https://github.com/cx20/gltf-test/blob/master/examples/babylonjs/index.js#L76 parentMesh.scaling = new BABYLON.Vector3(modelScaling.x * scale, modelScaling.y * scale, modelScaling.z * scale);
  12. I confirmed that this problem was solved with the inspector of Babylon.js Sandbox. https://sandbox.babylonjs.com/ The version of Babylon.js is v3.3.0-alpha.12. However, downloading the latest version of babylon.glTF2Serializer.js from the repository of Babylon.js and testing it locally did not seem to work properly for some reason. https://cdn.rawgit.com/cx20/gltf-test/a8d9825ff50b29b50d545548c9e0ba1cc0380732/examples/babylonjs/index.html?category=tutorialModels&amp;model=WaterBottle&amp;scale=10&amp;type=glTF The version of Babylon.js is v3.3.0-alpha.12. There should be some difference, but I have not yet arrived at the cause
  13. @kcoley I tried converting about WaterBottle.gltf. It seems that a different validation error has occurred. https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/WaterBottle
  14. @kcoley Thank you for your response. I confirmed that the glTF Validation error has been resolved in the latest build.