Jump to content

  • Log In with Google      Sign In   
  • Create Account


Unprecise ambient occlusion values


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Plerion   Members   -  Reputation: 363

Like
0Likes
Like

Posted 26 December 2013 - 01:02 PM

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



Sponsor:

#2 L. Spiro   Crossbones+   -  Reputation: 12675

Like
0Likes
Like

Posted 26 December 2013 - 09:20 PM

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


It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums

#3 unbird   Crossbones+   -  Reputation: 4953

Like
0Likes
Like

Posted 01 January 2014 - 02:48 PM

This seems to be the shortcoming of vertex lighting combined with low resolution meshes. There was a thread in the graphics subforum about this, which I currently can't find anymore. But 0fps has a blog post which describes this exact problem - and a solution: Ambient occlusion for Minecraft like worlds.

Cheers.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS