Results 1 to 6 of 6

Thread: Adding two textures

  1. #1
    Member Newbie
    Join Date
    Mar 2003
    Posts
    38

    Adding two textures

    How can we add a texture into another one, to obtain a new texture which is the sum of the two ?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2003
    Location
    Westerville, Oh, USA
    Posts
    201

    Re: Adding two textures

    Do you mean combine them in some kind of image editor or do this in an OpenGL program at runtime? If it's the latter, check out this FAQ:
    http://www.opengl.org/developers/faq...e.htm#text0085

  3. #3
    Senior Member Regular Contributor
    Join Date
    Apr 2003
    Location
    Toulouse, France
    Posts
    133

    Re: Adding two textures

    you can render the first texture, with texenv==GL_REPLACE and then render the second texture with texenv==GL_ADD.

    to do that, reset the modelview, projection, texture matrix with identity matrix, render a (-1,-1 / 1,1) quad with the first texture and another (-1,-1 / 1,1) quad with the second texture.

    after that, you could bind the color buffer to a texture.

    and everything without blending, i think that's what you want ...

    décidement, que de problème dans ce stage ... ça à pas l'air simple ton truc. bon courage .

  4. #4
    Senior Member Regular Contributor
    Join Date
    Apr 2003
    Location
    Toulouse, France
    Posts
    133

    Re: Adding two textures

    je viens de me rendre compte que mon français était pire que mon anglais ... donc je corrige:
    ça a pas l'air simple ton truc .

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: Adding two textures

    Salut,

    Regardes sur mon site :
    www.slug-production.be.tf

    J'ai un example pour faire ce que tu veux. En fait, cela s'appele du "multi-texturing".

    Donc, dans mon site, va dans :

    Download
    Extension

    Cherche le programme "Multitexturing"

    Tu vois, y a pas que toi qui parle français

  6. #6
    Member Newbie
    Join Date
    Mar 2003
    Posts
    38

    Re: Adding two textures

    Merci, je vais voir ce que je peux faire avec ça...

Similar Threads

  1. Mixing/adding multiple textures to one object
    By int0xicated in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-16-2009, 06:39 AM
  2. Adding two GL_DSDT_NV textures
    By k_szczech in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-01-2006, 05:49 AM
  3. Adding up on the gpu.
    By imported_Adrian in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 01-01-2003, 10:10 AM
  4. Texture combiners and adding RGBA textures
    By markfcsl in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-31-2002, 07:19 AM
  5. Adding alpha channel to textures
    By rhmazza in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-14-2001, 05:30 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