Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

alphablend

Multiplying Alphas thru Multitexture

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

I was wondering how I could do this: i have one texture in the first with an alpha channel i have another texture (no alpha channel) that I want to multiply against the other textures alpha channel only, thereby having an end texture with no rgb change only alpha. anyone know, or where i might look? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
i didnt understand the first part fully but check out the combine extension (part of opengl 1.3)

for the second q, u cant u will have to create another RGBA texture + copy the RGB data in from the first texture

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites
If you multiplied the first texture by pure white second texture, the RGB should stay the same as the first, right?

I''m used to D3D, so I don''t know if there is a difference.

For textures, use 32-bit. Each 8 bits is a channel (Blue, Green, Red, Alpha)

If you load a texture off of disk, you can use formats like .tga and .png which include the alpha channel in the file.

Share this post


Link to post
Share on other sites

  • 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!