Jump to content
  • Advertisement
Sign in to follow this  
user88

[SlimDX] Render to bitamp with MSAA

This topic is 3008 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. I want to render some scene to System.Drawing.Bitmap type. Currently i have success with non-multisampled rendering only. Creation of the render target in next:
...
m_renderTarget = Surface.CreateRenderTarget(m_device,
                                            m_width,
                                            m_height,
                                            pp.BackBufferFormat,
                                            pp.Multisample,
                                            pp.MultisampleQuality,
                                            true);
...

There is some conflict with lockable back buffer and multisample antialiasing. I get error when use both: [4132] Direct3D9: (ERROR) :Multi-Sampled render-targets are not lockable. CreateRenderTarget failed Perhaps there is some other way to render scene to bitmap?? thanks in advice.

Share this post


Link to post
Share on other sites
Advertisement
I'd suggest using a non-lockable render target, and using GetRenderTargetData() to get the data out.

Share this post


Link to post
Share on other sites
still not working with AA. I get error when call GetRenderTargetData():

[6000] Direct3D9: (ERROR) :Cannot perform copies from multisampled render targets. GetRenderTargetData fails

any help?

[Edited by - user88 on March 30, 2010 9:04:28 AM]

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!