#Normal texture works incorrectly, showing pitch black "shadows" instead of.. normal shadows

45 messages · Page 1 of 1 (latest)

wooden lion
#

I followed this tutorial. The normals looks correct in blender, what could i be doing wrong?
https://www.youtube.com/watch?v=VjuyfBaryu8

How to make a low resolution 3D dungeon environment for Godot 4.

Krita: https://krita.org/en/download/krita-desktop/
Laigter: https://azagaya.itch.io/laigter
Blender: https://www.blender.org/download/

Follow me elsewhere to keep up with whatever I'm working on!
Twitter: https://twitter.com/DevLogLogan
Mastodon: https://mastodon.gamedev.place/@...

▶ Play video
#

how it looks in blender

#

how it looks in godot (pitch black shadows, no highlights?)

spiral haven
#

It can be that the normal map is not what Godot expects. Blender can handle different kinds of normal maps that Godot can not.
For Godot bumps in the normal map should be red on the right and cyan on the top. It can also be that your normal map is not using full Z-range.

wooden lion
spiral haven
#

In Laighter it looks like you should invert both X and Y-axis for the normalmap if I understand it correctly

#

no wait, I downloaded it and it is different from the screenshots on GitHub, the normal axes seem to be correct

#

if you share the texture, I can have a look for you

wooden lion
#

sure, thanks 🙂

#

he inverted the X & Y on the floor tiles only, cus that looked better on his tiles

spiral haven
#

Looks fine as far as I can tell, It try it

wooden lion
#

X&Y seems fine for me, the pitch black areas should be shadows, they are just too dark i guess

#

it looks like the normal map is kinda 0 opacity or 100% opacity (black or nothing) no inbetween

spiral haven
#

Seems to work like it should

wooden lion
#

yea looks the same for you?

#

if you check my video there you will really see the problem

#

it looks wack

spiral haven
#

That looks like your mesh normals are incorrect

#

try using the same material on a built in cube mesh

#

that is what I used

#

Is your light attached to the camera?

wooden lion
spiral haven
#

try moving it to the left or right a little bit

#

or maybe slightly behind the camera

#

if the light comes to close to the wall strange things can happend

wooden lion
#

its wayy behind now and to the right, still causes the same issue

#

and really up close

wooden lion
spiral haven
#

Yes, definitely looks strange, one thing to try when normals are acting up is to turn the normal scale down

#

Do you have a lot of post processing in your WorldEnvironment? That can also cause this

#

Hey, I tried to change the material, I changed Shading > Specular mode to Toon, these textures seem to look a lot better now

spiral haven
#

On your own srceenshot, just above the normal texture in the lower right corner you can see "Normal scale"

wooden lion
#

now i just gotta figure out how to change to toon in blender, cus that option is grayed out on the imported GridMap tiles

wooden lion
spiral haven
#

I dont think you have that option in Blender

wooden lion
#

so how do i enable toon then? ;D

spiral haven
#

I havent used GridMaps in a while, I don't know