Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Converting aiUtility Normal color mode from Worldspace to Tangentspace - please help

Converting aiUtility Normal color mode from Worldspace to Tangentspace - please help

jw92663
Explorer Explorer
452 Views
0 Replies
Message 1 of 1

Converting aiUtility Normal color mode from Worldspace to Tangentspace - please help

jw92663
Explorer
Explorer

Hello,

 

I am working on a game project, and need to generate normals sprite frames along with the albedo and z depth frames. The purpose of this is to create the illusion of 3D lighting and shadows in an otherwise 2D gameworld.

 

I'm trying to follow this tutorial HERE, but I can't seem to get it to work.

 

I also tried a method where I used an aiSpaceTransform node connected to an aiUtilityNode set to color mode: Normal, to change World space to Tangent space, but connecting it to a custom AOV doesn't seem to have actually changed the render to tangent space normals, it's still stuck in worldspace normals.

 

N shader setup.png

 

Here is my shader network in hypershade, for those curious. I have a custom AOV with aiUtility_N connected to the Shader slot in the custom AOV. This still results in worldspace normals in renderview. Is this not the correct way to set it up? It's critical I get this to work for my game.

0 Likes
453 Views
0 Replies
Replies (0)