Jump to content
  • Advertisement
Sign in to follow this  
mohandes_philip

How render a "render target" to screen

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

Advertisement
1. call Present (device or swap chain depending on d3d9 or d3d10)

2. d3d10: create a shader resource view of the render target and draw a quad to the screen.

3. d3d9: you should use render to texture instead.

more detail would help.

Share this post


Link to post
Share on other sites
If your render target is a texture, you need to draw a full screen quad and render the texture to the screen. If it's not a texture, you need to create a texture and then copy the contents of the render target using StretchRect before.
Please, give us more details.

Share this post


Link to post
Share on other sites
Quote:
Original post by XVincentX
Let us understand better your question.
Can you explain it better?

Want make another render target?


I have a render target (a texture that create with RENDER_TARGET usage flag).
I want to put content of this render target to screen.

thank you.

Share this post


Link to post
Share on other sites
Quote:
Original post by darkelf2k5
render a textured quad to the screen using the render target as the texture.


i make a quad and set it's texture as render target's texture but there
is some problems...!
When i do this transparent region in render target rendered as black (with Alpha Blending) . When i render this quad with "Alpha adding" this problem solved but
some problem appear again...!
rendered objects on screen are visible from rendered quad...!

How can solve this problem...?

Thank you.

Share this post


Link to post
Share on other sites
Quote:
Original post by jpventoso
If your render target is a texture, you need to draw a full screen quad and render the texture to the screen. If it's not a texture, you need to create a texture and then copy the contents of the render target using StretchRect before.
Please, give us more details.


yes . my render target is a texture with RENDER_TAREGET flag.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!