OpenGL Demos
OpenGL Misc
MSG Board
Megabyte Softworks
C++, OpenGL, Algorithms

Current series: OpenGL 3.3
(Return to list of OpenGL 3.3 tutorials)

Download (5.89 MB)
2645 downloads. 23 comments
24.) Animation Pt. 1 - Keyframe MD2

Hello guys! This is the 24th tutorial from my series. Finally, we're getting to really interesting and cool stuff. Today it is animation, more specifically Keyframe animation using old good MD2 models. So far, our applications consisted of pretty static scenes with occasional rotation of objects. But today we will take this to the whole new level, we will animate model themselves! Are you ready to make that step? Are you fully commited you want to push your skills to the next level ? Okay, it might have been a little exaggerated, but animations are definitely cool and let us do some cool stuff, like games . Let's do this.

Keyframe Animation

Keyframe animation is one of the easiest animation methods and also is one of the first methods developed to animate 3D models. The idea is to create starting and ending frame and then calculate the intermediate frames using start and end frame data at an arbitrary position in-between them. The parameter that usually controls the state of the intermediate frame is time - time required for model to pass from starting frame to ending frame. So if a model has to get from starting to ending frame in 2 seconds, then intermediate model at time 0s is the starting frame, at time 1s it is the frame exactly in the middle between starting and ending frame, and finally at time 2s it is the ending frame. In the following image, you can see a sample starting and ending frame of model with 4 vertices:

As you could have seen in the image above, we could calculate every single frame in between the starting and ending frame just by having the total animation running time (2 seconds in this case) and current time. Every value in between has been calculated by INTERPOLATION, in this case it was a simple linear interpolation. There are other types of interpolation actually (for example spherical), but this time we will go through the simplest, i.e. linear interpolation.

Linear Interpolation

Given 2 endpoint values v0 and v1 (in our case two vertices) and a parameter t in range <0..1>, linear interpolation gives us arbitrary point on the line segment defined by these two endpoints, controlled by parameter t, while following conditions hold:

So basically what is happening here is that we go from one point to another across a straight line, thus the name linear interpolation. How do we apply it to the animation then? We do this for every single vertex in the model! For every single vertex that is in starting frame, we also have one in the ending frame and thus we are able to do linear interpolation between two frames! This doesn't apply only for vertex positions - this way, we can also animate normals or even texture coordinates!

However, having only two keyframes for animation would really not be very nice. Imagine an animation where you rotate something. For example, if we could rotate our heads by 180 degrees (we can't, but now imagine we can ), the animation of two keyframes would look like this: The face would get sucked into the head itself and then reappeared on the other side of head. So important lesson from here - when making keyframe animation, two keyframes are just not enough. But if we approximate animation by 20 frames or so and then we would interpolate between keyframes consecutively one by one, the animation will look smoother and better!

And this is exactly what MD2 models are about. Every MD2 model has animations consisting of several keyframes and also defines time, how long should the animation last. We are going to explore the MD2 model file format right now.

MD2 Model File

MD2 File Format is a little bit complex and explaining every single structure would be very exhausting. Especially when there is already an article explaining it pretty much in detail. It's article by David Henry - MD2 file format (Quake 2's models) and lots of structures used in my tutorial are taken from here with full permission from the author, so I shouldn't be sued or anything . So before reading further, try to read through his article first and then this tutorial continues with loading of MD2 files and preparing appropriate OpenGL structures for that. Below is our MD2 model class:

class CMD2Model
   void LoadModel(char* sFilename);

   void RenderModel(animState_t* animState);

   animState_t StartAnimation(animType_t type);
   void UpdateAnimation(animState_t* animState, float fTimePassed);
   void PauseAnimation();
   void StopAnimation();

   static    anim_tanimlist[21];
   UINT uiModelVAO;
   vector<UINT> uiFramesBuffer;

   md2_t header;
   vector< vector<glm::vec3> > vVertices; // Vertices extracted for every frame
   vector <vector< int > > vNormals; // Normal indices extracted for every frame
   vector<int> glCommands; // Rendering OpenGL commands

   vector<CVertexBufferObject> vboFrameVertices; // All frames (keyframes) of model
   CVertexBufferObject vboTextureCoords; // Texture coords are same for all frames

   vector<int> renderModes; // Rendering modes
   vector<int> numRenderVertices; // with number of vertices

   CTexture tSkin;

   UINT uiVAO;

Because most of the difficult stuff is in LoadModel function, we will go through it part by part, because it's waaaaaay to long to explain at once. Here is the first part - reading frames in the model:

