flagflag  
20: 2012-03-03 (Sat) 13:22:09 iseki source 21: 2012-04-10 (Tue) 18:58:10 iseki source
Line 35: Line 35:
*** [[Technical Memo>./Memo]] [#sa4c33b0] *** [[Technical Memo>./Memo]] [#sa4c33b0]
#br #br
 +** Finger Motion [#xe2d83ed]
 +
 +*** Mesh [#e6fb0fc5]
 +
 +- character/avatar_upper_body.llm + [[avatar_lad.xml>./avatar_lad.xml]] => Viewer
 +#br
 +- http://marupeke296.com/index.html
 +- http://wiki.secondlife.com/wiki/Avatar_A​ppearance
 +   struct morph []
 +   {
 +       char[64] morphName
 +       S32 numVertices
 +       struct vertices[ numVertices ]
 +       {
 +           U32 vertexIndex
 +           LLVector3 coord
 +           LLVector3 normal
 +           LLVector3 binormal
 +           LLVector2 texCoord
 +       }
 +   }
 +
 +   char[64] "End Morphs"
 +#br
 +
 +- LLPolyMorphData -> LLPolyMeshSharedData -> LLPolyMesh -> LLPolyMorphData
 +- LLCharacter::updateVisualParams() -> LLPolyMorphTarget::apply()
 +#br
 +
 +*** llpolymorph.h [#gad26ccb]
 +- LLPolyMorphData
 + //-------------------------------------​----------------------------------------​
 + // LLPolyMorphData()
 + //-------------------------------------​----------------------------------------​
 + class LLPolyMorphData
 + {
 + public:
 +  LLPolyMorphData(const std::string& morph_name);
 +  ~LLPolyMorphData();
 +
 +  BOOL  loadBinary(LLFILE* fp, LLPolyMeshSharedData *mesh);
 +  const std::string& getName() { return mName; }
 +
 + public:
 +  std::string mName;
 +  // morphology
 +  U32        mNumIndices;
 +  U32*        mVertexIndices;
 +  U32        mCurrentIndex;
 +  LLVector3*  mCoords;
 +  LLVector3*  mNormals;
 +  LLVector3*  mBinormals;
 +  LLVector2*  mTexCoords;
 +  F32        mTotalDistortion; // vertex distortion summed over entire morph
 +  F32        mMaxDistortion;  // maximum single vertex distortion in a given morph
 +  LLVector3  mAvgDistortion;  // average vertex distortion, to infer directionality of the morph
 +  LLPolyMeshSharedData* mMesh;
 + };
 +#br
 +
 +*** llpolyMesh.h [#b2e1b287]
 +**** LLPolyMesh [#o09cbc83]
 +-- LLPolyMeshSharedData *mSharedData
 +-- getMorphData(const std::string& morph_name) で mMorphData からメッシュデータを得る
 +#br
 +**** LLPolyMeshSharedData [#n149cc3d]
 +-- morphdata_list_t mMorphData;  // LLPolyMorphData のリスト
 +-- loadMesh() でメッシュデータを読み込んで mMorphData リストに追加


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

75 user(s) are online (18 user(s) are browsing xpwiki)

Members: 0
Guests: 75

more...

Access Counter

Today : 8886888688868886
Yesterday : 1265612656126561265612656
Total : 2353431723534317235343172353431723534317235343172353431723534317
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com