unicomp21 Posted March 25, 2016 Share Posted March 25, 2016 Could someone clue me in on how the fsign and tangent in the normal map (ie writing out the bitmap)? Is fsign in the alpha component? Or am I way off base? The intention is to use the normal maps in babylon.js, which I believe is already using the mikkt blender format? I need to encode these normal maps myself. https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/mikktspace.h Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 25, 2016 Share Posted March 25, 2016 Hey...here is how we use the normal map: https://github.com/BabylonJS/Babylon.js/blob/master/src/Shaders/ShadersInclude/bumpFragmentFunctions.fx#L28 Quote Link to comment Share on other sites More sharing options...
unicomp21 Posted March 26, 2016 Author Share Posted March 26, 2016 The bump normal getting pulled from the texture, how do I compose if from the m_setTSpaceBasic callback? https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/mikktspace.h Quote Link to comment Share on other sites More sharing options...
unicomp21 Posted March 26, 2016 Author Share Posted March 26, 2016 Nevermind, just realized it's giving me the coordinate system within which I can create the bump vector. Thanks! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
unicomp21 Posted March 29, 2016 Author Share Posted March 29, 2016 Any chance there is a javascript version of mkktspace.[ch]? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 29, 2016 Share Posted March 29, 2016 No idea Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.