OpenGL triangles are wron positioned
-
Hello,
i have a problem with my OpenGL project.
Source code: https://git.rwth-aachen.de/carstenf/OpenGL/tree/master/QtMeshViewerAbout the problem:
The project base on the cube example from Qt. As you can see here i added an own function to load the data. The hard coded data works fine. But the imported does not. I read the data from the debugger and i cannot see any problems with them. Here the data:Vertex:
-4 -4 -4
-4 +4 -4
+4 +4 -4
+4 -4 -4
-4 -4 -4
+4 -4 -4
+4 -4 +4
-4 -4 +4
-4 -4 -4
-4 -4 +4
-4 +4 +4
-4 +4 -4
+4 -4 -4
+4 +4 -4
+4 +4 +4
+4 -4 +4
-4 +4 -4
-4 +4 +4
+4 +4 +4
+4 +4 -4
-4 -4 +4
+4 -4 +4
+4 +4 +4
-4 +4 +4
-4 -4 -4indices:
0,2,3
4,6,7
8,10,11
12,14,15
16,18,19
20,22,23
1,2,24
5,6,4
9,10,8
13,14,12
17,18,16
21,22,20As far as i see they are all ccw. is that a problem?