Sign in to follow this  
Plerion

Unprecise ambient occlusion values

Recommended Posts

Plerion    381

Hello everyone

 

In my cube engine im using ambient occlusion to make things look better. In general it doesnt look that bad but there are some issues im not happy with. First ill show you 2 pictures. In Fig1 you can see a shader that for each vertex renders blue if the vertex is not occluded at all or red if there is at least a bit of occlusion (independent of how much). In fig. 2 you can see a regular render:

5Zmd9.jpg

 

5Zm1T.png

 

As you can see in Fig1 in general it looks good, but for example in the highlighted areas you can see that there are "lines" that look wrong. These lines are even worse if you look at figure 2.

 

I never really implemented this before so im a bit clueless where those errors come from? Is there anything i can do to prevent this?

 

Greetings

Plerion

Share this post


Link to post
Share on other sites
L. Spiro    25622

You have no replies for a reason.

It would be a good idea to at least explain how you calculate the occlusion values at each vertex.  Is it even per-vertex?  It looks that way but we really have no other information besides, “it looks wrong.”

 

 

L. Spiro

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this