Jump to content
  • Advertisement
Sign in to follow this  
CastorX

Rendertotexture

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

Hy! I want to create Post-Processed final image, so I must to render the scene into a texture. But what's if my Back Buffer has 1280*1024 size? Shall I create a Texture in 2048*1024 size? What's the fastest way to copy the Texture to the Back Buffer (code please)? And how can I do Quinclux (I hope it's right) antialiasing on this buffer? THX! Bye!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by CastorX
Hy!
I want to create Post-Processed final image, so I must to render the scene into a texture. But what's if my Back Buffer has 1280*1024 size?
Shall I create a Texture in 2048*1024 size?

Your texture should be the same size as the backbuffer, so just 1280*1024.

Quote:
What's the fastest way to copy the Texture to the Back Buffer (code please)?

All you have to do is render the texture as a textured quad. You can do this easily with ID3DXSprite. If you don't want to use ID3DXSprite, all you have to do is render 2 triangles with the corresponding texture coords.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!