Jump to content
  • Advertisement
Sign in to follow this  
RobMaddison

Rendering to a region of a texture

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

Yes, that's what the Viewport state does.

 

Thanks, I did some googling but couldn't find anything obvious - I was wrongly looking for locking

Share this post


Link to post
Share on other sites
Just for completeness here some alternatives:
 
- Scissors (SetScissorRect)
- If you can define the shape easily with primitives, just render that (e.g. a quad to a certain part of your RT)
- Custom clip planes (SetClipPlane)
- clip/discard in the pixel shader (for more complex shapes)
- use the stencil buffer as a mask

Share this post


Link to post
Share on other sites

This topic is 1130 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.

Guest
This topic is now closed to further replies.
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!