Changeset 3089 for GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter
- Timestamp:
- 11/03/08 01:57:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/ObjConverter.cpp
r3076 r3089 169 169 170 170 #endif 171 geom->mVertices[i].x += 470.398f; 172 geom->mVertices[i].y += 240.364f; 173 geom->mVertices[i].z += 182.5f; 174 171 175 if (i < geom->mTexcoordCount) 172 176 { … … 238 242 while (fgets(str, len, file) != NULL) 239 243 { 240 if (1)//(line % 100) == 0)241 cout << "read line " << line << " " << str;244 // if (1)//(line % 100) == 0) 245 // cout << "read line " << line << " " << str; 242 246 switch (str[0]) 243 247 { … … 342 346 //-- texture 343 347 344 int texId = -1;345 //int texId = 0;348 //int texId = -1; 349 int texId = 0; 346 350 str.write(reinterpret_cast<char *>(&texId), sizeof(int)); 347 351 … … 386 390 //-- write textures 387 391 388 //int textureCount = 1;389 int textureCount = 0;392 int textureCount = 1; 393 //int textureCount = 0; 390 394 391 395 ofile.write(reinterpret_cast<char *>(&textureCount), sizeof(int)); … … 401 405 ofile.write(texName.c_str(), sizeof(char) * texnameSize); 402 406 403 int boundS = 1; 404 int boundT = 1; 407 int boundS = 1, boundT = 1; 405 408 406 409 ofile.write(reinterpret_cast<char *>(&boundS), sizeof(int));
Note: See TracChangeset
for help on using the changeset viewer.