I am trying to make a terrain engine like age of empires. Its 2D isometric.I plan to produce the terrain like this.
1.Render a base texture like grass
2.Render another texture on top like sand but control its alpha using an alpha texture(or map i think its called).
i tried this
// render grass
// render dirt
// TEXTURE-UNIT #0:Alpha Map
// TEXTURE-UNIT #1:Farm
glTexEnvi(GL_TEXTURE_ENV,GL_COMBINE_RGB_EXT, GL_MODULATE );
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
// disable 2nd texture unit
This should render the base grass texture.Then multiply the alpha channel from textures with rgb channel of texturesbut i only get the 1st texture(grass) on the screen....yet i have seen other programs use multitexturing perfectly on my card.But no matter wat i use i seem to get only the 1st texture.....am i missing something?