I’m not sure that I understand entirely how the heightmaps work inside BabylonJS, but I have searched for an answer to no avail. I can use a heightmap with a generated plane in Babylon for example, but I can’t seem to find a way to use a height map in the way that I use them within other 3D programs or game engines; as a displacement map for additional mesh geometry at rendering. Is this at all possible in Babylon?
No, at the time Babylon.js does not directly support displacement maps in the standard/PBR materials. However, you can use the node material editor to implement such transformations of vertices.
Thanks so much for the reply. Do you have an example to share of the vertice transforms that you mentioned?
This node material is using custom transforms for the vertices for eg:
Or the one used in:
OK, thank you. Whilst that’s not what I was hoping to hear, the water material is a stunning example of the possibilities with a Babylon node material. Thanks.