Ignore:
Timestamp:
01/18/08 16:28:30 (17 years ago)
Author:
mattausch
Message:

worked on dynamic objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r2613 r2614  
    368368 
    369369                Face *face = mesh->mFaces[i]; 
     370                Vector3 normal = mesh->GetNormal(i); 
     371 
     372                glNormal3f(normal.x, normal.y, normal.z); 
    370373                for (int j = 0; j < face->mVertexIndices.size(); j++) { 
    371374                        glVertex3fv(&mesh->mVertices[face->mVertexIndices[j]].x); 
     
    696699   
    697700  mViewDirection = Normalize(Vector3(sin(dVector.x), 
    698                                                                          //                                                                      cos(dVector.y), 
     701                                                                         //     cos(dVector.y), 
    699702                                                                         0.0f, 
    700703                                                                         cos(dVector.x))); 
Note: See TracChangeset for help on using the changeset viewer.