Problems with index geometry

Started by
0 comments, last by ManixReaper 17 years, 3 months ago
I am making a little terrain rendering program but have reached a problem when I try to increase the size of the map. I had a version working that was a 10 x 10 version, but now that I have extended it to 62 x 62 the problem I am getting is weird. What is happening is that every polygon that is drawn has its first vertex at point (0, 0, 0). However, when I debug the code and look at the order of my index buffer, it is correct (i.e, should use the last polygon to create the next). So I don’t know what is going wrong. I am trying to display them with Triangle strip. When I display them with a point list, every point is in the correct place. Has anyone had a similar problem?
Advertisement
Don't worry, figured it out.

When I declared my array to hold my information about the index geometry I change to declaration from:
WORD g_cubeIndices[7688];

to
int g_cubeIndices[7688];

Small things make big difference.

This topic is closed to new replies.

Advertisement