Results 1 to 30 of 652

Thread: A start on the .MESH file format

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Member Member Re Berengario I's Avatar
    Join Date
    Nov 2003
    Location
    Italy
    Posts
    336

    Default Re: A start on the .MESH file format

    I don't possess deep knowledge on normal mapping as I usually let the 3d application handle it but in this case they use directly a shader so those values (if I'm not completely wrong) are a 3x3 matrix for each mesh vertex.

    (From the second link above:)
    To use tangent space normal mapping, we need to send the tangent and bitangent vectors to the vertex shader. Then we can create a 3x3 rotation matrix from them that can be used to rotate vectors such as the light vector and half-angle vector into tangent space.
    Now we can dot these vectors with a normal from our tangent space normal map, using the same pixel shader as with object space normal mapping.


    From Caliban's post:

    To get more info about what tangent and binormal is, they should look up tangent space normal mapping as that's what we're using. Mesh needs to contain valid tangent space (normal, tangent & binormal).
    Last edited by Re Berengario I; 03-12-2007 at 03:43.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO