- Timestamp:
- 10/27/08 18:39:14 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 3 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 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3075 r3076 455 455 //-- load some dynamic stuff 456 456 457 LoadModel("hbuddha.dem", dynamicObjects);457 /*LoadModel("hbuddha.dem", dynamicObjects); 458 458 buddha = dynamicObjects.back(); 459 459 … … 479 479 } 480 480 481 481 */ 482 482 /////////// 483 483 //-- load the associated static bvh … … 868 868 void MainLoop() 869 869 { 870 Vector3 offs = Vector3::ZERO();870 /*Vector3 offs = Vector3::ZERO(); 871 871 offs.x = RandomValue(-.1f, .1f); 872 872 offs.y = RandomValue(-.1f, .1f); … … 875 875 876 876 Matrix4x4 mat = TranslationMatrix(offs); 877 878 877 buddha->GetTransform()->MultMatrix(mat); 879 878 */ 880 879 Vector3 oldPos = camera->GetPosition(); 881 880 … … 925 924 /// enable vbo vertex array 926 925 glEnableClientState(GL_VERTEX_ARRAY); 926 927 927 928 928 // render with the specified method (forward rendering, forward + depth, deferred)
Note: See TracChangeset
for help on using the changeset viewer.