|

楼主 |
发表于 2009-8-7 21:13:00
|
显示全部楼层
Re:Queried Virtual Shadow Maps and Adaptive Shadow Maps complete source cod
Download website:
http://cid-fbeb6373d9321a7f.skydrive.live.com/self.aspx/BlogYahoo/DirectX9/ShadowMap%7C5Final%7C6V1ForLatex.rar
enjoy it!!!
Operation Manual
====Shadow Map Start===========================================
//ALLL
DIK_F WireFrame not for qvsm,else ok
DIK_Z NoShadowMap Mode
DIK_X CSM
DIK_C QVSM
DIK_V ASM
DIK_L linear depth distribution
DIK_SYSRQ print screen , save back buffer to png file depend mode name (in Picture directory)
//QVSM
DIK_B ASM debug mode ,show two level with green and red color
DIK_R change QVSM mode formal and teacher
DIK_Y star mode switch
DIK_N bChangeToTeach2(not use for qvsm)
DIK_M bChangeToTeach3(not use for qvsm)
DIK_U qvsm 2x2
DIK_I qvsm 4x4
DIK_O qvsm 8x8
//CSM
DIK_J AutoFindCenterPoint for CSM
DIK_H switch CSM colorful sm mode
DIK_G calculate the rect of sm (colorful sm mode)
DIK_G CalculateEffectiveSmRegion in CSM
DIK_H bColorSM in CSM(red for tree, blue for chess board)
//ASM
DIK_P ASM SaveQuadtreeTexture
DIK_F11 bChangeQuadtreeLevel for ASM
====Shadow Map End===========================================
====Shadow Volume Start========================================
VK_P SnapScreenShot, save back buffer to png
========Shadow Volume End========================================================================
=========SM and SV Both==== Start =========================================
F1=Hide UI
ENUM_CMAERA g_nModeCamera=ENUM_CAMERA_SDK;
DIK_W=front
DIK_S=back
DIK_A=left
DIK_D=right
DIK_Q=up
DIK_E=down
HOME=camera reset
Mouse Left: camera control
Mouse Middle: light control
Mouse Right: model control (only shadow volume)
V_F1:If true, it renders the UI control text
=========SM and SV Both== End ===========================================
=====Dialog Common====Start======================================
Use FlowerArray
Yes==>
Star Mode=Yes a number of flowerarray
Star Mode=No only a flowerarray
No==>single model
=====Dialog Common====End===================================== |
|