Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Poisson-disk shadows filtering

4: Adsense

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
No replies to this topic

#1 wh1sp3rik   Members   

248
Like
0Likes
Like

Posted 05 April 2013 - 11:47 AM

Hello,

 

I am trying to understand, how this technique is working.

 

I am using standard PCF technique

 

// PCF 3x3
for(int x = -pcf; x<=pcf; ++x )
{
   for(int y = -pcf; y<=pcf; ++y )
   {
	 float realDepth  = shadowTexture.SampleLevel(ss,float2(lightWorldPosition.x*0.5+(cascade*0.5)+shadowTexel.x*x, -lightWorldPosition.y+shadowTexel.y*y),0 );
	 if( lightWorldPosition.z > realDepth+bias ) {} else shadowFinalColor += 1.0;
   }
}

shadowFinalColor/=(2*pcf+1)*(2*pcf+1);

 

But for good looking shadows, i have to use higher pcf values, which is not a good way. Also, my code can be better i know, it¨s just for testing.

What's a easiest way to get possion.disk filtering working ? I will be happy with some snippets.

 

thank you very much !


DirectX 11, C++





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.