Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#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