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: fade multi-texture texture from one vertice to another?

  1. #1
    Intern Newbie
    Join Date
    Jun 2005
    Posts
    42

    fade multi-texture texture from one vertice to another?

    I've got the ARB multitexture working but I want to fade, for example, a grass texture into a dirt texture between vertices.

    Is that not a job for multitexturing? Do I have to make two passes and render the landscape twice using single textures and specifying alpha with glColor4f?

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: fade multi-texture texture from one vertice to another?

    Yes you can do this with multitexture I think you need to use the env_combine extension so you can take vertex attribute directly into the second texture unit to apply the INTERPOLATE_ARB between the previous unit and the current texture:

    http://oss.sgi.com/projects/ogl-samp...nv_combine.txt

  3. #3
    Intern Newbie
    Join Date
    Jun 2005
    Posts
    42

    Re: fade multi-texture texture from one vertice to another?

    Thanks, I think that is what I want. I'm looking for a tutorial now but I'm not coming up with anything, has anyone seen one?

Posting Permissions

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