Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualAlundra

Posted 06 January 2013 - 04:36 PM

Hi,
When doing Fog Of War, two method is possible.
One is to generate the shadow map by shader, the other is to generate the shadow map by CPU.
The problem is to test if an object is visible or not.
When generate the shadow map on the CPU, you have the pixel data, one projection inversed to get the coord and all is ok.
When doing on the GPU, you have to get back data to the CPU and check.

What is the good solution to handle that correctly ?
Thanks

#1Alundra

Posted 06 January 2013 - 04:34 PM

Hi,

When doing Fog Of War, two method is possible.

One is to generate the shadow map by shader, the other is to generate the shadow map by CPU.

The problem is to test if an object is visible or not.When generate the shadow map on the CPU, you have the pixel data, one projection inversed to get the coord and all is ok.When doing on the GPU, you have to get back data to the CPU and check.

 

What is the good solution to handle that correctly ?

Thanks


PARTNERS