void CMD2Model::LoadModel(char* sFilename)
   FILE* fp = fopen(sFilename, "rb");

   fread(&header, sizeof(md2_t), 1, fp); // Read header where all info about model is stored

   char* buffer = new char[header.num_frames * header.framesize]; // Read all frame data to one big buffer
   fseek(fp, header.ofs_frames, SEEK_SET);
   fread(buffer, sizeof(char), header.num_frames * header.framesize, fp);

   vVertices.resize(header.num_frames, vector<glm::vec3>(header.num_xyz)); // Allocate space for vertices
   vNormals.resize(header.num_frames, vector<int>(header.num_xyz)); // And normals

   // Extract vertices and normals from frame data
   FOR(i, header.num_frames)
      frame_t* frame_ptr = (frame_t*)&buffer[header.framesize * i]; // Convert buffer to frame_t pointer

      FOR(j, header.num_xyz)
         vVertices[i][j].x = frame_ptr->translate[0] + (float(frame_ptr->verts[j].v[0]) * frame_ptr->scale[0]);
         vVertices[i][j].y = frame_ptr->translate[1] + (float(frame_ptr->verts[j].v[1]) * frame_ptr->scale[1]);
         vVertices[i][j].z = frame_ptr->translate[2] + (float(frame_ptr->verts[j].v[2]) * frame_ptr->scale[2]);

         vNormals[i][j] = frame_ptr->verts[j].lightnormalindex;


After we open MD2 file, we need to read header. Header has all the info about model as well as offsets in file to different model data (frames, rendering etc...). When we have read the header, we can proceed with reading all the FRAMES of the model. First of all, frame is just a single keyframe in MD2 model. Different frames belong to different model animations, this will be explained later, now we just need to read in all the frames. We do it by offseting file reader to the start of frame data - this is defined by header.ofs_frames. The number of frames in model is header.num_frames and size of one frame (in bytes) is header.framesize. With these two integers we know that if we want to read all the frames at once, their size (in bytes) is header.num_frames * header.framesize. Because of this we allocate a single buffer of chars (because size of one char is 1 byte) with size header.num_frames * header.framesize, into which we read all the framedata using only one fread command.

Next we need to extract data from this buffer. So first, we allocate sufficient space to store vertices and normals. We store them into vector < vector< glm::vec3> >, so we basically create a 2D array, which we access in the way vVertices[frame_index][vertex_index]. The same goes for normals. However, the way extraction works may be a little bit confusing, because we convert our buffer (char pointer) to frame_t pointer. This is nothing difficult, but if you look at the frame_t definition, which is a structure where frame data are stored:

typedef struct
   float       scale[3];       // scale values
   float       translate[3];   // translation vector
   char        name[16];       // frame name
   vertex_t    verts[1];       // first vertex of this frame

} frame_t;

You can see one very suspicious thing - the last member verts[1]. It's an array of vertices of size 1. Whaaaaat? How is it possible that later we access it as normal array with indices greater than 0 and all the vertices are stored there? Why isn't there a pointer or something? Let me explain. Pointer to vertices can point absolutely to any place in memory. However, by having that one first vertex at the end of struct, we have assured that this array is aligned in memory is truly at the end of frame_t and continues even beyond frame_t itself. So the memory layout of whole frame looks as following:

So it is really nothing else than just some ease of access to the vertices themselves. There are other ways to do the very same thing, but I left it this way. To be honest, I'm not exactly sure whether all these structs are original MD2 structures also used in Quake 2 codes (which are available online for free BTW, link at the end of the tutorial) or these structures are made by David Henry, author of the linked MD2 article. Anyway, it doesn't matter, because it works and it is an interesting and unusual approach to something like this, although it may confuse people at first. But because of that reason, we cannot simply move the frame_ptr (which points to frame) like we normally move pointers, because it simply wouldn't work correctly. The increase of pointer value by 1 (which should intuitively point to next frame) will actually move frame_ptr by constant size of 44 bytes, which is size of frame_t structure. We need to move by header.framesize to have a correct pointer. We don't move the pointer manually, but we set it at the start of every FOR cycle repetition to the correct position.

Now that we know how to extract vertex data, we will convert them to our structures. Now notice this - vertex_t structure consists of 3 unsigned chars for coords and 1 unsigned char for normal. What does this mean? How we can we define vertex position by unsigned chars? Now this might seem a little unusual today, but in 1997, the need to save disk space was a lot bigger than it is today (I remember my first HDD to have 1,18 GB in 1996, good times ). From this reason, MD2 model file format had only 1 byte per vertex dimensions, so that you could store only 256 different values there. Today, we can safely store whole floats (4 bytes), and everything is alright. But these 256 values were also scaled and translated. Each frame class has also translation and scale vector, by which we multiple all the BYTE values. This way we will get from 256 different values to... 256 values, but in floating point numbers and stretched or shrinked a little . The vectors converted are then translated by translation vector, that is written in the file for every frame.

