Can't get PBR materials quite right

Hello,

I am trying to use textures from ambientcg.com but my results aren’t quite right. For the texture, I have the following available:

Roughness
NormalGL
Displacement
AmbientOcclusion
Color
Metalness

The result they get (with what I believe to be is threejs):

Can see the texture applied by clicking on “Shading preview” below the image.

Any help would be greatly appreciated!

Also, the applyDisplacement function (commented out) is not working, but I can get it to work locally.

Welcome aboard!

One difference is that their environment texture is quite bright. I’ve used the “studio” env map in the PG below, but it’s still not as bright as their.

For the displacement map, you need to tessellate the geometry quite a bit: in the ambientcg link you provided, the cube is made of 3M triangles! In Babylon, you can use Mesh.increaseVertices to tessellate the geometry.

Here’s an updated PG:

2 Likes

Thank you Evgeni, this works great!

I didn’t realize it would have about 1.5M vertices, that’s very interesting and I’ll have to balance performance and looks.