Advertisement

Blender API: mesh.getTangents()?

Started by September 07, 2010 03:29 PM
-1 comments, last by Wilhelm van Huyssteen 14 years, 3 months ago
Hi.

im trying to store a tangent for each vertice in my export script so i can use bumpmapping in my game but im having some trouble. Blender provides a method named "mesh.getTangents()". Can anyone here thats familiar with this method from the Blender API help me understand how i need to "convert" what it gives me to what i need.

The API documentation has this to say about the method: "Calculates tangents for this mesh, returning a list of tuples, each with 3 or 4 tangent vectors, these are alligned with the meshes faces."

in the end i need 1 tangent vec3 for each vertice.

I hope i made myself clear.

Thnx in Advance!

EDIT: Now that i think about it, this question might have been better of in "graphics programming and theory". but im not sure since its regarding Blender.

This topic is closed to new replies.

Advertisement