Integrate these fixes?

  • lowenz
  • Topic Author
More
9 years 8 months ago #1 by lowenz Integrate these fixes? was created by lowenz
Interesting stuff for DX8 wrapper (born to fix a problem with Splinter Cell 2):

When taking advantage of shadowmap textures supported since GeForce 3, there is a difference between DirectX8 (used by the game) and DirectX9+ in how the API expects the Z/W value at input of the texture sampler with shadowmap texture. For DirectX8 the application is supposed to provide the value in <0;2^bitdepth-1> range where the bitdepth is bit depth of the depth texture. For all other APIs the value is expected to be as <0;1>. For more info see here. It seems that starting with some version of the driver or HW, the DirectX8 path no longer comply with the original behavior and instead expects the DirectX9+ behavior.

www.vogons.org/viewtopic.php?f=8&t=41443&start=60

www.jiri-dvorak.cz/scellpt/
The following user(s) said Thank You: klotim

Please Log in or Create an account to join the conversation.

  • crosire
More
9 years 8 months ago #2 by crosire Replied by crosire on topic Integrate these fixes?
Sounds good.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.