It is currently Sat Aug 22, 2020 4:30 am


All times are UTC




Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Per vertex ambient occlusion
PostPosted: Fri Feb 22, 2013 10:08 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Dynasty wrote:
Each is decomposed into two separate triangles. There are two possible different ways you can partition the face into two triangles. For each diagonal of the square, take the absolute difference in lighting levels between the two vertices on the diagonal. You should partition the face so that the set of diagonals with the lowest absolute difference in lighting form the hypotenuse of the triangles.


Very interesting! But it's not clear to me if this really fixes the problem or simply minimizes the extent to which it occurs (which is also nice of course)?

And so are you doing this during surface extraction or afterwards? I would imagine that during extraction would be the easiest time to switch the order of the triangles but you'd have had to dive a little deeper into PolyVox.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Per vertex ambient occlusion
PostPosted: Sat Feb 23, 2013 2:28 am 
User avatar

Joined: Tue Feb 05, 2013 5:44 pm
Posts: 33
David Williams wrote:
Very interesting! But it's not clear to me if this really fixes the problem or simply minimizes the extent to which it occurs (which is also nice of course)?

And so are you doing this during surface extraction or afterwards? I would imagine that during extraction would be the easiest time to switch the order of the triangles but you'd have had to dive a little deeper into PolyVox.


It minimizes the problem to the point where it is unnoticeable. I am calculating the lighting level for each block after the map is loaded and saving it in each voxel. I modified CubicSurfaceExtractorWithNormals.inl to apply the lighting to each vertex and also to make sure that the triangles are divided correctly.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net