Now you should understand, how to extract vertex data. The last thing we need to get is per vertex normal. And normal is also stored as 1 unsigned char, so only 1 byte to code a normal? You ask how is this possible? Easily - there is an global precomputed array of 256 normals in anorms.h file, which contains MD2 model normals. So this 1 byte is only an index to that array, nothing else .

This should close the vertex and normals reading part, let's move further in loading - now we will load info about how to render the model:

void CMD2Model::LoadModel(char* sFilename)

   // Now let's read OpenGL rendering commands
   fseek(fp, header.ofs_glcmds, SEEK_SET);
   fread(&glCommands[0], sizeof(int), header.num_glcmds, fp);

   int i = 0;
   int iTotalVertices = 0;

   // And start with creating VBOs for vertices, textue coordinates and normals
   FOR(i, header.num_frames)vboFrameVertices[i].CreateVBO();

   while(1) // We while loop until we come to 0 value, which is the end of OpenGL commands
      int action = glCommands[i];
      if(action == 0)break;

      int renderMode = action < 0 ? GL_TRIANGLE_FAN : GL_TRIANGLE_STRIP; // Extract rendering mode
      int numVertices = action < 0 ? -action : action; // And number of vertices

      renderModes.push_back(renderMode); // Remember the values

      FOR(j, numVertices)
         float s = *((float*)(&glCommands[i++])); // Extract texture coordinates
         float t = *((float*)(&glCommands[i++]));
         t = 1.0f - t; // Flip t, because it is (from some reasons) stored from top to bottom
         int vi = glCommands[i++];

         vboTextureCoords.AddData(&s, 4); // Add texture coords to VBO
         vboTextureCoords.AddData(&t, 4);

         FOR(k, header.num_frames)
            vboFrameVertices[k].AddData(&vVertices[k][vi], 12); // Add vertex to VBO
            vboFrameVertices[k].AddData(&anorms[vNormals[k][vi]], 12); // Add normal to VBO from normal table


Now we can see the reading of rendering data. How exactly does this work? In header, we have defined something called header.num_glcmds. It's basically number of OpenGL calls required to render model properly. These GL commands are just a bunch of integers (exactly header.num_glcmds integers) we need to read and then decode information from them. It works like this - until we don't find 0, which means the end of all rendering, we go through these data and read things in following order:

float s = *((float*)(&glCommands[i++])); // Extract texture coordinates
float t = *((float*)(&glCommands[i++]));
t = 1.0f - t; // Flip t, because it is (from some reasons) stored from top to bott

As I said, we have integers, but we need to convert them to floats. But not like typecast them, but just tell compiler that the memory here is 4 byte wide (integer size), but we want to use this not as integer, but as float (also 4 bytes). So we just change the pointer type from integer pointer to float pointer. That's exactly what these 2 dirty lines of code do . Then we also flip t coordinate, because from some reasons it is stored the other way around as OpenGL texture coordinates are used. Because texture coordinates are same for every frame (only vertices and normals change), we will create only one VBO for texture coordinates, that will be used throughout all frames. However, for vertices and normals we will have different VBOs and we will just fill them up with vertices previously extracted from frame data and normals from anorms.h (just a note here, for a better performance, it would be probably better to make one big VBO and cramp up all the data there, but now for learning purposes, this is more intuitive and easier to understand).

Next thing we need to do is to create VAO used for rendering and ANIMATING model. This VAO will be very similar to VAOs used for static model renderings - we will have traditional vertex attributes as vertices, normals and texture coordinates. But we will add two extra attributes - vertex position at next keyframe and normal at next keyframe. Next vertex position is vertex attribute with location 3 and next normal attribute has location 4:

void CMD2Model::LoadModel(char* sFilename)

   // Now all necessary data are extracted, let's create VAO for rendering MD2 model

   glGenVertexArrays(1, &uiVAO);

   FOR(i, header.num_frames)

   vboFrameVertices[0].BindVBO(); // Vertex and normals data parameters

   // Vertex positions
   glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);
   glEnableVertexAttribArray(3); // Vertices for next keyframe, now we can set it to same VBO
   glVertexAttribPointer(3, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);
   // Normal vectors
   glVertexAttribPointer(2, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), (void*)(sizeof(glm::vec3)));
   glEnableVertexAttribArray(4); // Normals for next keyframe, now we can set it to same VBO
   glVertexAttribPointer(4, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), (void*)(sizeof(glm::vec3)));

   // Texture coordinates

   // Texture coordinates
   glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, sizeof(glm::vec2), 0);


