Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2112 in orxonox.OLD for orxonox/branches/chris/src/world.cc


Ignore:
Timestamp:
Jul 12, 2004, 10:28:25 PM (21 years ago)
Author:
chris
Message:

orxonox/branches/chris: Implemented quaternion class… but something is still f up… the camera keeps pointing into the wrong direction… matrix rotation calculation seems not to be my strenght…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/world.cc

    r2104 r2112  
    9090          l = l->get_next();
    9191        }
     92       
     93        // draw debug coord system
     94        glLoadIdentity();
     95        glBegin(GL_LINES);
     96        glColor3f(1,0,0);
     97/*      for( float x = -128.0; x < 128.0; x += 5.0)
     98        {
     99                for( float y = -128.0; y < 128.0; y += 5.0)
     100                {
     101                        glVertex3f(x,y,-128.0);
     102                        glVertex3f(x,y,128.0);
     103                }
     104        }
     105        glColor3f(0,1,0);
     106        for( float y = -128.0; y < 128.0; y += 5.0)
     107        {
     108                for( float z = -128.0; z < 128.0; z += 5.0)
     109                {
     110                        glVertex3f(-128.0,y,z);
     111                        glVertex3f(128.0,y,z);
     112                }
     113        }
     114        glColor3f(0,0,1);
     115        for( float x = -128.0; x < 128.0; x += 5.0)
     116        {
     117                for( float z = -128.0; z < 128.0; z += 5.0)
     118                {
     119                        glVertex3f(x,-128.0,z);
     120                        glVertex3f(x,128.0,z);
     121                }
     122        }*/
     123        //draw track
     124        glColor3f(0,1,1);
     125        for( int i = 0; i < tracklen; i++)
     126        {
     127                glVertex3f(pathnodes[i].x,pathnodes[i].y,pathnodes[i].z);
     128                glVertex3f(pathnodes[(i+1)%tracklen].x,pathnodes[(i+1)%tracklen].y,pathnodes[(i+1)%tracklen].z);
     129        }
     130        glEnd();
    92131}
    93132
Note: See TracChangeset for help on using the changeset viewer.