Jump to content
  • Advertisement
Sign in to follow this  

[Resolved]Calculating the tangents for a group of vertices, texture uv and a normal

This topic is 4792 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

Does anyone know a simple way to calculate the tangents for a group of vertices, given that they all share the same normal but have different texture uv? I cannot use the triangle method because some groups have 4 vertices. [Edited by - CadeF on October 8, 2005 8:02:01 AM]

Share this post

Link to post
Share on other sites
Hi there CadeF,
How are you doing?

The Problem
Calculating tangents for a set number of vertices.

The Solution
You can use 2 approaches that are very common,
1st approach would be to calculate the tangents using some mathematical equation.
This equation can be found in the resources provided here.
Tangent and BiNormal calculations.

The other approach would be to actually use the D3DX methods provided with the SDK. D3DXComputeTangentFrame(), this will compute the Compute tangent, binormal, and normal vectors for a mesh.

I hope this helps buddy.

Share this post

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!