Jump to content

gltf support and mikkt space


unicomp21
 Share

Recommended Posts

Implementation note: When tangents are not specified, client implementations should calculate tangents using default MikkTSpace algorithms. For best results, the mesh triangles should also be processed using default MikkTSpace algorithms.

https://github.com/KhronosGroup/glTF/tree/master/specification/2.0

Sorry for beating a dead horse on this one.  If babylonjs supports gltf, then it must also support the mikkt encoding, right?

 

Link to comment
Share on other sites

Yes, but I'm not sure what the performance impact is. BabylonJS currently generates tangents using http://www.thetenthplanet.de/archives/1180 (see cotangent_frame in https://github.com/BabylonJS/Babylon.js/blob/master/src/Shaders/ShadersInclude/bumpFragmentFunctions.fx). Generating MikkTSpace tangents will require doing it during load, which might or might not be worth it. But it is something that we should try at some point.

For now, the best way to get MikkTSpace is to specify tangents/normals/meshes generated with the MikkTSpace algorithms in the glTF file.

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...