Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Alpha blending a texture?

  1. #1
    Intern Newbie
    Join Date
    Aug 2000
    Location
    Beijing P.R.China
    Posts
    40

    Alpha blending a texture?

    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

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: Alpha blending a texture?

    maybe have a look http://members.nbci.com/myBollux at the tex_env_combine extension demo

  3. #3
    Intern Newbie
    Join Date
    Aug 2000
    Location
    Beijing P.R.China
    Posts
    40

    Re: Alpha blending a texture?

    I can't link to that site. don't know why ;(

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •