Last time I’ve implemented an MD2 Loader, now I’ve tried to add Vertex Array Objects to improve performance.
Vertex Array Objects are a way to organize geometric data inside a buffer and then reconstruct the model using indices.
In this simple experiment I’ve organized geometric data in three different buffers instead of a single buffer:
- a buffer to store vertex coordinates
- a buffer to store normal coordinates
- a buffer to store texture coordinates (UV)
Here’s a short video of what I’ve come up with: