Sign in to follow this  

Tangent Binormal Normal

This topic is 1678 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Everyone !

 

I review the code written before, I just forgot one theory of  "normal mapping" tech.

 

From lighting theory point, When I need to lighting a object, object must has normal information, that's enough.

 

But in "normal mapping" tech, why I need tangent and binormal ? If I caculate lighting using normal map's data straight, is that really wrong ? 

 

I make a water demo with high light, that is using 2 normal map, I using those data for lighting straight, the vision result I cant see something wierd ? Is that wrong in theory ?

Share this post


Link to post
Share on other sites

You need tangent and binormal in bump mapping because they, alongside normal vector, construct the basic coordinate system in which real normal to the surface point lies. You need it to emulate very small "fake relative to the light" cliffs of this surface.

Share this post


Link to post
Share on other sites

Yeah, that'll can work fine for a flat water plane, because your water surface normal/binormal/tangent will just end up being the identity matrix.

 

But, say, if you introduce physical waves (where the water vertices are actually displaced), then you'll need to figure out the proper normal/binormal/tangent to get things to look right.

Share this post


Link to post
Share on other sites

A water plane aligned with the XZ plane isn't going to match the coordinate space of a tangent-space normal map unless you swap Y and Z. You will probably also need to negate on or both values depending on how your coordinate system is setup.

Edited by MJP

Share this post


Link to post
Share on other sites

A water plane aligned with the XZ plane isn't going to match the coordinate space of a tangent-space normal map unless you swap Y and Z. You will probably also need to negate on or both values depending on how your coordinate system is setup.

 

That's a good point, but even so, he still won't need to use a tangent + bitangent.

Share this post


Link to post
Share on other sites

Oh, guys, thank you all !

 

I think I've remind the reason about that, I read the old book just now, and the 1st chapter is about physical wave. There is information about tangent & binormal theory.

 

Book - GPU Gem 1 By nVIDIA

Share this post


Link to post
Share on other sites
Sign in to follow this