Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 13, 2004, 10:49:20 AM (21 years ago)
Author:
chris
Message:

orxonox/branches/chris: Managed to apply all that rotating and translating so that you now actually see the debug player following the track. You can even steer the spaceship via the keys now… unfortunately the coordinate transformations are still a mess. Even though mapping from Locations to Placements seems to work in general, applying the finetuned position and rotation still messes up the whole damn thing…

File:
1 edited

Legend:

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

    r2112 r2115  
    9494        glLoadIdentity();
    9595        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                 {
     96        for( float x = -128.0; x < 128.0; x += 25.0)
     97        {
     98                for( float y = -128.0; y < 128.0; y += 25.0)
     99                {
     100                        glColor3f(1,0,0);
    101101                        glVertex3f(x,y,-128.0);
     102                        glVertex3f(x,y,0.0);
     103                        glColor3f(0.5,0,0);
     104                        glVertex3f(x,y,0.0);
    102105                        glVertex3f(x,y,128.0);
    103106                }
    104107        }
    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                 {
     108        for( float y = -128.0; y < 128.0; y += 25.0)
     109        {
     110                for( float z = -128.0; z < 128.0; z += 25.0)
     111                {
     112                        glColor3f(0,1,0);
    110113                        glVertex3f(-128.0,y,z);
     114                        glVertex3f(0.0,y,z);
     115                        glColor3f(0,0.5,0);
     116                        glVertex3f(0.0,y,z);
    111117                        glVertex3f(128.0,y,z);
    112118                }
    113119        }
    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                 {
     120        for( float x = -128.0; x < 128.0; x += 25.0)
     121        {
     122                for( float z = -128.0; z < 128.0; z += 25.0)
     123                {
     124                        glColor3f(0,0,1);
    119125                        glVertex3f(x,-128.0,z);
     126                        glVertex3f(x,0.0,z);
     127                        glColor3f(0,0,0.5);
     128                        glVertex3f(x,0.0,z);
    120129                        glVertex3f(x,128.0,z);
    121130                }
    122         }*/
     131        }
    123132        //draw track
    124133        glColor3f(0,1,1);
Note: See TracChangeset for help on using the changeset viewer.