   texture coordinates
  I have this loop to generate texture coordinates.Counter=0;   int NoVertexX = 10;   int NoVertexZ = 10;double dx=double(1/NoVertexX);   double dz=double(1/NoVertexZ);for(int indz=0;indz   
  the division is performed as an integer, and only then converted to a double.  Thus dx = dz = 0.0 (but a high precision double [8^).  I recommend:double dx=double(1.0/NoVertexX);double dz=double(1.0/NoVertexZ);   lonesockPiranha are people too. ;  cool working thanks. 