thanks for your answer.
That's what i was thinking it's a problem with my UV coordinates.
But I have UV coordinates for each vertex of my map, what's the right way to initialize my texture coordinates channel
As you can see, I've tried the solution above but nothing.
Thanks
yes i make a logFile to check that, here for example a little simple map :
Polygon 0
U : 0 V : 0
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
Polygon 1
U : 1 V : 0
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
Polygon 2
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
U : 0 V : 0
Polygon 3
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
U : 1 V : 0
Polygon 4
U : 0 V : 0
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
Polygon 5
U : 1 V : 1
U : 1 V : 0
U : 0 V : 0
U : 0 V : 1
Polygon 6
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
U : 1 V : 0
Polygon 7
U : 1 V : 1
U : 1 V : 0
U : 0 V : 0
U : 0 V : 1
Polygon 8
U : 1 V : 1
U : 0 V : 1
U : 0 V : 0
U : 1 V : 0
Polygon 9
U : 0 V : 1
U : 1 V : 1
U : 1 V : 0
U : 0 V : 0
Polygon 10
U : 0 V : 1
U : 0 V : 0
U : 1 V : 0
U : 1 V : 1
Polygon 11
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
U : 0 V : 0
Polygon 12
U : 1 V : 0
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
Polygon 13
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
U : 1 V : 0
Polygon 14
U : 0 V : 0
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
Polygon 15
U : 1 V : 1
U : 0 V : 1
U : 0 V : 0
U : 1 V : 0
Polygon 16
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
U : 0 V : 0
Polygon 17
U : 1 V : 0
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
Polygon 18
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
U : 0 V : 0
Polygon 19
U : 1 V : 0
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
Polygon 20
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
U : 1 V : 0
Polygon 21
U : 0 V : 0
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
Polygon 22
U : 0 V : 0
U : 1 V : 0
U : 1 V : 1
U : 0 V : 1
Polygon 23
U : 0 V : 0
U : 0 V : 1
U : 1 V : 1
U : 1 V : 0
Coordinates seems to be good.
I've see some examples where UV are initialize at the same time of adding index, is it the right way
I've just tried PIX for windows, it's look to be a nice tool!
I've ran my test app and when i capture frame I have following results (screen shot) : http://img410.imageshack.us/img410/903/testsq6.jpg
I directly see the problem is my textures coordinates. All values are 0 and 1 for each vertex, I'm always looking for why.
If someone can help me it could be very useful :)
Thanks a lot
To render my model I use :
foreach (ModelMesh mesh in map.Meshes){
foreach (BasicEffect effect in mesh.Effects){
effect.EnableDefaultLighting();
effect.World = sceneWorldTransformation;
effect.View = view;
effect.Projection = proj;
}
mesh.Draw();}
In my draw() function, Do I need a special effect file to render textures correctly
Thanks