Jump to content

  • Log In with Google      Sign In   
  • Create Account


Render To Texture


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 gnomgrol   Members   -  Reputation: 493

Like
0Likes
Like

Posted 09 October 2012 - 06:16 AM

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?

Sponsor:

#2 kauna   Crossbones+   -  Reputation: 1899

Like
1Likes
Like

Posted 09 October 2012 - 07:32 AM

Have you set a correct viewport size and a depthstencil target with same size as your render target?

Cheers!

#3 gnomgrol   Members   -  Reputation: 493

Like
1Likes
Like

Posted 09 October 2012 - 08:04 AM

Yes, one needs to define a viewport for the texture. Wasn't metioned in the tutorial doh.
Thanks a lot

Edited by gnomgrol, 09 October 2012 - 09:23 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS