Jump to content
  • Advertisement
Sign in to follow this  
prachiRocks

Alpha blend 2 images of different sizes

This topic is 2645 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
When you sample a texture in D3D, you don't have to know the physical dimensions of it because the texture coordinate range is 0.0...1.0 regardless of the texel count in each direction. The device can be configured to filter the texels linearly if the sampling frequency doesn't have 1:1 relationship with the destination render target.

In other words, you don't have to do anything special to blend 2 different-sized images; it is very common that textures of different dimensions are used in blending ops. Just draw the alpha-blended quad with your source texture on top of the base image, like you would draw anything else with blending.

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!