Original Post
I am playing around with planet rendering (again), and have hit a weird bug to do with normal mapping. My normals are continuous across the sphere:
But my tangents are not:
And nor are my bitangents:
Which leads to a normal-mapped result like this:
The sphere is really an exploded cube, which explains why only a certain face has trouble, but I can't for the life of me find the error. I have made sure that the tangents and bitangents lie along the texture U,V coordinates (which are tested to be correct), and have tried all combinations of rotating/flipping the tangents and bitangents on the affected faces. If anyone has any ideas, they would be most welcome!
But my tangents are not:
And nor are my bitangents:
Which leads to a normal-mapped result like this:
The sphere is really an exploded cube, which explains why only a certain face has trouble, but I can't for the life of me find the error. I have made sure that the tangents and bitangents lie along the texture U,V coordinates (which are tested to be correct), and have tried all combinations of rotating/flipping the tangents and bitangents on the affected faces. If anyone has any ideas, they would be most welcome!




