A Simple 3D Graphic Engine Part 2: Vertex Array Objects

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:

  1. a buffer to store vertex coordinates
  2. a buffer to store normal coordinates
  3. a buffer to store texture coordinates (UV)

Here’s a short video of what I’ve come up with:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s