Changeset 3208 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Dec 17, 2004, 9:58:32 PM (20 years ago)
- Location:
- orxonox/trunk/src/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/importer/framework.cc
r3206 r3208 136 136 int wW = wHandler.screen->w; 137 137 Vector tmpV (mX, mY, sqrt ( (float) abs(wH * wH/4 - (wW/2-mX) * (wW/2-mX) - (wH/2-mY) * (wH/2-mY)) )); 138 // printf("tmpV: %f, %f, %f\n", tmpV.x, tmpV.y, tmpV.z);138 // PRINTF(0)("tmpV: %f, %f, %f\n", tmpV.x, tmpV.y, tmpV.z); 139 139 p2 = tmpV-M; 140 140 p2.y = -p2.y; 141 141 rotAxis = p1.cross(p2); 142 // printf("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z);142 // PRINTF(0)("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z); 143 143 144 144 // in case that there is no rotation-axis defined … … 146 146 { 147 147 rotAxis.normalize(); 148 // printf("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z, rotAngle);148 // PRINTF(0)("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z, rotAngle); 149 149 150 150 rotAngle = angle_rad (p1, p2); … … 154 154 // dir = rotQ.apply(dir); 155 155 // dir.normalize(); 156 // printf("rotAxis: %f, %f, %f, %f\n", dir.x, dir.y, dir.z, rotAngle);156 // PRINTF(0)("rotAxis: %f, %f, %f, %f\n", dir.x, dir.y, dir.z, rotAngle); 157 157 } 158 158 rotQlast = rotQ; … … 164 164 if (event.button.button == 4) 165 165 { 166 printf("MouseWheel up\n");166 PRINTF(0)("MouseWheel up\n"); 167 167 zoomTo *= .5; 168 168 } 169 169 else if (event.button.button == 5) 170 170 { 171 printf("MouseWheel down\n");171 PRINTF(2)("MouseWheel down\n"); 172 172 zoomTo *= 2.0; 173 173 } … … 186 186 else 187 187 { 188 printf("MouseButton %d pressed at (%d,%d).\n",188 PRINTF(0)("MouseButton %d pressed at (%d,%d).\n", 189 189 event.button.button, event.button.x, event.button.y); 190 190 rotatorV = ( (float)wHandler.screen->w/2 -event.button.x) / (float)wHandler.screen->w / 100.0; … … 199 199 else 200 200 { 201 printf("MouseButton %d released at (%d,%d).\n",202 201 PRINTF(2)("MouseButton %d released at (%d,%d).\n", 202 event.button.button, event.button.x, event.button.y); 203 203 } 204 204 break; -
orxonox/trunk/src/importer/material.cc
r3206 r3208 83 83 strncpy(tmpPName, pName, strlen(pName)-1); 84 84 tmpPName[strlen(pName)-1] = '\0'; 85 printf ("%s\n",tmpPName);86 85 if (access (tmpPName, F_OK) == 0) 87 86 { … … 268 267 PRINTF(3)("setting illumModel of Material %s to %i\n", this->name, illum); 269 268 this->illumModel = illum; 270 // printf("setting illumModel to: %i\n", illumModel);269 // PRINTF(3)("setting illumModel to: %i\n", illumModel); 271 270 } 272 271 /**
Note: See TracChangeset
for help on using the changeset viewer.