double post, can't find a button to delete it..
Show differencesHistory of post edits
Posted 14 February 2013 - 03:47 AM
Hey, I just came a little bit further using the code in my first post. It turned out I gave a wrong inverted projection matrix. I fixed that, I guess. At least my screen isn't black anymore :-D This is what it looks like:
My guess is there is something wrong with my depth texture. When I view it, all the spheres are just white except when I come really close. That would explain why my normals are black inside the spheres. There is no difference in the depth, so my derivatives will be zero and so will be the calculated normal.
I don't think that I want to let the normals face the light. I just want to have the normals on my spheres so I can use them and their position to shade the surface.