Sign in to follow this  
danromeo

XNA 4 Multiple Render Targets....max MRT's?

Recommended Posts

I'm trying to set up deferred lighting in XNA 4.  I need to render to 3 multiple render targets.  No matter what I do the render target designated as COLOR2 in my pixel shader , the third render target, never renders correctly.  I have also loaded tried and tested deferred lighting tutorials and I get the same results....the third RT never renders correctly.

 

1.  XNA 4 hidef is supposed to support 4 MRT's.  Is this a limitation of my graphics card?  

 

2. How do I determine the max number of supported MRT's on my target system?

 

THANKS

Share this post


Link to post
Share on other sites

There are a vast number of reasons why things may not be rendering correctly in a multiple render target set-up, what formats are you using for all of your targets, and can you elaborate on what you mean by never rendering correctly, do you get output? what output where you expecting? etc...

 

With a bit more information we should be able to help you find a solution.

 

Aimee

Share this post


Link to post
Share on other sites

What does the render target look like if it's "not rendered correctly"? Do you get a empty (clear color) target surface? What surface formats are you using? You could try using a test shader that just draws one solid color to see if that's working.

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