<div dir="ltr"><div dir="ltr">I faced the same problem within Cycles 4D integration, problem is Cinema4D is Y axis up (left handed coordinate system) and Blender is Z axis up (right handed coordinate system), I guess you already use Mikk tangent space to generate tangent data.<br>what I did to solve this: in mikk_set_tangent_space , I use -ve sign, not a perfect solution, you will find significant bugs in vector displacement node for example (even with <a class="gmail_plusreply" id="plusReplyChip-0">+ve sign).</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 18, 2019 at 9:26 AM Prayaag Kasundra <<a href="mailto:prayaag@decorastudio.com">prayaag@decorastudio.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
Hello all, </div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
We were trying to setup glTF PBR workflow using principled_bsdf in our Cycles Standalone integration. Everything is fine. The only problem is if we use normal_map node with tangent space, mesh turns black. We were testing using standard glTF model named Boombox
 from glTF repo. </div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
I read that if subdivision modifier is there then tangent space normal map will make it black. But that's not the case in our cycles standalone integration. (We even tried with interpolation="flat" on mesh node if smooth subdivision could be an issue).</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
Thanks, </div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
Prayaag</div>
<div id="gmail-m_2657406269025066465signature">
<div id="gmail-m_2657406269025066465divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,sans-serif"></font></div>
<p style="margin-top:0px;margin-bottom:0px"></p>
<p style="margin-top:0px;margin-bottom:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span id="gmail-m_2657406269025066465ms-rterangepaste-end"></span></span></p>
</div>
</div>
</div>

_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</blockquote></div>