Original Post
edit Problem solved! It's one of those "it should work, but it doesn't" cases. I'm totally stumped. Basically I fill an array of CustomVertex.PositionColored[] vertices = new CustomVertex.PositionColored[1000000]; in two different ways from two different binary files. The reason for this is that one method is slow and one is fast, but needs the slow one to rewrite the data first. Now I'm trying to switch back to the slow one only to find out that it doesn't work altho the fast method basically get's it's data from the slow one! You run the slow method, it creates a new binary file and sorts the data so it can be read faster. Then the slow method reads that new binary file and get's the data faster. So I only need to run the slow method once and then I can use the fast one for debugging purposes. The final version must have the slow method that reads the original file. Right after I fill one of the vertices[offset].Position "dot" X, Y and Z I output the data from this variable. I do this for both the slow and the fast method and the data is the same. The offset of data within the vertices[offset] is the same. They are alligned. But when passing the vertices to the draw method, it draws them differently. Here is the picture of how it draws. The fast method is correct, the slow is wrong. But both use the same data and the same draw method!
Anyone had a similar experience? [Edited by - markookram on January 18, 2008 1:11:21 PM]
Anyone had a similar experience? [Edited by - markookram on January 18, 2008 1:11:21 PM]