Noise texture 'as_normal_map' bug? (Your first 3D shader tutorial)

Godot Version

Godot_v4.3-stable_linux.x86_64

Question

edit: Solved, kinda. There’s already an issue on github about this:
https://github.com/godotengine/godot-docs/issues/10086

I’m new to shaders, I started doing the tutorials in the docs and in the “Your first 3D shader” one I encountered an issue when trying to use a noise texture as a normal map.

As you can see on the image, mine looks like it uses a normal map with a higher frequency noise, it has a lot of small bumps where it shouldn’t have. The noise texture for the normal map is the same as the one being used to generate the geometry, everything is fine until I check the ‘as normal map’ box, then it seemingly turns to a different noise texture…

I tested the tutorial in Godot 4.0 and I didn’t have this issue, so I think either something changed since 4.0, and it’s not covered in the tutorial, or it’s bugged?

Most likely a scale issue, since the mapping on the normap map is based on the vertex position x/z and some math, I wonder if the size of your plane is just a good deal larger? If not check the NoiseTexture res or scale?

Otherwise show some screens of your shader and some of the noise settings, and maybe the data on the plane mesh.

1 Like

Thanks for trying to help! I just found this issue on github, this is what I’m having, too. My plane is 2x2, like in the tutorial, and the same settings as in this issue. So it’s probably something in godot:

1 Like