Hersir Posted July 10, 2017 Share Posted July 10, 2017 Hi, just pulled newest version of babylonjs and got some problems with PBR material for chrome, it is just black and don't use environment texture from scene anymore. Texture is created in code: this.scene.environmentTexture = new HDRCubeTexture( "environment.hdr", this.scene, ); Material is inside babylon json file part of multi material, { customType: "BABYLON.PBRMaterial", name: "material name", id: "material-id", microSurface: 0.9, reflectivity: [0.8, 0.8, 0.8], albedo: [0.02, 0.02, 0.02], environmentIntensity: 0.5, } Something changed in serialisation of material or I am missing some props in json? as it worked before Also texture is loaded. Quote Link to comment Share on other sites More sharing options...
JohnK Posted July 10, 2017 Share Posted July 10, 2017 Have you seen this ? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 10, 2017 Share Posted July 10, 2017 i ll try in 30 minutes. Sounds like a bug, i ll fix it in the morning. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 10, 2017 Share Posted July 10, 2017 It works for me on http://www.babylonjs-playground.com/#W0V72M I guess you forgot the parameter in the creation of the environment texture for the size (the 3rd one) ??? Quote Link to comment Share on other sites More sharing options...
Hersir Posted July 11, 2017 Author Share Posted July 11, 2017 @Sebavan Size is not needed as it is preprocessed with babylonjs hdr extension @JohnK Yes I have seen this, project was udated to new pbr and it was working before I tried newest babylonjs version Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 11, 2017 Share Posted July 11, 2017 Oh, the pre-processing completely changed in this version (one of the breaking changes). The documentation is being updated right now and Basically you ll simply have to pass your files through IBLBaker (open source simple environment tool) to generate DDS Files. The result looks way better: http://www.babylonjs.com/demos/pbrglossy/ Sorry again for the changes, but as you can see in the demo they are for the best. As for the documentation, I am basically fixing one of the latest issue before the release which will be done along side the documentation. Hope that helps. Quote Link to comment Share on other sites More sharing options...
Hersir Posted July 11, 2017 Author Share Posted July 11, 2017 @Sebavan Thx for info, great job on pbr, will wait than a bit for documentation 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.