Jump to content
  • Advertisement

DX11 Port of Rastertek Tutorial 42 Soft Shadows showing black screen

Recommended Posts

I finally ported Rastertek's tutorial # 42 on soft shadows and blur shading. This tutorial has a ton of really useful effects and there's no working version anywhere online.

Unfortunately it just draws a black screen. Not sure what's causing it. I'm guessing the camera or ortho matrix transforms are wrong, light directions, or maybe texture resources not being properly initialized.  I didnt change any of the variables though, only upgraded all types and functions DirectX3DVector3 to XMFLOAT3, and used DirectXTK for texture loading. If anyone is willing to take a look at what might be causing the black screen, maybe something pops out to you, let me know, thanks.



Also, for reference, here's tutorial #40 which has normal shadows but no blur, which I also ported, and it works perfectly.



Share this post

Link to post
Share on other sites

since your using d3d, visual studio has a graphics debugger which you could use to check all the values on the gpu, like constant buffers for example. You'd also be able to debug shaders too, to make sure your getting the values you expect within your shaders

click debug->graphics->start graphics debugger

then press the print screen button to take a snapshot of a frame. double click that frame and it'll open up the graphics debugger

Share this post

Link to post
Share on other sites

Thanks very useful to know. I dont see the Graphics debugger in my toolbar. This old port still uses d3dcompilefromfile to compile the shader files, which have .ps and .vs extensions and they arr marked as does not participate in build. Do I need to change them to hlsl to use graphics debugger? Also w graphics debugger can I look inside an id3d11shaderresourceview pointer? Bc while debugging in visual studio you can only tell if that kind of pointer is null or not, but cannot check if the daya is garbage. Thanks again.

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!