-
Notifications
You must be signed in to change notification settings - Fork 31
Inverted normals, metal/gloss not appearing as expected. #13
Comments
@willeastcott I made a comparison with the following libraries. PlayCanvas seems to have black shoes. Is it because IBL or light setting is different? @jehinrichs This model is very interesting. If there is no problem with the license, will it be possible to provide it as a sample in Khornos' glTF Sample repository? |
The material definition in the glb file is: As you can see, the baseColorFactor values are tiny - essentially a very dark brown. I don't know why the rendering for Babylon and Three have brought the brightness of the color up. @jehinrichs, as the author of the model (presumably), what result were you aiming for? To be honest, the diffuse texture is a bit weird. Almost looks like an AO map. |
Hello, My name is Yuki Shimada, a friend of @cx20 . I'm a 3D developer ( 'GLBoost' WebGL library author).
You mean the 'Shoe_Shell_Diff.jpg'? But, I have no idea why the results of Three.js and Babylon.js looks like so bright. (source code reviews are needed if we want to find out the cause.) Anyway, at the present time, The world's WebGL libraries are still developing in PBR support. I think that raising a problem to the dev community of each WebGL library about the reproducibility of PBR is certainly a good thing for the whole. 😉 |
It may be my mere thought. After all, it is necessary to investigate carefully. |
cx20, I have no problem with the shoe being included in the Khronos collection. It was a test I did to show a client how a shoe similar to his product could look. The shoe data came from a scan. I retopoed it in Modo but I had to handpaint the normal maps, ao maps, and diffuse because the scan data was rough. The shoe I used was a 'Stacy Adams' brand that my boss picked up at a store nearby, so I included the logo into the diffuse maps and a stencil map for the logo inside the shoe. If the logos are a rights issue let me know and I can get you a version without any 'Stacy Adams' text. P.S. I also used Modo newly included glTF support to export the glTF and glb files. |
@jehinrichs If you can cooperate with providing sample models, please PR the following contents to glTF-Sample-Models.
|
OK, the problem was that PlayCanvas' pc.StandardMaterial expects you to set colors in sRGB space, whereas glTF supplies them in linear space. Using See: 1c74955 |
Will,
Added an example of a glb I created in Modo. It's a glTF 2.0 file. Tested this at:
https://sandbox.babylonjs.com/
https://gltf-viewer.donmccurdy.com/
and on Facebook and I'm getting pretty consistent results there.
Using the PlayCanvas viewer app the model is appearing but the normals seem to be inverted and the metal/gloss isn't appearing correctly across the various materials in the model. I enclosed the files.
shoe.zip
The text was updated successfully, but these errors were encountered: