Harry
  • Member for 8 years, 4 months
  • Last seen more than a month ago
SSAO, depth buffer linearization (?)
Accepted answer
5 votes

Solution I used good algorithm for depth linearization but I didn't convert depth to NDC first: const float near = 0.1; // projection matrix's near plane const float far = 90.0; // projection matrix'...

View answer
Shadow mapping with deffered shading for directional lights - shadow map projection problem
3 votes

I've already found some time and solution to my problems and I want share it with you. Maybe it will help someone: float distFromCentroid=ACamera.far(); camera.setLookAt(frustum_centroid+dir->...

View answer
Cascaded shadowmapping problem with split distances
Accepted answer
2 votes

I had similar problem to yours. And I think that you can have something wrong in two places: Bad light view projection matrix. You should make some preview of each cascade and check if shadow map ...

View answer
Sun model matrix
Accepted answer
1 votes

The code was ok. Start direction depends on the sun quad coordinates. I changed it to [0, 0, 1] and I got expected result. I also moved the sun quad by its direction. Otherwise I was unable to scale ...

View answer
Passing array to uniform in glsl error
1 votes

I checked another simple project where passing array to uniform works and checked what CodeXL is showing. And again only first value was ok. So I believe that this is some kind of bug/limited ...

View answer
Reading from depth textures always returns 1
1 votes

I have the same problem with preview of depth textures, but not from code level, but from CodeXL from AMD. I'm not 100% sure but maybe they try to draw textures in the same way as you. My solution to ...

View answer
World position reconstruction from depth fails when viewport size does not match window size
Accepted answer
0 votes

Looks like I found the solution and it was pretty obvious but I did not found similar case in any website which mentions about position reconstruction. In my code I used texture coordinates computed ...

View answer
Render-to-texture doesn't work on nvidia cards. OpenGL 3.3
0 votes

Thank you Stephane for your answer. It helped me find the real problem source. I'll explain it in this answer and will provide short answers to your post. Maybe it will be useful for someone. My AMD ...

View answer