734 | | called in `main()` right after `read_wavefront("motorBike.obj");`. Now mistery occurs with garbled part of motorbike. Where the problem is? Possible suggestions: pointer problems, normal calculation, OpenGL bug, shader, data, ... Hint: Observe number of triangles versus number of vertices. |
| 734 | [[Image(motorbike-final.png)]] |
| 735 | called in `main()` right after `read_wavefront("motorBike.obj");`. Now mistery occurs with garbled part of motorbike. Where the problem is? Possible suggestions: pointer problems, normal calculation, OpenGL bug, shader, data, ... Hint: Observe number of triangles versus number of vertices. Use debugger, Valgrind and VisIt to locate the problem. Quick fix is given as final [attachment:motorbike.c] source. |