Results 1 to 3 of 3

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

  1. #1
    Member 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 imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    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
    Member 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?

Similar Threads

  1. Multi texture
    By isato in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-21-2010, 06:41 AM
  2. glColor with multi-texture / texture combiners
    By Quasius in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-12-2008, 02:20 PM
  3. Multi-texture, multi-UV material spec question
    By JHoerner in forum COLLADA
    Replies: 3
    Last Post: 03-11-2005, 03:18 PM
  4. How to program fade-in / fade-out effect like movie in OpenGL
    By mdive in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 08-13-2003, 07:01 PM
  5. How can I write a Fade In and Fade Out Effect by OpenGL ?
    By quangkid in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-20-2002, 07:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean