Changeset 2322 for GTP/trunk/Lib/Geom/shared/GTGeometry
- Timestamp:
- 04/10/07 17:51:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoMesh.cpp
r2083 r2322 425 425 } 426 426 427 // tex coords. 428 for (size_t j = 0; j < mVertexBuffer->mVertexCount; j++) 429 { 430 obj << "vn " 431 << mVertexBuffer->mTexCoords[j].x 432 << " " 433 << mVertexBuffer->mTexCoords[j].y 434 << " " 435 << std::endl; 436 } 437 438 for (size_t i = 0; i < mSubMeshCount; i++) 439 { 440 if (!mSubMesh[i].mSharedVertexBuffer) 441 { 442 for (size_t j = 0; j < mSubMesh[i].mVertexBuffer->mVertexCount; j++) 443 { 444 obj << "vn " 445 << mSubMesh[i].mVertexBuffer->mTexCoords[j].x 446 << " " 447 << mSubMesh[i].mVertexBuffer->mTexCoords[j].y 448 << " " 449 << std::endl; 450 } 451 } 452 } 453 454 427 455 // Faces. 428 456 for (size_t i = 0; i < mSubMeshCount; i++) … … 433 461 int b = mSubMesh[i].mIndex[j+1] + 1 + vertex_count; 434 462 int c = mSubMesh[i].mIndex[j+2] + 1 + vertex_count; 435 obj << "f " << a << "/ /" << a << " "436 << b << "//" << b << " "437 << c << "//" << c << " "463 obj << "f " << a << "/" << a << "/" << a << " " 464 << b << "/" << b << "/" << b << " " 465 << c << "/" << c << "/" << c << " " 438 466 << std::endl; 439 467
Note: See TracChangeset
for help on using the changeset viewer.