PDA

View Full Version : About MultiTexture .



Benjamin
10-10-2005, 10:27 PM
http://bbs.gameres.com/upload/sf_20051010172252.jpg

I Want to do the job like the picture show,With opengl.
A hair pic + A hair_alpha pic = A hair render pic

Anyone know how to do that?

Benjamin
10-10-2005, 10:47 PM
http://bbs.gameres.com/upload/sf_20051011155420.jpg

This is very what I want.
help me!

Jens Scheddin
10-10-2005, 11:50 PM
Uhm... alpha blending?!
Beside, this is not an advanced topic.

Benjamin
10-11-2005, 01:42 AM
Jens Scheddin
Please give me some help,maybe it's basice,but that's very importent importance to me.

memfr0b
10-11-2005, 02:08 AM
In the first texture stage, load the hair color with a texture environment of GL_DECAL or GL_MODULATE (depending on whether you need to incorporate the vertex color). In the second texture stage, overwrite the fragment's alpha value with the mask texture using GL_REPLACE. The mask texture has to be stored as GL_ALPHA.