Changeset 3265 for GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter
- Timestamp:
- 01/11/09 02:43:59 (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/ObjConverter2.cpp
r3262 r3265 510 510 511 511 512 int entityCount = 1;512 int entityCount = mNumShapes; 513 513 ofile.write(reinterpret_cast<char *>(&entityCount), sizeof(int)); 514 514 515 515 516 516 ////////// 517 //-- write single scene entity 518 519 // no transformation 520 bool hasTrafo = false; 521 ofile.write(reinterpret_cast<char *>(&hasTrafo), sizeof(bool)); 522 523 // a dummy lod 524 int numLODs = 1; 525 ofile.write(reinterpret_cast<char *>(&numLODs), sizeof(int)); 526 527 float dist = 0; 528 ofile.write(reinterpret_cast<char *>(&dist), sizeof(float)); 529 530 ofile.write(reinterpret_cast<char *>(&mNumShapes), sizeof(int)); 517 //-- write scene entities 531 518 532 519 // all shapes belong to this scene entity 533 520 for (int i = 0; i < mNumShapes; ++ i) 534 521 { 522 // no transformation 523 bool hasTrafo = false; 524 ofile.write(reinterpret_cast<char *>(&hasTrafo), sizeof(bool)); 525 526 // a dummy lod 527 int numLODs = 1; 528 ofile.write(reinterpret_cast<char *>(&numLODs), sizeof(int)); 529 530 float dist = 0; 531 ofile.write(reinterpret_cast<char *>(&dist), sizeof(float)); 532 533 int numShapes = 1; 534 ofile.write(reinterpret_cast<char *>(&numShapes), sizeof(int)); 535 535 536 int shapeId = i; 536 537 ofile.write(reinterpret_cast<char *>(&shapeId), sizeof(int)); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/main.cpp
r3262 r3265 32 32 33 33 //const int numFiles = 879; 34 const int numFiles = 300;34 const int numFiles = 10; 35 35 36 36 vector<string> filenames;
Note: See TracChangeset
for help on using the changeset viewer.