Changeset 3076 for GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter
- Timestamp:
- 10/27/08 18:39:14 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/ObjConverter.cpp
r3059 r3076 70 70 if (indices.size() > 2) 71 71 { 72 // change orientation of faces? 72 73 #if 1 73 74 int idx1 = 0; … … 150 151 { 151 152 #if 0 153 // convert to our camera system: change y and z 152 154 geom->mVertices[i].x = faceVertices[i].x; 153 155 geom->mVertices[i].y = -faceVertices[i].z; … … 236 238 while (fgets(str, len, file) != NULL) 237 239 { 238 //cout << str; 240 if (1)//(line % 100) == 0) 241 cout << "read line " << line << " " << str; 239 242 switch (str[0]) 240 243 { … … 283 286 break; 284 287 } // end face 285 case 'g': 288 case 'g': // load a new shape 286 289 {/* 287 290 if (!faceVertices.empty()) … … 351 354 352 355 // material 353 //bool hasMaterial = true;354 bool hasMaterial = false;356 bool hasMaterial = true; 357 //bool hasMaterial = false; 355 358 str.write(reinterpret_cast<char *>(&hasMaterial), sizeof(bool)); 356 359 … … 390 393 if (textureCount > 0) 391 394 { 395 // hack 392 396 const string texName("wood.jpg"); 393 397 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/main.cpp
r3012 r3076 1 1 #include "ObjConverter.h" 2 2 #include <iostream> 3 3 #include <time.h> 4 4 5 5 using namespace std; … … 18 18 { 19 19 cerr << "conversion failed" << endl; 20 21 std::cin.get(); 20 22 exit(0); 21 23 } 22 24 23 25 cout << "conversion successful" << endl; 26 24 27 return 0; 25 28 }
Note: See TracChangeset
for help on using the changeset viewer.