Advertisement

any tips for calculating and debuging tangent space for normal map

Started by August 15, 2017 11:12 AM
2 comments, last by KarimIO 7 years, 5 months ago

I made my obj parser

and It also calculate tagent space for normalmap.

it seems calculation is wrong..

any good suggestion for this?

I can't upload my pics so I link my question.

https://gamedev.stackexchange.com/questions/147199/how-to-debug-calculating-tangent-space

and I uploaded my code here

no normal.png

problem.png

ObjLoader.cpp

ObjLoader.h

Here two ideas to debug your stuff :

You can run a geometry shader to display the TBN at each vertex.

You can display the world space normal map instead of the final computation too.

 

 

Advertisement

You could use AssImp and then output to your own proprietary format.

This topic is closed to new replies.

Advertisement