Adding two textures

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

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/faqs/technical/texture.htm#text0085

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 .

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 .

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

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