Ignore:
Timestamp:
11/26/08 20:16:21 (16 years ago)
Author:
szirmay
Message:

I replaced the object saving code (to obj format) as texture coordinates were not saved properly. (It was only a copy-paste mistake: "vn" was written instead of "vt" :) )

Umenhoffer Tamas
BUTE TEAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoMesh.cpp

    r2341 r3171  
    431431        for (size_t     j       =       0;      j < mVertexBuffer->mVertexCount;        j++) 
    432432        {        
    433                 obj     <<      "vn " 
     433                obj     <<      "vt " 
    434434                        <<      mVertexBuffer->mTexCoords[j].x 
    435435                        <<      " " 
     
    445445                        for (size_t     j       =       0;      j < mSubMesh[i].mVertexBuffer->mVertexCount;    j++) 
    446446                        {        
    447                                 obj     <<      "vn " 
     447                                obj     <<      "vt " 
    448448                                        <<      mSubMesh[i].mVertexBuffer->mTexCoords[j].x 
    449449                                        <<      " " 
Note: See TracChangeset for help on using the changeset viewer.