Texture coordinates are in separate VBO and they are common for all frames. At first, we will bind data from frame 0 as the default data, and we will change them dynamically during animation and rendering.

The last part of loading MD2 model deals with loading a texture for it. Because original MD2 models had paths bound to the Quake 2 data files, I usually found models with header saying that number of skins (textures) is 0. But this ain't true, because these models usually have correct texture coordinates and some texture file packed within. The following lines of code will look for the texture with same name as model file name in the directory of model, because MD2 models found on the internet usually have the same texture filename as model:

void CMD2Model::LoadModel(char* sFilename)

   // I have read, that if you read the data from header.num_skins and header.ofs_skins,
   // these data are Quake2 specific paths. So usually you will find models on internet
   // with header.num_skins 0 and texture with the same filename as model filename

   // Find texture name (modelname.jpg, modelname.png...)

   string sPath = sFilename;
   int index = sPath.find_last_of("\\/");
   string sDirectory = index != -1 ? sPath.substr(0, index+1) : "";
   string sPureFilename = index != -1 ? sPath.substr(index+1) : sFilename;

   string sTextureExtensions[] = {"jpg", "jpeg", "png", "bmp", "tga"};
   index = sPureFilename.find_last_of(".");
   if(index != -1)
      string sStripped = sPureFilename.substr(0, index+1);
      FOR(i, 5)
         string sTry = sDirectory+sStripped+sTextureExtensions[i];
         if(tSkin.LoadTexture2D(sTry, true))


And that's all we need for loading a model! Now let's proceed to actual rendering and animating.

Implementing Keyframe Animation

To perform animation, we need to store animation state somehow. And we have a structure for that - animState_t. When we pass this structure to MD2 rendering function, model will be rendered with up-to-date positions and normals. It contains every thing we need to know about keyframe animation. Using time, that elapsed between two consecutive frames, we can update this structure, so that next frame, model looks a little different, thus creating effect of an animation. Let's have a look at its properties:

typedef struct
   int startframe;         // first frame
   int endframe;         // last frame
   int fps;            // frame per second for this animation

   float curr_time;      // current time
   float old_time;         // old time
   float interpol;         // percent of interpolation

   int type;            // animation type

   int curr_frame;         // current frame
   int next_frame;         // next frame

} animState_t;

These properties deserve a little bit of explanation, so here it follows:

Here you can see animation list for the MD2 model, the array includes starting frame, ending frame and FPS for that animation:

anim_t CMD2Model::animlist[ 21 ] = 
   // first, last, fps
   {   0,  39,  9 },   // STAND
   {  40,  45, 10 },   // RUN
   {  46,  53, 10 },   // ATTACK
   {  54,  57,  7 },   // PAIN_A
   {  58,  61,  7 },   // PAIN_B
   {  62,  65,  7 },   // PAIN_C
   {  66,  71,  7 },   // JUMP
   {  72,  83,  7 },   // FLIP
   {  84,  94,  7 },   // SALUTE
   {  95, 111, 10 },   // FALLBACK
   { 112, 122,  7 },   // WAVE
   { 123, 134,  6 },   // POINTIING
   { 135, 153, 10 },   // CROUCH_STAND
   { 154, 159,  7 },   // CROUCH_WALK
   { 160, 168, 10 },   // CROUCH_ATTACK
   { 196, 172,  7 },   // CROUCH_PAIN
   { 173, 177,  5 },   // CROUCH_DEATH
   { 178, 183,  7 },   // DEATH_FALLBACK
   { 184, 189,  7 },   // DEATH_FALLFORWARD
   { 190, 197,  7 },   // DEATH_FALLBACKSLOW
   { 198, 198,  5 },   // BOOM

string sMD2AnimationNames[MAX_ANIMATIONS] = 
   "Pain A",
   "Pain B",
   "Pain C",
   "Crouch Stand",
   "Crouch Walk",
   "Crouch Attack",
   "Crouch Pain",
   "Crouch Death",
   "Death Fallback",
   "Death Fall Forward",
   "Death Fallback Slow",

First column is starting frame, second is ending frame and third is the FPS of animation. Now we can proceed to two most important functions - UpdateAnimation, that takes a pointer to animstate_t structure and time passed between frames and updates data and RenderModel with provided animState_t.


Here is the code snippet for you to see the whole function first:

