previous |  up  | next
 

Height Map Part3   

Author:  DigiBen

Now that we know how to apply a texture to a terrain, this tutorial shows you how to tile a second texture on top of the first one to give the appearance of more detail.  This is called detail texturing, which can add a great deal of realism to a scene.  Multitexturing is used to achieve this neat effect.

Functions Used:  glBegin(), glEnd(), glVertex3i(), fopen(), fread(), fclose(), glBindTexture(), glMultiTexCoord2fARB(), glTexEnvi(), gluBuild2DMipmaps(), glMatrixMode(), glActiveTextureARB(), glScalef(), glLoadIdentity()


purchase full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials