Two textures requires two surfaces,
2) The addvertex command can't affect the second UV coord set, thats why you get different results when you remove your vertextexcoords commands.
Graphics3D 640,480,16,2 Camera = CreateCamera() PositionEntity Camera,0,1,-5 AmbientLight 255,255,255 tex=LoadTexture("woodfloor1.jpg") tex2=LoadTexture("light.jpg") TextureCoords tex2,1 LevelMesh=CreateMesh() Surface1=CreateSurface(LevelMesh) AddVertex (Surface1,-1,1,0,0,0) AddVertex (Surface1,1,1,0,1,0) AddVertex (Surface1,-1,-1,0,0,1) AddVertex (Surface1,1,-1,0,1,1) AddTriangle (Surface1,0,1,2) AddTriangle (Surface1,1,3,2) Surface2=CreateSurface(LevelMesh) AddVertex (Surface2,-.5,.5,0,0,0) AddVertex (Surface2,.5,.5,0,1,0) AddVertex (Surface2,-.5,-.5,0,0,1) AddVertex (Surface2,.5,-.5,0,1,1) AddTriangle (Surface2,4,5,6) AddTriangle (Surface2,5,7,6) EntityTexture LevelMesh,tex,0,0 EntityTexture LevelMesh,tex2,0,1 UpdateNormals LevelMesh Repeat UpdateWorld() RenderWorld() Flip Until KeyDown(1)
2) The addvertex command can't affect the second UV coord set, thats why you get different results when you remove your vertextexcoords commands.