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

Started by
0 comments, last by Armadon 18 years, 6 months ago
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]
Advertisement
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.

This topic is closed to new replies.

Advertisement