Sign in to follow this  
CadeF

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this