Mikk TSpace Normal shader

Component:YafaRay Core
Category:feature request
Assigned:David Bluecame

Blender's and Xnormal's standard MikkTSpace tangent space normal maps are not rendered correctly, likely a problem with the tangent space calculation.

Images attached, BI vs Yafa comparison.

Wanted to attach .blend, bug tracker won't let me - "The selected file yafanormaltest_s.zip could not be uploaded. The file is 667.29 KB which would exceed your disk quota of 1 MB."

Windows 7 x64, Yafaray 1.5.0 Stable, Blender 2.67b official

yafanormaltest_yafa.jpg39.89 KB
yafanormaltest_bi.jpg38.39 KB



I do not see difference between both images.

Btw.., it is more practical to publish first these messages in the forum. There, more people can read them and contribute cross-checks and additional tests, before deciding if it is a bug, or a mistake of procedure.


There's an announcement in the forums to use the bugtracker, so that's exactly what I did. I've seen this type of artefact often in games and it's almost always due to tangent space mismatch, so I'm pretty confident it's a bug. (Unless you've simply chosen to sync the normal map tangents with some other app, like Max or Maya, in which case providing an option to use mikktspace would still be desirable)

It's true that it isn't so easy to spot the problem areas just looking at them, but they're easy to see if you flip between the two images back and forth quickly. Also, only some of the triangles really show the error because there's always the chance that the mikktspace tangent and yafa tangent match by coincidence. Look closely at the side of the base and the panel just below the screen in particular.

You can grab the mikktspace tangent calculator here:



And read more about it here:



Priority:normal» critical

Can you please use dropbox to share the scene please or any cloud storage service?



Priority:critical» normal


Title:Normal maps don't render correctly» Mikk TSpace Normal shader
Category:bug report» feature request
Status:active» postponed



I think this cannot be considered a bug. From what I've read Mikk TSpace is a standard for Normal representation, increasingly becoming the industry standard. Blender uses it, acording to its documentation, but It has not been supported by many major render engines until recently.

Some interesting links:






So, I will consider this a feature request, and unfortunately it will be in the "postponed" list for now due to low time and resources to implement this.


Assigned to:Anonymous» David Bluecame
Status:postponed» active


Status:active» postponed