Skip to main content
GameDev.net gamedev.net
🔒 Locked

How render a "render target" to screen

Started by mohandes_philip Nov 29, 2008 at 4:11 AM 6 replies 2.5k views
Original Post
mohandes_philip
mohandes_philip
hi I have render some objects to a "render target". How can i put (render) "render target" into screen...? Thank you.
XVincentX
XVincentX
Let us understand better your question.
Can you explain it better?

Want make another render target?
darkelf2k5
darkelf2k5
render a textured quad to the screen using the render target as the texture.
Every time you implement a singleton, God kills a kitten. Please, think of the kittens!
Axiverse
Axiverse
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.
jpventoso
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.
mohandes_philip
mohandes_philip
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.
mohandes_philip
mohandes_philip
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.
mohandes_philip
mohandes_philip
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.