flagflag  
6: 2011-09-14 (Wed) 16:04:48 iseki source 7: 2011-09-16 (Fri) 18:52:16 iseki source
Line 30: Line 30:
- llcharacter/llkeyframemotionparam.cpp - llcharacter/llkeyframemotionparam.cpp
 +#br
 +**** Imprudence [#f651a3f5]
 +
 +
 +motion は LLKeyframeMotionのsuper class
 +
 +
 + LLKeyframeMotion::onInitialize
 +   if mAssetStatus==ASSET_UNDEFINED
 +       LLKeyframeMotion::JointMotionList* joint_motion_list = LLKeyframeDataCache::getKeyframeData(get​ID());
 +       if joint_motion_list != null
 +           mJointMotionList = joint_motion_list;
 +           mAssetStatus = ASSET_LOADED;
 +           return
 +
 +       Read Data or recieve UDP
 +       deserialize(dp)
 +           mJointMotionList を生成
 +           mJointMotionList にデータをセット
 +           LLKeyframeDataCache::addKeyframeData(get​ID(),  mJointMotionList); キャッシュ  getID(): mID (アッセットのUUID)
 +       mAssetStatus = ASSET_LOADED;
 +
 +
 +
 + llcharacter.cpp
 +   LLMotionController::createMotion()
 +       motion->onInitialize
 +
 +
 + llcharacter.cpp
 +   LLMotionController::updateLoadingMotions​
 +       motion->onInitialize
 +       LLMotionController::activateMotionInstan​ce
 +           motion->activate
 +               LLkeyFrameMotion::onActive
 +           motion->onUpdate
 +
 +
 +
 + llcharacter.cpp
 +   LLMotionController::startMotion()
 +       if motion==null
 +           LLMotionController::createMotion()
 +               motion->onInitialize
 +       LLMotionController::activateMotionInstan​ce
 +           motion->activate
 +               LLkeyFrameMotion::onActive
 +           motion->onUpdate
 +
 +
 +キャッシュさせない
 +  motion->onUpdate でデータをクリアすれば,onInitializeで毎回データを読みに行く <- Kinectのデータをぶち込む
 +
 +
 +  LLKeyframeDataCache::removeKeyframeData(​getID());
 + mAssetStatus = ASSET_UNDEFINED;
 +
 +
 +320209e6-6d42-42ff-a30f-9b7610598f24 Yatta
 +0e58b0de-34cd-4712-9d96-f9fe85b211c1 sexywalk
#br #br


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

46 user(s) are online (9 user(s) are browsing xpwiki)

Members: 0
Guests: 46

more...

Access Counter

Today : 2439243924392439
Yesterday : 4345434543454345
Total : 2365958023659580236595802365958023659580236595802365958023659580
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com