godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.06k stars 20.19k forks source link

Heightmap does not excute use when inserted in standardmaterial3D of a mesh #87104

Open intendoitch opened 8 months ago

intendoitch commented 8 months ago

Tested versions

v4.2.1.stable.official [b09f793f5] it also does not wok on v4.1.2

System information

Godot v4.2.1.stable - Windows 10.0.19045 - GLES3 (Compatibility) - GeForce GT 720M () - Intel(R) Core(TM) i7-4712MQ CPU @ 2.30GHz (8 Threads)

Issue description

Heightmap does not excute use when inserted in standardmaterial3D of a mesh.

The heightmap was expected to be shown on the mesh after height was enabled and the heightmap inserted the a standardmaterial3D. image

During the test triplanar was disabled and normal map function works fine. All scale of the height map and UV1 was changed but not thing changed for the height map.

This was tested on CSGmesh3D, Meshinstant3D and imported blender file with .blend

The 2 heightmap were tested, one was created using material maker export to godot format, the other was a noise texture from fastnoise within godot.

Steps to reproduce

  1. create new CSGmesh3D
  2. create new plane mesh in property tab
  3. create new StandardMaterial3D in material option
  4. click the new material and enable height map
  5. insert texture for height map by noise texture fastnoise or sample texture from computer

Minimal reproduction project (MRP)

N/A

Calinou commented 8 months ago

The result of a heightmap is only visible if you have an alebdo or normal map in the material. The heightmap doesn't create new geometry, so it has no visible effect otherwise, even if viewed from an oblique angle.

intendoitch commented 8 months ago

In response to your comment, when i test this an albedo and a normal map image were inserted in the material with normal map enabled. It was tested individually with only the albedo and the normal map. Here a file i was using for your reference test room 1.zip, the file was newly created so its in presets and the material is also imported from material maker.