Normal Mapping Upside Down

Started by
1 comment, last by Endemoniada 11 years ago

Hi guys,

I'm not sure if I'm calculating my tangents and binormals correctly or if my shader is wrong. Will you please give me some correct vectors for testing.

I'm using DirectX coordinates so the x-axis points right, the y-axis up, and the z-axis into the screen.

If I have a plane with normal 0,0,1 (pointing straight down the positive z-axis) what will the tangent and binormal be ? And also for a plane with normal -1,0,0 (pointing straight down the negative x-axis).

I got the calculations from http://www.rastertek.com/dx11tut20.html in case anyone is interested.

Thank you.

Advertisement

Tanget/bitangent vectors need to point in the direction that your U and V texture coordinates are increasing, so it depends on how you setup the texture coordinates of your quad vertices.

I set the binormal to point down U and the tangent to point down V and it's working nicely now. Thank you.

This topic is closed to new replies.

Advertisement