void CMD2Model::UpdateAnimation(animState_t* animState, float fTimePassed)
   animState->curr_time += fTimePassed;

   if(animState->curr_time - animState->old_time > (1.0f / float(animState->fps)))
      animState->old_time = animState->curr_time;

      animState->curr_frame = animState->next_frame;
      if(animState->next_frame > animState->endframe)
         animState->next_frame = animState->startframe;

   animState->interpol = float(animState->fps) * (animState->curr_time - animState->old_time);

So what do we do here? First, we update current time by the provided time between this frame and the last frame. If the difference between current time and old time is greater than time between two consecutive frames (we calculated it from animation fps), we need to update data, so that they refer to new frames. Old time becomes current time and current frame becomes next frame. Now we need to calculate new next frame. We will simply increment it by 1 and then if it passes the animState->endFrame, which is the last frame, we reset it to animState->startFrame.

The last and the most important thing is to calculate interpolation factor, but this is an easy oneliner. Maximal difference between the animState->curr_time - animState->old_time can be 1.0s / animState->fps. We just need to stretch this value to range <0...1>. So we simply re-multiplicate it with animState->fps and we're done .


In this section, you will see how to render models with a given animation state. This concerns shaders as well, so we will go through the vertex shader, that does all calculations between two frames. So first, let's have a look at rendering function itself:

void CMD2Model::RenderModel(animState_t* animState)

   int iTotalOffset = 0;
   if(animState == NULL)
      glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);
      spMD2Animation.SetUniform("fInterpolation", -1.0f); // Set interpolation to negative number, so that vertex shader knows

      FOR(i, ESZ(renderModes)) // Just render using previously extracted render modes
         glDrawArrays(renderModes[i], iTotalOffset, numRenderVertices[i]);
         iTotalOffset += numRenderVertices[i];
      // Change vertices pointers to current frame
      glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);

      glVertexAttribPointer(3, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);

      // Change normal pointers to current frame

      glVertexAttribPointer(2, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);

      glVertexAttribPointer(4, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);

      spMD2Animation.SetUniform("fInterpolation", animState->interpol);

      FOR(i, ESZ(renderModes))
         glDrawArrays(renderModes[i], iTotalOffset, numRenderVertices[i]);
         iTotalOffset += numRenderVertices[i];

The function is branched into two sections - first one is rather simple. If the user doesn't provide animState_t structure, but passes NULL pointer, then we just render model statically. We will set the vertex position attribute to the vertices of the first frame. We also set interpolation factor to -1.0, so that the vertex shader know. Vertex shader then sees, that we don't want to do any inter-frame calculations, so it will just render stuff as we usually do.

However, second part is more interesting. We need to set pointer to vertex and normal positions from both frames - current frame and next frame. However, everything is pretty easy now, because all these data are stored in our animState_t structure now, so we just need to carefully set vertex attribute pointers. The most important thing is to set the interpolation factor here, so that the vertex shader can calculate inter-frames.

In both cases, rendering itself is done by iterating over all render modes we have read from the file. So we just do a series of GL_TRIANGLE_STRIP and GL_TRIANGLE_FAN renders, while providing correct vertex offsets. The last thing we should do is to have a look at the vertex shader, which calculates inter-frames:

#version 330

uniform struct Matrices
   mat4 projMatrix;
   mat4 modelMatrix;
   mat4 viewMatrix;                                                                           
   mat4 normalMatrix;
} matrices;

layout (location = 0) in vec3 inPosition;
layout (location = 1) in vec2 inCoord;
layout (location = 2) in vec3 inNormal;
layout (location = 3) in vec3 inNextPosition;
layout (location = 4) in vec3 inNextNormal;

smooth out vec3 vNormal;
smooth out vec2 vTexCoord;
smooth out vec3 vWorldPos;

smooth out vec4 vEyeSpacePos;

uniform float fInterpolation;

void main()
  mat4 mMV = matrices.viewMatrix*matrices.modelMatrix;  
  mat4 mMVP = matrices.projMatrix*matrices.viewMatrix*matrices.modelMatrix;
  vTexCoord = inCoord;
  vec3 vInterpolatedPosition = inPosition;
  if(fInterpolation >= 0.0f)vInterpolatedPosition += (inNextPosition - inPosition)*fInterpolation;

  vEyeSpacePos = mMV*vec4(vInterpolatedPosition, 1.0);
   gl_Position = mMVP*vec4(vInterpolatedPosition, 1.0);

  vec3 vInterpolatedNormal = inNormal;
  if(fInterpolation >= 0.0f)vInterpolatedNormal += (inNextNormal - inNormal)*fInterpolation;

  vNormal = (matrices.normalMatrix*vec4(vInterpolatedNormal, 1.0)).xyz;
  vWorldPos = (matrices.modelMatrix*vec4(vInterpolatedPosition, 1.0)).xyz;

