Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2005, 12:32:36 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: now using the home brewed material class for the model - and it works just perfect! orxonox has a very powerfull material class./orxonox :D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/lib/graphics/importer/abstract_model.h

    r4157 r4158  
    7777        char strName[255];                      // The name of the object
    7878        CVector3  *pVerts;                      // The object's vertices
    79         CVector3  *pNormals;            // The object's normals
    80         CVector2  *pTexVerts;           // The texture's UV coordinates
     79        CVector3  *pNormals;                    // The object's normals
     80        CVector2  *pTexVerts;                   // The texture's UV coordinates
    8181        tFace *pFaces;                          // The faces information of the object
    8282};
     
    203203      glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
    204204      glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR_MIPMAP_LINEAR);
    205       gluBuild2DMipmaps(GL_TEXTURE_2D, 3, image->w, image->h, GL_RGBA, GL_UNSIGNED_BYTE, image->pixels);       
     205      gluBuild2DMipmaps(GL_TEXTURE_2D, 3, image->w, image->h, GL_RGB, GL_UNSIGNED_BYTE, image->pixels);
    206206
    207207      SDL_FreeSurface(image);
Note: See TracChangeset for help on using the changeset viewer.