XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

Distortion of Queried Virtual Shadow Maps

Last post 04-23-2008 11:38 AM by akira32. 0 replies.
  • 04-23-2008 11:38 AM

    Distortion of Queried Virtual Shadow Maps

    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

Page 1 of 1 (1 items) Previous Next