Notice two new variables here - vInterpolatedPosition and vInterpolatedNormal. Both of these are calculated only if interpolation factor is in range <0...1> as it should be (of course we could do a check if it's greater or equal than 0 and less or equal than 1, but one check is now enough, because we provide negative values only when we render models without animation and otherwise this range is valid. So we save one comparison). So if interpolation factor fInterpolation is valid, we will simply calculate difference between this and next frame and we add this difference to our current frame data multiplied by interpolation factor and we get inter-frame vertices and normals. The fragment shader used is the same as in other renderings, because this is the only place where something different happens.


This is the fruit of our today's effort:

Once again, this tutorial was pretty much stuff at once, so I will try to make some relaxing, simple tutorial next time. And I know for almost 100% now, that it's gonna be about Bump Mapping, because it's a really neat technique, that can improve visual appearance of objects significantly and doesn't cost us that much. So stay tuned for next time and I hope you enjoyed this tutorial, because:

I also declared functions like PauseAnimation and StopAnimation, but these two are left for reader to implement as an exercise ... or is it? Yes, it is an exercise, but it is an unintentional exercise, because I forgot to implement these two and now I'm too lazy to upgrade this tutorial . But at least you have an opportunity to extend it yourself and test your skills . See you next time!

Download (5.89 MB)
2645 downloads. 23 comments


Enter the text from image:


Thomasgerm (vqlj43441@catch@rng.marvsz.com) on 17.04.2017 03:49:47


<a href=http://www.iccmornago.it/manolo-blahnik-sandals-759.htm>Manolo Blahnik Sandals</a>
<a href=http://www.itcsparconord.it/952-skechers-argento.htm>Skechers Argento</a>
<a href=http://www.laprealpinagiorn.it/285-adidas-gloro-sg.htm>Adidas Gloro Sg</a>
<a href=http://www.laprealpinagiorn.it/537-adidas-calcio-rosse-nere.htm>Adidas Calcio Rosse Nere</a>
<a href=http://www.hardsoftinformatica.it/scarpe-skechers-shape-ups-funzionano-831.php>Scarpe Skechers Shape Ups Funzionano</a>
Curtisst (zylv46878@catch@rng.marvsz.com) on 11.04.2017 10:40:48


<a href=http://www.abigaely-voyance.fr/604-golden-goose-basket-femme.php>Golden Goose Basket Femme</a>
<a href=http://www.3-devis.fr/498-chaussure-balenciaga-homme-2016.php>Chaussure Balenciaga Homme 2016</a>
<a href=http://www.un-don.fr/755-balenciaga-sneakers-homme-noir.html>Balenciaga Sneakers Homme Noir</a>
<a href=http://www.institutchama.fr/057-nike-magista-cr7.php>Nike Magista Cr7</a>
<a href=http://www.sylvie-l.fr/550-jimmy-choo-mariage.php>Jimmy Choo Mariage</a>
Thomasgerm (eabf25315@rng.marvsz.com) on 09.04.2017 21:12:12


<a href=http://www.oceansurf.es/nike-cortez-en-blanco-687.php>Nike Cortez En Blanco</a>
<a href=http://www.oceansurf.es/air-force-nike-de-bota-577.php>Air Force Nike De Bota</a>
<a href=http://www.mondialfolk.it/066-stan-smith-zeppa.htm>Stan Smith Zeppa</a>
<a href=http://www.myranch.es/897-stan-smith-mujer-look.php>Stan Smith Mujer Look</a>
<a href=http://www.mozartfest.it/965-nike-nere-alte.php>Nike Nere Alte</a>
Curtisst (mypk12464@catch@rng.marvsz.com) on 04.04.2017 20:52:33


<a href=http://www.pigliaru.it/098-scarpe-tacchi-strani.htm>Scarpe Tacchi Strani</a>
<a href=http://www.prolocofaeto.it/108-supra-skytop-justin-bieber.htm>Supra Skytop Justin Bieber</a>
<a href=http://www.pigliaru.it/953-scarpe-tacco-borchie.htm>Scarpe Tacco Borchie</a>
<a href=http://www.professionetica.it/gucci-scarpe-uomo-alligator-484.html>Gucci Scarpe Uomo Alligator</a>
<a href=http://www.primogest.it/nike-magista-bianche-e-verdi-382.html>Nike Magista Bianche E Verdi</a>
Douglasbiar (qfub91505@rng.marvsz.com) on 04.04.2017 09:01:25


<a href=http://www.magnetiseur-guerisseur-somme.fr/348-timberland-femme-rouge.php>Timberland Femme Rouge</a>
<a href=http://www.julieherry.fr/026-presto-2016.html>Presto 2016</a>
<a href=http://www.piezography.fr/adidas-los-angeles-originals-810.php>Adidas Los Angeles Originals</a>
<a href=http://www.fourmi-lierre.fr/puma-creepers-velours-251.htm>Puma Creepers Velours</a>
<a href=http://www.mag3.fr/ralph-lauren-sweat-femme-002>Ralph Lauren Sweat Femme</a>
Curtisst (lsql26509@catch@rng.marvsz.com) on 31.03.2017 12:08:45


<a href=http://www.minitrain.fr/663-fila-hiker.htm>Fila Hiker</a>
<a href=http://www.thierryobadia.fr/870-palladium-pampatech-hi-tx.html>Palladium Pampatech Hi Tx</a>
<a href=http://www.messengercity.fr/103-mizuno-wave-inspire-8.php>Mizuno Wave Inspire 8</a>
<a href=http://www.messengercity.fr/685-mizuno-wave-ultima-6-homme.php>Mizuno Wave Ultima 6 Homme</a>
<a href=http://www.minitrain.fr/633-fila-femme-pas-cher.htm>Fila Femme Pas Cher</a>
Curtisst (mwzm5737@rng.marvsz.com) on 24.03.2017 16:29:07


<a href=http://www.super8-ilfilm.it/837-adidas-basketball>Adidas Basketball</a>
<a href=http://www.laluna-rouen.fr/711-nike-huarache-ultra-femme-bordeaux.html>Nike Huarache Ultra Femme Bordeaux</a>
<a href=http://www.elsass-computer.fr/330-adidas-high-tops.html>Adidas High Tops</a>
<a href=http://www.kristiinakoskentola.nl/501-nike-flyknit-chukka-grey.html>Nike Flyknit Chukka Grey</a>
<a href=http://www.cliftonrestaurant.co.uk/nike-air-max-1-983.php>Nike Air Max 1</a>
Richarddync (ilyl53416@rng.marvsz.com) on 14.03.2017 08:59:27


<a href=http://www.ambientecasaonline.it/010-puma-rihanna-rosa-antico.html>Puma Rihanna Rosa Antico</a>
<a href=http://www.cesarchavezmiddleschool.org/876-basket-puma-ring.htm>Basket Puma Ring</a>
<a href=http://www.ambientecasaonline.it/903-puma-creepers-fiocco.html>Puma Creepers Fiocco</a>
<a href=http://www.australie-evenement.nl/puma-sneakers-rood-378.htm>Puma Sneakers Rood</a>
<a href=http://www.cesarchavezmiddleschool.org/353-puma-basket-white-sale.htm>Puma Basket White Sale</a>
Curtisst (bqdn36448@catch@rng.marvsz.com) on 23.02.2017 19:35:08


<a href=http://www.marrandmacgregor.co.uk/570-adidas-yeezy-new-model.html>Adidas Yeezy New Model</a>
<a href=http://www.oxforddynamics.co.uk/750-vans-toy-story-edition.htm>Vans Toy Story Edition</a>
<a href=http://www.accomlink.co.uk/adidas-yeezy-350-boost-turtle-dove-men-052>Adidas Yeezy 350 Boost Turtle Dove Men</a>
<a href=http://www.wandsworth-plumbing.co.uk/ray-ban-pink-mirror-332.htm>Ray Ban Pink Mirror</a>
<a href=http://www.accomlink.co.uk/adidas-nmd-runner-primeknit-red-camo-093>Adidas Nmd Runner Primeknit Red Camo</a>
Richarddync (ewjz82868@rng.marvsz.com) on 22.02.2017 08:36:32


<a href=http://www.cyberville.co.uk/246-new-balance-996-deconstructed.htm>New Balance 996 Deconstructed</a>
<a href=http://www.bencookartist.co.uk/nike-air-force-1-high-gold-222.html>Nike Air Force 1 High Gold</a>
<a href=http://www.attention-deficit-disorder.co.uk/nike-air-max-2016-womens-purple-605.html>Nike Air Max 2016 Womens Purple</a>
<a href=http://www.giantfang.co.uk/nike-air-max-thea-white-tumblr-444>Nike Air Max Thea White Tumblr</a>
<a href=http://www.bencookartist.co.uk/nike-air-force-1-high-og-043.html>Nike Air Force 1 High Og</a>
QddieSmise (clvz73951@partners.enticals.com) on 17.02.2017 16:55:52
mirada a fake louis vuitton purses a tus ... qui sont à bas prix ou peut ... quand il s¡¯agit de 2002 à plus de assez récemment pris ... <a href="https://www.officielsaclv.com">Sac Louis Vuitton pas cher</a> Sac Louis Vuitton yto wtv <a href=https://www.sacslouisvuittongroup.com>Sac Pas Cher Louis Vuitton</a>Adjunct Professors Referred to as ... Articles relatifs concepteur réplique à obtenir un prix abordable et ... Prada ou Louis Vuitton qui sont ... hlh sle
Richarddync (dnby24424@rng.marvsz.com) on 16.02.2017 17:03:01


<a href=http://www.cuadros-famosos.es/615-polos-lacoste-niños.html>Polos Lacoste Niños</a>
<a href=http://www.lubpsico.es/gazelle-adidas-puestas-634.html>Gazelle Adidas Puestas</a>
<a href=http://www.ibericarsalfer.es/nike-sneakers-2015-626.html>Nike Sneakers 2015</a>
<a href=http://www.sanjuandelamata.es/069-nike-free-flyknit-chukka-precio.html>Nike Free Flyknit Chukka Precio</a>
<a href=http://www.sedar2013.es/arizona-diamondbacks-gorras-246.php>Arizona Diamondbacks Gorras</a>
Richarddync (ygzn11608@rng.marvsz.com) on 15.02.2017 07:17:43


<a href=http://www.bristol.com.es/zapatillas-nike-air-force-2016-493.html>Zapatillas Nike Air Force 2016</a>
<a href=http://www.cdoviaplata.es/mbt-haraka-toffee-147.html>Mbt Haraka Toffee</a>
<a href=http://www.bristol.com.es/nike-air-force-tienda-online-183.html>Nike Air Force Tienda Online</a>
<a href=http://www.tacadetinta.es/sudaderas-abercrombie-para-hombre>Sudaderas Abercrombie Para Hombre</a>
<a href=http://www.lubpsico.es/adidas-neo-city-racer-w-768.html>Adidas Neo City Racer W</a>
R635tNWTxCo5 (g6n66l4a0e@gmail.com) on 15.12.2015 15:52:02
A bit off topic ...I ran some basic 2d fill rate tests based on displaying <a href="http://kbntbnsec.com">sipmle</a> alpha-blended 32x32 quads.Compared to the old iPhone, I was able to display about 5 times more sprites.This test is part of my small 2d demo and with the old one I was able to display 350 32x32 blended sprites ( in addition to some non-blended and UV animated background images) while maintaining around 30 fps.With the new one I was able to push the number of quads to 1750.
HKHHDK8p5ma (g2rbz3zpp@mail.com) on 11.12.2015 21:22:39
Unfortunately you have to run it with each change tot he path. I coludn't figure out a way to make it automatically update. It's possible that I'll still figure something out, though it would probably still be something for which you'd have to click another button or run another command saying update brush strokes now . There's no way I know of for Flash to pass word to my tool that the brush paths have changed. I don't think we'll get that kind of functionality until Adobe adds this feature natively.
Ankit singh kushwah (ankit1db0@gmail.com) on 05.05.2015 13:36:25
YDaoud on 23.04.2015 23:30:25
There is a bug in CMD2Model::RenderModel()
That'll cause a problem in accessing the normals.
It kept me up for while :)

