• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Tispe

DX11
RPG Shadows, CSM, TSM, what else?

16 posts in this topic

Hi, what shadowing methods are the rave these days?

 

What Shadowing method would you consider best for DX9 and for DX11 hardware under these conditions:

-Large Area, multiple actors and objects, One Sun Light, First person perspective and Isometric perspective

-Room, multiple actors and objects, Several Lights, First person perspective and Isometric perspective

 

Cheers!

1

Share this post


Link to post
Share on other sites

Variance shadow maps can look quite nice if you tweak the parameters a little and they are very resource friendly. They also allow you to filter the shadow map and blur it to provide nice soft edged shadows at the cost of a single blur.

0

Share this post


Link to post
Share on other sites

For DX9 I would go with standard PSSM. For DX11 and more powerful GPUs I would try to use EVSM with SDSM. Of course for local lights (spotlights etc.) use a single cascade.

SDSM - ("Sample Distribution Shadow Maps") is an interesting PSSM extension, which provides optimal shadow map frustum.

EVSM (Chen, Tatarchuk - "Lighting Research at Bungie", SIGGRAPH09). It combines ESM and VSM in order to fix light bleeding issues.

Edited by Krzysztof Narkowicz
0

Share this post


Link to post
Share on other sites

Is it possible to get SDSM using Shader Model 3.0?

 

Edit:

The TSM paper does a comparison against PSM, and the pictures show TSM is better. Is this correct? Or do all Shadowing papers make other techniques look bad in comparison?

Edited by Tispe
1

Share this post


Link to post
Share on other sites

Sorry, I meant PSSM, not PSM. PSM/TSM and similar algorithms have a lot of temporal aliasing when camera moves. IMHO "normal" shadows look much better.

 

Yes, it's possible to implement SDSM on SM3.0. Just calculate depth range on GPU using pixel shaders and then read it on CPU. For read back use a few textures in round-robin fashion, so GPU won't be stalled by CPU. Results will be lagged by a frame or two, but it should look ok.

1

Share this post


Link to post
Share on other sites

Is there a difference between PSSM and CSM? I've toyed with CascadedShadowMaps11.exe in the SDK but I can't really find a good fit.

0

Share this post


Link to post
Share on other sites

You can probably use RTW. It's one of the best shadow mapping algorithms.

 

Wow, that's really incredible. Probably not useful for the OP's isometric scenes, but for first person I can't imagine that there's much out there that works better.

0

Share this post


Link to post
Share on other sites

RTW is definitely an eye opener. Though I am not familiar with how to use a warping map, or even create one. Please correct me if I am wrong on something I am about to say.

 

From what i've gathered so far, using the forward method, a regular shadow map is colored brighter for regions of interest and darker for uninterested regions. I am not sure if the depth channel is colored or another channel. Then this colored shadow map is collapsed to 1D textures. I think all pixels in the same row is summed up to be one pixel in the 1D map, or the brightest color is picked. Then the same for all the pixels on the same column, which is placed in a second 1D texture. These 1D textures are blurred and then they are used to construct a warping map. How this is done, I don't know. Then this warping map is used to render the shadow map once again, this time with regions of interest magnified. And there is the final shadow map. Use this together with the warping map to transform each rendered pixel in view space to the shadow map and check if the depth is greater or not.

 

The consuming part is to do CPU analysis on the original shadow map and color it, I think. Then maybe (I am guessing) it is possible to collapse the result using the GPU. By rendering the colored shadow map to a render target with 1px height for the columns, and then again to another render target with 1px width for the rows. Gaussian blur on these 1D render targets might also be done I guess. Now, render the warping map(is this a texture?) by sampling each of the 1D textures once for the corresponding pixel. I'm not sure how to use the warping map to mess around in the vertex and pixel shaders....

 

 

Am I wrong?

Edited by Tispe
0

Share this post


Link to post
Share on other sites

I was hoping on implementing RTW on Shader Model 3.0. So no tesselation. Will it be possibe/worth it?

0

Share this post


Link to post
Share on other sites

For RTW is it possible to use the previous frame's shadow map to compute the warping maps?

0

Share this post


Link to post
Share on other sites

Could you share your demo source?  smile.png

I'll try to :p I'd just have to finish it first, which will take some time. In the meantime you can look at the original demo source here: http://www.cspaul.com/wiki/doku.php?id=software:rtw

 

 

I was hoping on implementing RTW on Shader Model 3.0. So no tesselation. Will it be possibe/worth it?

Possible? Sure. Worth it? I don't know. Personally I'd start with CSM/PSSM for SM 3.0 and then compare it to RTW if you decide to add it later.

 

 

For RTW is it possible to use the previous frame's shadow map to compute the warping maps?

I think that should be possible with some more shader work.

1

Share this post


Link to post
Share on other sites

It seems you want to have dynamic illumination with shadowing from everything on everything (aka global direct illumination). 

Cascaded shadow mapping is gold standard for now in large-scale environment.

Use CSM with PCF on Poison Kernel. It works well. This method is used in many titles in the market.

Some time ago I had been testing many others. This had given max result for scalability and perf.

Also you should use deferred tech instead forward even in large-scale scene.

And hold in mind what types of BRDF you want to see in your game. May be it's just diffuse and specular terms.

Or may be complex aniso BRDF, or may be you'll have decided to add local subsurface scattering via spherical harmonics or wavelets.

You should have chosen a good solution at the beginning, because there are 4 render targets in Direct3d9.

0

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
Sign in to follow this  
Followers 0

  • Similar Content

    • By YixunLiu
      Hi,
      I have a surface mesh and I want to use a cone to cut a hole on the surface mesh.
      Anybody know a fast method to calculate the intersected boundary of these two geometries?
       
      Thanks.
       
      YL
       
    • By hiya83
      Hi, I tried searching for this but either I failed or couldn't find anything. I know there's D11/D12 interop and there are extensions for GL/D11 (though not very efficient). I was wondering if there's any Vulkan/D11 or Vulkan/D12 interop?
      Thanks!
    • By lonewolff
      Hi Guys,
      I am just wondering if it is possible to acquire the address of the backbuffer if an API (based on DX11) only exposes the 'device' and 'context' pointers?
      Any advice would be greatly appreciated
    • By MarcusAseth
      bool InitDirect3D::Init() { if (!D3DApp::Init()) { return false; } //Additional Initialization //Disable Alt+Enter Fullscreen Toggle shortkey IDXGIFactory* factory; CreateDXGIFactory(__uuidof(IDXGIFactory), reinterpret_cast<void**>(&factory)); factory->MakeWindowAssociation(mhWindow, DXGI_MWA_NO_WINDOW_CHANGES); factory->Release(); return true; }  
      As stated on the title and displayed on the code above, regardless of it Alt+Enter still takes effect...
      I recall something from the book during the swapChain creation, where in order to create it one has to use the same factory used to create the ID3D11Device, therefore I tested and indeed using that same factory indeed it work.
      How is that one particular factory related to my window and how come the MakeWindowAssociation won't take effect with a newly created factory?
      Also what's even the point of being able to create this Factories if they won't work,?(except from that one associated with the ID3D11Device) 
    • By ProfL
      Can anyone recommend a wrapper for Direct3D 11 that is similarly simple to use as SFML? I don't need all the image formats etc. BUT I want a simple way to open a window, allocate a texture, buffer, shader.
  • Popular Now