Jump to content

PBR issue


Hersir
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...