// Change normal pointers to current frame

glVertexAttribPointer(2, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);

glVertexAttribPointer(4, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), 0);

should be something like this ====>

// Change normal pointers to current frame

glVertexAttribPointer(2, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), (void*)sizeof(glm::vec3));

glVertexAttribPointer(4, 3, GL_FLOAT, GL_FALSE, 2*sizeof(glm::vec3), (void*)sizeof(glm::vec3));

Keep up the good work (y) great tutorials!
Ankit s. kushwah (ankit1db0@gmail.com) on 09.12.2014 08:31:54
"Error! shader file data/shaders/main_shader.frag wasn't compiled"
i am getting this error whenever i running .exe file....What is glm you are using in your project?
Sebastian on 06.08.2014 09:58:16
I sent to you MD2 file (20.07). Works?
Sebastian on 20.07.2014 10:28:59
I have downloaded from the internet md2 models. If the animation does not start working properly - with animation crash. It can send you these models is as if you had the time you would see if these new models md2 are wrong. Of course, models added to Towjego tutorial work in a fully correctly. The new model is the prosu nice and so I wanted to use them.
Michal Bubnar (michalbb1@gmail.com) on 20.07.2014 10:57:16
Hm, ok, send them on my e-mail, I will look onto it. The models I have tested so far worked, but I will look into model that's not working. I'm currently writing articles to 22nd and 24th tutorial
Jump to page:
1 2