Get Normal Maps of a scene

  • Posts: 7
2 years 2 months ago #1 by Cypher
Hi

Is there any way to get the normal map of a scene just like the depth map?

Something like this:



Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 3750
2 years 2 months ago - 2 years 2 months ago #2 by crosire
It's easy to derive screen space normals from depth data. MXAO does this for instance ( github.com/crosire/reshade-shaders/blob/master/Shaders/MXAO.fx ). But all of that is screen space, not world space, so they aren't stable if you move (but still useful for some algorithms).
The following user(s) said Thank You: Wicked Sick, Cypher

Please Log in or Create an account to join the conversation.

  • Posts: 7
2 years 2 months ago #3 by Cypher
Thanks for the suggestion.
I tried modifying MXAO for extracting Normals like the image in the first post but ended up with these which are semantically wrong (They don't show the direction of surfaces in different colors):



Please Log in or Create an account to join the conversation.

  • Posts: 1221
2 years 1 month ago #4 by Marty McFly
Because that's the AO channel. That's how SSAO looks like.
The following user(s) said Thank You: Cypher

Please Log in or Create an account to join the conversation.

  • Posts: 7
2 years 1 month ago #5 by Cypher
Thanks... Is there any way I could get the Normal Maps? I have barely programmed Shaders before but if its possible then I just need a little guide on where to start... I was actually hoping that there might be a Reshade Filter for that already...

Please Log in or Create an account to join the conversation.