Questions tagged [ssao]

Screen space ambient occlusion (SSAO) is a rendering technique for efficiently approximating the computer graphics ambient occlusion effect in real time.

64 questions
2
votes
2 answers

Strange performance behaviour with SSAO algorithm using OpenGL and GLSL

I'm working on the SSAO (Screen-Space Ambient Occlusion) algorithm using Oriented-Hemisphere rendering technique. I) The algorithm This algorithm requires as inputs: 1 array containing precomputed samples (loaded before the main loop -> In my…
user1364743
  • 5,283
  • 6
  • 51
  • 90
2
votes
1 answer

LWJGL How to render SSAO

I currently have a working scene in LWJGL that renders a bunch of voxels. I'm using a VBO with all the verticies, normals, and colors of the geometry and glDrawArrays() that to the screen. I've search all over google for how to render my scene with…
NinthWorld
  • 45
  • 4
2
votes
0 answers

SSAO on json object in three.js produces black screen

i have an project and its working very good at the moment. BUT i want to add some SSAO to make it go to the next step. You find the working example here: http://www.wp11244834.server-he.de/3d-test/3d-testJUN14-JSON.php I removed the textures to…
mehne
  • 21
  • 2
2
votes
1 answer

GLSL - SSAO: Getting undesired results when fetching depth position

I am trying to implement SSAO based on this tutorial: http://john-chapman-graphics.blogspot.com/2013/01/ssao-tutorial.html. I don't seem to understand how to achieve this and I keep getting undesired results in my fragment shader. First I setup my…
Villsa
  • 81
  • 4
2
votes
1 answer

SSAO artefacts in Three

I'm really struggling to fix an issue with my SSAO shader and could desperately use some help. Basically the shader seems to work on some objects, but looks really bad on others. From the below you can see the sphere looks correct, but the cube…
Mat
  • 961
  • 12
  • 28
2
votes
4 answers

Artefacts with SSAO in Three.js only on MacBook Pro (Retina)

I'm currently using the SSAO shader provided in the Three.js examples. It works perfectly on most of my machines aside from my MacBook Pro Retina. The MBP rendered SSAO perfectly until a few weeks ago (potentially after a firmware upgrade on the…
Robin Hawkes
  • 688
  • 8
  • 24
2
votes
1 answer

How to use the three.js SSAO shader?

I'm trying to render a scene with the SSAO post-processing shader. There aren't any errors but I can't see any difference between the scene rendered with and without the SSAO pass. I initialize the renderer like this: // Create WebGL Renderer var…
MrSparkle
  • 79
  • 1
  • 1
  • 5
1
vote
1 answer

Calculating tangent in SSAO shader (learnopengl.com tutorial)

I'm trying to write an openGL SSAO shader and I'm following this tutorial https://learnopengl.com/Advanced-Lighting/SSAO I'm confused by this part of the fragment shader that calculates the tangent: vec3 tangent = normalize(randomVec - normal *…
1
vote
0 answers

View-space position of a sample point

I am working on implementing Crytek's original SSAO implementation and I have found myself stuck and confused at the part where I need to find the view-space position of the sample. I have implemented a method which I feel should work however, it…
Krellex
  • 613
  • 2
  • 7
  • 20
1
vote
0 answers

SSAO artifacts generated by random vectors

I recently tried to implement SSAO algorithm but encounter some strange artifacts. I am 99% sure that the artifacts are generated by the random vectors after a few days' tuning. Like most implementation, the random vectors are obtained by sampling a…
xubury
  • 84
  • 6
1
vote
0 answers

Crytek SSAO implementation producing odd result

I have been trying to better match my SSAO to Crytek's original implementation. Their Finding Next Gen - CryEngine 2 document states To reduce the sample count we vary the sample position for nearby pixels. The initial sample positions are…
Krellex
  • 613
  • 2
  • 7
  • 20
1
vote
0 answers

SSAO sampling from depth map causing pixel flicker issue

I was trying to implement the Crytek SSAO technique based on a shader shown in the Appendix of the following paper: Shader from paper: However, when implementing and running the shader, it kept giving me this graining look and I cannot seem to…
Krellex
  • 613
  • 2
  • 7
  • 20
1
vote
0 answers

Why does the same code work differently on a laptop monitor and an external monitor

I am using the SSAO code from learnopengl, but there are different results between my laptop monitor(LM) and external monitor(EM). EM result(Good): LM result(Bad): And when I drag the result window from LM to EM, the window doesn't change,…
heyanbai
  • 27
  • 4
1
vote
3 answers

SSAOeffect.fx from the Screen Space Ambient Occlusion XNA 3.1 example doesn't work in XNA 4.0

I'm trying to convert the Screen Space Ambient Occlusion example from XNA 3.1 to XNA 4.0. I've fixed all the problems in the source, except this strange problem in a shader file. I've gone through and fixed all the obvious problems with the shader…
acp10bda
  • 311
  • 1
  • 4
  • 14
1
vote
1 answer

SSAO working but has a weird Red colour overlay

The ssao works but there is a weird red colour overlay due to the ssao only using the red channel of course this is shown in the image below.. Red SSAO Problem However, when I do glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); the red colour…
Charl1e
  • 75
  • 1
  • 9