Questions tagged [ambient-occlusion]

Ambient occlusion is a rendering technique concerned with the measurement of the amount of ambient light reaching surfaces.

Filter by
Sorted by
Tagged with
2
votes
1answer
58 views

How can I make an OpenGl/GLSL varying vary throughout a quad instead of a triangle in OpenGl 3.3?

I am, like many others, currently working on a block-based game in C++ and OpenGl. Recently, I added ambient occlusion support. This ambient occlusion is created by modulating the brightness of a ...
1
vote
0answers
19 views

How to import a texture to be used as occlusion map?

The same way normal maps need to be imported as "Normal map" in the import settings, how should I setup an Ambient Occlusion texture to correctly work? I've been searching around in the manual and ...
0
votes
1answer
324 views

How do you write an unlit shader which supports Ambient Occlusion?

For performance reasons, a scene might use Unlit shaders only. Is there an Unlit shader which supports Ambient Occlusion? What is the best way to achieve this look, for moving and static objects, ...
0
votes
1answer
558 views

Unity Ambient Occlusion not working with Orthographic camera

It seems like the Ambient Occlusion setting from the Unity Post Processing stack (obtained from the asset store) only works with a Perspective camera, yet I haven't ...
0
votes
1answer
353 views

Drawcall Batching with Ambient Occlusion

I'm creating a low poly 4X game that will likely have upwards of 200 unique hex tile models once everything is said and done. The colour palette consists of 16 different colours. I understand that if ...
0
votes
1answer
978 views

Unity - Ambient Occlusion artefacts

When I create two cubes from Unity > Component menu. And turn on AO the bottom cube is not shaded properly. I mean the upper cube is alright but the bottom cube does not have any shadow present. What ...
1
vote
1answer
257 views

How should I apply Ambient Occlusion from greyscale AO maps?

I've seen many tutorials on SSAO, but none for simple ambient occlusion maps. I can see myself working things out alone, as AO maps are simple greyscale maps that indicate where there should be more ...
2
votes
0answers
189 views

Unity's 'Ambient' Occlusion occludes everything. How to do it better?

I'm experimenting with custom AO solutions for Unity. While looking at the source for their built-in SSAO effect, I noticed the shader is doing this: ...
0
votes
1answer
340 views

Any reason not to combine an AO Map and Cavity Map into one texture?

If an Ambient Occlusion Map is for mapping shadows based on closeness of neighboring geometry, and a Cavity Map is for mapping smaller shadows based on angle or distance, then is there any reason not ...
3
votes
1answer
621 views

SSAO issue - surfaces darken based on camera angle

I have a strange issue in my engine where my SSAO effect will extremely darken or lighten based on my camera angle: In that example, I'm just outputting the ssao texture to the screen. The texture is ...
1
vote
0answers
170 views

Why would an ambient occlusion (AO) shader's performance be dependent on light direction?

One of my favourite games recently implemented ambient occlusion as a graphics feature, which appears to perform very well in most circumstances - except during sunrise and sunset. As someone who is ...
1
vote
0answers
475 views

How can I do ambient occlusion for simple meshes with few vertices?

I want to do ambient occlusion for some simple buildings. Since simple buildings have very few vertexes, how can I get good results? Is it possible with a per-vertex AO implementation?