Screen space ambient occlusion (SSAO) is a rendering technique for efficiently approximating the computer graphics ambient occlusion effect in real time.
Questions tagged [ssao]
64 questions
0
votes
1 answer
OpenGL SSAO strange artifact
Trying to implement SSAO in my OpenGL app. But came up with some strange artifact. How could i solve this blackish stuff?
Here is the fragment shader for SSAO
"int KERNEL_MAX = 128;"
"uniform vec3 kernel[128];"
"uniform mat4 P;"
…

Nick Bane
- 21
- 7
0
votes
0 answers
How to apply SSAO to skybox?
In my limited experience with OpenGL.
I want to apply SSAO to skybox, but the nanosuit(the OBJ object I use) dosn't show ant texture(color). my wrong example
I am searching for a long time on net. But no use. Please help or try to give some ideas…

heyanbai
- 27
- 4
0
votes
1 answer
Three.js SSAO on a smooth mesh produces flat-shaded results
I am using Three.js r97 and in my scene I have a mesh using BufferGeometry with valid normals. When I am setting material.flatShading = false I see a smooth mesh, but when I apply SSAO postprocessing to this mesh…

Anton Bagayev
- 43
- 9
0
votes
1 answer
SSAO & Shadow mapping | Shadows do not work with the SSAO
The SSAO in our engine seems to be working, however I cannot get the SSAO to work with shadow mapping. Here is a screenshot of the bug I am currently having when shadows are applied....
With shadows applied
But also, depending on the camera view and…

Charl1e
- 75
- 1
- 9
0
votes
1 answer
Incorrect depthTexture with SSAO
I’ve been puzzled lately as I’ve been attempting to get a THREE.DepthTexture to work with the Ambient Occlusion shader. I’ve had it working before with RGBA unpacking, but after reading about Matt Deslauriers’s project, Audiograph, I decided to…

Jason
- 4,905
- 1
- 30
- 38
0
votes
1 answer
OpenGL Computing Normals and TBN Matrix from Depth Buffer (SSAO implementation)
I'm implementing SSAO in OpenGL, following this tutorial: Jhon Chapman SSAO
Basically the technique described uses an Hemispheric kernel which is oriented along the fragment's normal. The view space z position of the sample is then compared to its…

Lucas C.
- 59
- 4
0
votes
0 answers
Calculating view space normal instead of world space
I hope you can help with this. I am currently using a deferred renderer and am trying to implement SSAO but that needs view space normals and I currently have world space normals, I am trying to work out how to convert them but keep getting…

Stuart Clark
- 13
- 5
0
votes
1 answer
ThreeJS SSAO with SSAA
i'd like to integrate the SSAO-Shader (Screen Space Ambient Occlusion) into my antialiasing render stack (Super Sampling Anti-Aliasing). The AA is necessary for high-quality rendering, the default antialiasing delivered by my gpu isn't always…

Thronella
- 111
- 1
- 6
0
votes
1 answer
Three.js post process: FXAA does not work with SSAO enabled
In this simple test scene, I need SSAO and FXAA effects composed together, but I can't get it work. When SSAO is enabled, if I also enable FXAA the render gets black.
In the fiddle, if you uncomment composer.addPass(FXAA_effect); you'll see the…

Ale_32
- 648
- 1
- 6
- 16
0
votes
1 answer
SSAO incorrect at z = 0 and at distance
So I tried to implement SSAO, but it is not working as intended.
It seems to split at Position z=0 (worldspace), there is a white Line at position z=0. Also the Occlusion there doesn't look right.
Plus at greater distance, so when moving the…

PuRe
- 179
- 2
- 13
0
votes
1 answer
OpenGL OGLDev SSAO Tutorial Implementation Fragment Shader yields Noise
TASK BACKGROUND
I am trying to implement SSAO after OGLDev Tutorial 45, which is based on a Tutorial by John Chapman. The OGLDev Tutorial uses a highly simplified method which samples random points in a radius around the fragment position and steps…

Nikole
- 322
- 3
- 17
0
votes
0 answers
Custom ssao in Three.js
I am trying to finish a ssao shader from a tutorial: http://www.nutty.ca/?page_id=352&link=ssao
I use multi-pass render in three.js.
There is a similar question in stackoverflow SSAO artefacts in Three, and I find we learned from the same…

yongnan
- 405
- 7
- 20
0
votes
0 answers
DirectX 9 HLSL SSAO?
I need a DX9 HLSL SSAO shader, but I have only limited knowledge of shaders. I'm trying to learn so that I can write one, but it's a steep curve.
I don't understand most of the theory of SSAO, so any in-depth explanations would be great.
While I…

Clonkex
- 3,373
- 7
- 38
- 55
0
votes
1 answer
ThreeJS SSAO Shader w/ Skinned/Animated Models
Is the SSAO shader included with ThreeJS compatible with skinned/animated models? I've implemented the SSAO shader in my sandbox here:
http://www.titanpass.com/game_development/my_first_game/index.html
Oddly, you will notice a kind of white shell…

Kevin Bikhazi
- 11
- 2
0
votes
2 answers
Three.js - SSAO defect transparent area
I've been trying to add SSAO into my game, per this SSAO EXAMPLE
Unfortunately, my transparent trees now defected:
Please advise on how to fix it.

eldad87
- 195
- 1
- 13