Jump to content
  • Advertisement
Sign in to follow this  
ClementLuminy

Multisampled Antialiasing and Z Prepass

This topic is 3036 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, I'm investigating multisampled antialiasing with Directx9, and i'm having a problem to make it work with my Z prepass system: Because i'm using DX9 and because i need the depth informations afterward, in the Z prepass, i render the scene depth informations into both the depth buffer and a depth texture. If i do not enable antialisaing, everythings works fine, but if i do, i get strange visual artefacts which looks like a problem with the content of the depth buffer. I suppose the problem come from the fact that my depth buffer is created to be used with multisampled render target, which is not the case in the Z prepass: The depth texture is a regular texture (i.e: not multisampled) created with CreateTexture. Is it possible to solve this issue with DX9 system? Thanks

Share this post


Link to post
Share on other sites
Advertisement
You can't render to a non-multsampled render target with a multisampled depth buffer. The number of samples needs to match.

If you turn on the debug runtimes, it will warn you about things like this.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!