Sign in to follow this  
StanIAm

Mixed resolution rendering nearest depth filter

Recommended Posts

Hey guys Iam trying to combine a lowres indirect illumination texture of 256x256 pixels with a 1024x1024 highres texture. I saw this article here : http://developer.download.nvidia.com/presentations/2010/futuregameon/LouisBavoil_ModernRealTimeRenderingTechniques.pdf

 

On page 20, a technique from a game is described to combine the lowres particels of the game with the fullres rendering. Well I implemented it the same way, but I don't get a realy good result. I use 4 samples which are defined like this : float2( tex.x - lowres_texel,tex.y ) , float2( tex.x + lowres_texel, tex.y) , float2( tex.x, tex.y + lowres_texel) , float2( tex.x, tex.y - lowres_texel), where tex is the texcoord of the current highres pixel and lowres_texel = 1/256.

 

Then I going through a for loop and combine the new depthdistance to the highresdepth with the previouse ones and save the index of the sample, which has the nearest depth of all. After that I look if the sample is in the range from 0-3( that would be the 2x2 samples, and  when -1 is sampled only with the standart texcoord tex) and output the color from this sample. 

 

How could I improve it ?? Because in the paper it works realy good 

Thanks

Share this post


Link to post
Share on other sites

I got it work, but it still have some artifacts which looks not realy good. Look at the picture: [URL=http://www.directupload.net/file/d/3750/pauqa3vy_jpg.htm]pauqa3vy.jpg[/URL]

 

Now Iam using a 3x3 depth depth kernel but on some detailed geometry I still have artifacts. Has somebody an idea how to improve that ??

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