游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1258|回复: 0

Distortion of Queried Virtual Shadow Maps

[复制链接]

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
发表于 2008-4-23 23:47:00 | 显示全部楼层 |阅读模式
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)


  1. technique TShadowQVSM_ADPATIVE3 //UpdateShadowResultTextureForDeferredShading
  2. {
  3. pass p0
  4. {
  5.   VertexShader = (VsTextures[bUse3D_Way]);
  6.   PixelShader  = compile ps_3_0 UpdateShadowResultTextureForDeferredShadingPS();
  7.   
  8.   ZWriteEnable=FALSE;//RenderState.ZBufferEnable = true;
  9.   ZEnable=FALSE;//RenderState.ZBufferWriteEnable = true;
  10. }
  11. }
复制代码


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

sf_2008423234654.rar

69.51 KB, 下载次数:

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-22 17:52

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表