1

Currently I am trying to do some bump mapping but would like to know how to find the tangents of a flat surface. I have already defined my normals but not sure about tangents, I have drawn a diagram and would like some confirmation on whether this is correct or not.

T representing tangent and N representing normals enter image description here

DorkMonstuh
  • 819
  • 2
  • 19
  • 38

1 Answers1

3

Here is a link for you showing pretty pictures for tangents and explaining why certain directions for tangents are chosen. Keep in mind that any vector that is perpendicular to the normal is a valid tangent (an entire circle of vectors around the normal that will travel along the tangent plane.) Therefore, your diagram is technically correct. The tangent (and bitangent) vectors aren normally chosen to move along the positive U and V direction of the texture at right angles to each other though to simplify bump/normal mapping. See the link.

Michael Dorgan
  • 12,453
  • 3
  • 31
  • 61