since the node material I created in nme fits my needs I tried to export the code and use it in my project. I noticed that the material doesn’t even look close to the pbr material but I can’t figured out why.
The preview in nme looks fine but using the code or parsing the material via snippet breaks it. This is not related to my code because it also happens in pg.
Sorry @Evgeni_Popov that I come back with this but I put the node pbr material in direct comparison to a normal pbr material and it still looks slightly different. Is there still something I miss? I created a pg for it here: https://playground.babylonjs.com/#SD96UQ#10
By default, the PBR material is taking the metallic value from the red channel of the metallicRoughness texture, the roughness from the alpha channel and the occlusion from the occlusion texture.
Since this post still fits to the topic of a weird node material behavior I didn’t want to create a new topic. I encountered another problem that I think is very strange.
I want to blend two normal maps and the result in nme is exactly what I want:
So I tried to use the node material in my local project but that wasn’t possible. So I created a pg to check if the fault is part of my code. Parsing the nme to the exact same mesh lead to this result:
There is some kind of influence of the normal map but it is nothing in comparison to the nme one. So I wonder what is different, why is that happening. You previous answers were very helpful, @Evgeni_Popov. Do you have an idea what is going on here?
Indeed it looks better after adjusting the texture scale. But there has to be something something else that causes this behavior. I want to use the first normal map as a tileable material so adjusting the scale is no problem, but the second normal map is supposed to wrap the model to add some detail.
This problem is not happening if I export the model with materials. So I made a test using regular pbr material. That works fine with the same normal map and same scale. So I really think it has something to do with the node material. Here is the comparison: https://playground.babylonjs.com/#SD96UQ#28 (first & second normal map are working fine with pbr)