Jump to content
3DCoat Forums

Please add and I'll upgrade - Unity tangent basis


bngames
 Share

Recommended Posts

  • Member

Hi

Please add Unity tangent basis for normal map baking :) like the following plugin for xNormal

http://www.farfarer.com/blog/2012/06/12/unity3d-tangent-basis-plugin-xnormal/

It would help in game dev :)

Another company is going to do this, can't say who!!!

After Unity add UDK

PLEASE, PLEASE, PLEASE what my normal maps to look right in Unity!

Link to comment
Share on other sites

I found this

----------------------

icon.png

Unity Graphics Developer
avatar411_1.gif

Look at UnityCG.cginc file (in Unity.app/Contents/CGIncludes). It contains a helper macro named TANGENT_SPACE_ROTATION that builds a 3x3 matrix from vertex normal and tangent.

In Unity vertices supply normals (float3) and tangents (float4; xyz is the tangent vector and w is either +1 or -1; to determine the direction of binormal). Binormal is the cross product of normal and tangent, multiplied by tangent.w. The tangent matrix then is tangent, binormal and normal vectors as the axes.

http://forum.unity3d.com/threads/5186-Tangent-space

------------------------

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...