Hi,
Well, I have problems with texture mapping. The texture and texture coordinates are both loaded successfully, but I get unexpected results when I try to render the object. It seems as there is a problem with texture coordinates. Attached are two screenshots of the problem. A log of the data also follows. Any ideas?
Thank you all.
Vertex Buffer:
Size: 31
Vertex[ 0 ]: -87.739464, -72.413788, 0.000000
Vertex[ 1 ]: -87.739464, -72.413788, 0.000000
Vertex[ 2 ]: -87.739464, -72.413788, 0.000000
Vertex[ 3 ]: -87.739464, -72.413788, 0.000000
Vertex[ 4 ]: -87.739464, 72.413788, 0.000000
Vertex[ 5 ]: -87.739464, 72.413788, 0.000000
Vertex[ 6 ]: -87.739464, 72.413788, 0.000000
Vertex[ 7 ]: 87.739464, -72.413788, 0.000000
Vertex[ 8 ]: 87.739464, -72.413788, 0.000000
Vertex[ 9 ]: 87.739464, -72.413788, 0.000000
Vertex[ 10 ]: -87.739464, -72.413788, 245.210724
Vertex[ 11 ]: -87.739464, -72.413788, 245.210724
Vertex[ 12 ]: -87.739464, -72.413788, 245.210724
Vertex[ 13 ]: -87.739464, -72.413788, 245.210724
Vertex[ 14 ]: 87.739464, 72.413788, 0.000000
Vertex[ 15 ]: 87.739464, 72.413788, 0.000000
Vertex[ 16 ]: 87.739464, 72.413788, 0.000000
Vertex[ 17 ]: 87.739464, 72.413788, 0.000000
Vertex[ 18 ]: -87.739464, 72.413788, 245.210724
Vertex[ 19 ]: -87.739464, 72.413788, 245.210724
Vertex[ 20 ]: -87.739464, 72.413788, 245.210724
Vertex[ 21 ]: -87.739464, 72.413788, 245.210724
Vertex[ 22 ]: 87.739464, -72.413788, 245.210724
Vertex[ 23 ]: 87.739464, -72.413788, 245.210724
Vertex[ 24 ]: 87.739464, -72.413788, 245.210724
Vertex[ 25 ]: 87.739464, -72.413788, 245.210724
Vertex[ 26 ]: 87.739464, 72.413788, 245.210724
Vertex[ 27 ]: 87.739464, 72.413788, 245.210724
Vertex[ 28 ]: 87.739464, 72.413788, 245.210724
Vertex[ 29 ]: 87.739464, 72.413788, 245.210724
Vertex[ 30 ]: 87.739464, 72.413788, 245.210724
Texture Coordinates:
TexCoord[ 0 ]: 1.000000, 0.000000
TexCoord[ 1 ]: 0.000000, 0.000000
TexCoord[ 2 ]: 0.000000, 0.000000
TexCoord[ 3 ]: 1.000000, 0.000000
TexCoord[ 4 ]: 0.000000, 1.000000
TexCoord[ 5 ]: 0.000000, 0.000000
TexCoord[ 6 ]: 0.000000, 0.000000
TexCoord[ 7 ]: 0.000000, 1.000000
TexCoord[ 8 ]: 0.000000, 0.000000
TexCoord[ 9 ]: 1.000000, 1.000000
TexCoord[ 10 ]: 0.000000, 0.000000
TexCoord[ 11 ]: 0.000000, 0.000000
TexCoord[ 12 ]: 0.000000, 0.000000
TexCoord[ 13 ]: 0.000000, 1.000000
TexCoord[ 14 ]: 0.000000, 0.000000
TexCoord[ 15 ]: 0.000000, 0.000000
TexCoord[ 16 ]: 0.000000, 1.000000
TexCoord[ 17 ]: 1.000000, 0.000000
TexCoord[ 18 ]: 0.000000, 1.000000
TexCoord[ 19 ]: 0.000000, 1.000000
TexCoord[ 20 ]: 1.000000, 0.000000
TexCoord[ 21 ]: 0.000000, 1.000000
TexCoord[ 22 ]: 0.000000, 1.000000
TexCoord[ 23 ]: 0.000000, 0.000000
TexCoord[ 24 ]: 0.000000, 1.000000
TexCoord[ 25 ]: 0.000000, 0.000000
TexCoord[ 26 ]: 0.000000, 0.000000
TexCoord[ 27 ]: 0.000000, 1.000000
TexCoord[ 28 ]: 0.000000, 1.000000
TexCoord[ 29 ]: 1.000000, 0.000000
TexCoord[ 30 ]: 0.000000, 1.000000