Jump to content
  • Advertisement
Sign in to follow this  
RobMaddison

Rendering to a region of a texture

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

Is it possible to do this in direct X 9? I'm rendering to a very large texture but I only want to update a relatively small region of it. Seems wasteful to render the whole thing?

Share this post


Link to post
Share on other sites
Advertisement

Shaders are an option. Only performing rendering operations a defined range of UV coordinates. Could you explain more on what you are trying to accomplish?

 

Edit: Double posting is bad *shakes finger*

Edited by ExErvus

Share this post


Link to post
Share on other sites

if you are speaking about render target, you can set a viewport and then render.

Edited by Alundra

Share this post


Link to post
Share on other sites

Thanks everyone, after some testing I went with rendering a smaller quad against the large texture, works great.

 

Also, I didn't intentionally double-post, I initially posted it and gamedev reported an error twice.  After I checked to see if it had gone through despite the error [both times] and it hadn't, I tried again.  I'm a regular on this site with a lot of posts so I can't really understand why anyone would assume I had double-posted intentionally.

 

I also received a warning about it from a mod - not appreciated at all after contributing to the site financially and it being gamedev's fault.  *shakes head faster than finger*

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!