• Advertisement
Sign in to follow this  

SharpDX, DX11.1

This topic is 1446 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

Can anyone please post code or direct me to an example of soft shadows or shadow mapping using DX11.1 with C#?  I'm trying to implement good shadows in a game for Windows Store using SharpDX Toolkit.  Any SharpDX example will do.  For days I have been trying to convert C++ examples but I have trouble understanding and trying to convert them to C#.  Also, XNA examples do not seem relevant for a Windows Store game and are still not that easy to convert.

 

Thanks,

 

Share this post


Link to post
Share on other sites
Advertisement

Hi

 

You probably want to break it down into smaller steps to make it easier to use things like Google to help you find useful results. 

 

The general processes to look for are:

Texture Creation

Render To Texture

Writing depth values from a pixel shader

Projective texturing

 

I might recomend Reimers XNA tutorial on HLSL shadows. It is for XNA but it does describe the last two processes very nicely. Texture Creation and Render to Texture should be well documented in the SharpDX documentation.

Share this post


Link to post
Share on other sites

I feel your pain.  I came across this thread because I have been looking for some examples for a while and have found none whatsoever. I understand most of the concepts of shadow mapping but it would be helpful to see those concepts in code example form that I can run and debug using the toolkit for win 8 store game.  I tend to learn best based on examples.  I will post code if I find an example or am able to implement it in the toolkit.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement