cx20 Posted August 31, 2017 Share Posted August 31, 2017 I tried to display NormalTangentTest.gltf and TextureSettingsTest.gltf with Babylon.js 3.1 + glTF Loader. However, it seems that some of the tests that were successful at 3.0 failed in 3.1. Babylon.js 3.1 + glTF Loader result: https://cdn.rawgit.com/cx20/gltf-test/9d5e16419b22311a27e48883fc0842d1ef4f21fb/examples/babylonjs/index.html?category=tutorialModels&model=NormalTangentTest&scale=1&type=glTF Babylon.js 3.0 + glTF Loader result: https://cdn.rawgit.com/cx20/gltf-test/23556eeeac5a729a5a0fb244c58e48fb97f1c321/examples/babylonjs/index.html?category=tutorialModels&model=NormalTangentTest&scale=1&type=glTF Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 1, 2017 Share Posted September 1, 2017 Hum..this probably comes from these two lines: https://github.com/BabylonJS/Babylon.js/blob/8fbec0f2703157d95bfbb7f757c3788393b557f3/loaders/src/glTF/2.0/babylon.glTFLoader.ts#L998 Do you mind testing by settings these values to false? Thanks a lot Quote Link to comment Share on other sites More sharing options...
cx20 Posted September 1, 2017 Author Share Posted September 1, 2017 In the setting below, the display result seemed to be correct. babylonMaterial.invertNormalMapX = true; babylonMaterial.invertNormalMapY = false; Quote Link to comment Share on other sites More sharing options...
cx20 Posted September 1, 2017 Author Share Posted September 1, 2017 The following is the display result of TextureSettingsTest.gltf. Babylon.js 3.1 + glTF Loader result:https://cdn.rawgit.com/cx20/gltf-test/9d5e16419b22311a27e48883fc0842d1ef4f21fb/examples/babylonjs/index.html?category=tutorialModels&model=TextureSettingsTest&scale=1&type=glTF Babylon.js 3.0 + glTF Loader result:https://cdn.rawgit.com/cx20/gltf-test/23556eeeac5a729a5a0fb244c58e48fb97f1c321/examples/babylonjs/index.html?category=tutorialModels&model=TextureSettingsTest&scale=1&type=glTF Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 1, 2017 Share Posted September 1, 2017 Ok so we will switch to this: babylonMaterial.invertNormalMapX = true; babylonMaterial.invertNormalMapY = false; Le me check why clamp is not working anymore Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 1, 2017 Share Posted September 1, 2017 Where can I find the model you used for the texture clamp test? Quote Link to comment Share on other sites More sharing options...
cx20 Posted September 1, 2017 Author Share Posted September 1, 2017 TextureSettingsTest.gltf is located below. https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/TextureSettingsTest Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 1, 2017 Share Posted September 1, 2017 Bug fixed..Pushing the nightly in a couple of minutes cx20 1 Quote Link to comment Share on other sites More sharing options...
cx20 Posted September 1, 2017 Author Share Posted September 1, 2017 I confirmed that it is fixed by the latest version of Babylon.js + glTF Loader. https://github.com/cx20/gltf-test#agi-pbr-models Babylon.js 3.1 + glTF Loader result: https://cx20.github.io/gltf-test/examples/babylonjs/index.html?category=tutorialModels&model=NormalTangentTest&scale=1&type=glTF https://cx20.github.io/gltf-test/examples/babylonjs/index.html?category=tutorialModels&model=TextureSettingsTest&scale=0.2&type=glTF Thanks! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 3, 2017 Share Posted September 3, 2017 Thanks to YOU man! 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.