I upgraded my application to DirectX9 and my hardware shadow maps no longer work! Whats up?
We’ve changed the behavior of hardware shadow maps between the DirectX8 and DirectX9 interfaces. In DirectX8, you’re required to scale the interpolated z component (that will be compared with the value in the shadow map) by the bit depth of the shadow map itself. Starting with the DirectX9 interfaces, we’ve changed this behavior to no longer require this scale, so the z value should be in the range [0..1], regardless of bit depth. Basically, we wanted to implement this new cleaner behavior, but didn’t want to break shipping apps that rely on the old behavior, so we changed it only for the new DX9 interfaces.
Related Questions
- What happens if something unforeseen occurs and the student or the practitioner can no longer commit to their scheduled shadow day?
- How do I get the Directions button to display results in the Google Maps application the way the Maps button does?
- How can external software and hardware resources be accessed from an application built in Gedae?