PDA

View Full Version : Alpha blending a texture?



haigu
11-13-2000, 04:38 PM
hi,
My question is how to reuse the same alpha channel with different RGB textures?
I am doing a terran renderer. My thinking of texturing the terran is to use different textures representing grass, rock, etc. if one block changes from grass to rock, i want to draw the 1st texture and have the 2nd alpha blended onto the 1st.
I know RGBA mode will work, but to my understanding, a grass texture with different alpha channel will be a different texture, am i right? So how do i solve this problem?
Thanks in advance http://www.opengl.org/discussion_boards/ubb/smile.gif

zed
11-14-2000, 10:46 AM
maybe have a look http://members.nbci.com/myBollux at the tex_env_combine extension demo

haigu
11-14-2000, 06:20 PM
I can't link to that site. don't know why ;(