• Advertisement
Sign in to follow this  

Render To Texture

This topic is 1932 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

Hey there,
I tried to implement render-to-texture, and it worked out fine! I thought. Now I tried switching the size of the texture and got the wierdest results.
When I make it larger than the viewports size, the rendertarget gets swichted to the backbuffer. I investigated that in PIX, but all I could come up with is that the rendertarget gets switched correctly, but the drawcalls just show black, and when the first drawcall on the backbuffer is made, the things on the texture are already drawn to it.


So, do you have any clue what could be causeing this?

Share this post


Link to post
Share on other sites
Advertisement
Have you set a correct viewport size and a depthstencil target with same size as your render target?

Cheers!

Share this post


Link to post
Share on other sites
Yes, one needs to define a viewport for the texture. Wasn't metioned in the tutorial doh.
Thanks a lot Edited by gnomgrol

Share this post


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

  • Advertisement