Jump to content

Reflection Probes with PBRs and Max


mr_pinc
 Share

Recommended Posts

I'm trying to add a reflection probe for a few select meshes in a scene I exported with PBRs from 3Ds Max.  I've greated a simple sphere that is also reflecting the selected pieces.  The sphere works fine and is using a PBR material.  The problem is that the imported meshes don't seem to be showing the reflections even though I've assigned the reflection probe's cubeTexture to the 'reflectionTexture' property of the PBRs I've loaded.  Is there something else I'm missing?  Is there additional values that could determine why I am not seeing the reflection in the loaded meshes?  

Link to comment
Share on other sites

The naming is different in metallic roughness to fit with the GlTF convention: https://www.babylonjs-playground.com/#28G6UT#61

The conversion is documented here http://doc.babylonjs.com/overviews/physically_based_rendering_master#from-metallicroughness-to-pbrmaterial

It is not reflectionTexture but environmentTexture in the simpler materials, sorry for the confusion.

 

Link to comment
Share on other sites

I don't quite understand.  I have a scene with 10 meshes and all 10 have the same environment texture, a DDS that is effectively a skybox (the actual skybox is not visible).  I want 3 of those 10 meshes to also reflect each other along with that original environment map.  How do I combine the two?

Link to comment
Share on other sites

Hello,

The 3 meshes relying on the probe will get the environment impact from the reflected objects. Let me try to draw it in paint:

image.thumb.png.ab10622cfc3f3b8eda891d04f56718a0.png

As you can see, the triangle ends up being like it would have been using the environment + reflection as the reflection already contains the environment information,

One issue could happen if your probe can see the clear color of the scene meaning the probe would not look like the environment where nothing is rendered. For this you could add a skybox in your probe relying on the DDS file.

Hope that helps.

 

Link to comment
Share on other sites

It can not but you can add one skybox only in your probe mesh list which would lead to the desired effect.

Compositing would lead to incorrect result as it would be impossible to know how to blend, also it would be a perf sink as it would require another map + sampler + mix.

We could try on a playground if you want.

 

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...