Mesh
- character/avatar_upper_body.llm + avatar_lad.xml => Viewer
- http://community.secondlife.com/t5/Mesh/How-to-Morphing-avatar-meshes-sort-of/td-p/444963
- http://wiki.secondlife.com/wiki/Avatar_Appearance
struct morph [] { char[64] morphName S32 numVertices struct vertices[ numVertices ] { U32 vertexIndex LLVector3 coord LLVector3 normal LLVector3 binormal LLVector2 texCoord } } char[64] "End Morphs"
- LLPolyMorphData -> LLPolyMeshSharedData -> LLPolyMesh -> LLPolyMorphData
- LLCharacter::updateVisualParams() -> LLPolyMorphTarget::apply()
llpolymorph.h
- 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; };
Counter: 1204,
today: 2,
yesterday: 0
最終更新: 2012-04-11 (水) 09:17:37 (JST) (4625d) by iseki