Sign in to follow this  
akira32

Distortion of Queried Virtual Shadow Maps

Recommended Posts

I have implemented the QVSM in C++ and DirectX. Now I have a question about resolution. PrintScreenWithArrow.png is my result of QVSM. But the place in the arrow has distortion or break in the edge if you zoom in to see. My situation is SM Size=1024x1024 the sm tile in axis=2x2 If I use the sm size of 2048x2048 and the sm tile in axis of 1x1, the distortion will not appear. So I think that is the problem in My Code of ShadowShadowResultTexureWithSmTilShadowMap(in attached file of ShadowShadowResultTexureWithSmTilShadowMap.txt) and technique TShadowQVSM_ADPATIVE3(in attached file of adaptive.txt)
 
technique TShadowQVSM_ADPATIVE3 //UpdateShadowResultTextureForDeferredShading
{
 pass p0
 {
  VertexShader = (VsTextures[bUse3D_Way]);
  PixelShader  = compile ps_3_0 UpdateShadowResultTextureForDeferredShadingPS();
  
  ZWriteEnable=FALSE;//RenderState.ZBufferEnable = true;
  ZEnable=FALSE;//RenderState.ZBufferWriteEnable = true;
 }
}

Could somebody have the same problem in your program? Or Could somebody help me to see my code and point the problem and error? PS:Attached File I put in the web: http://cid-fbeb6373d9321a7f.skydrive.live.com/self.aspx/%e5%85%ac%e9%96%8b/questions/20080423.rar

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