Sign in to follow this  
user88

[SlimDX] Render to bitamp with MSAA

Recommended Posts

user88    304
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
user88    304
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this