• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            天行健 君子當自強而不息

            Working with skeletal animation

            Working with skeletal animation(8)      摘要: As shown in Figure 4.5, the SkeletalAnim mesh demonstrates what you learned in this chapter by loading a skinned mesh (the Tiny.x mesh provided in the DirectX SDK samples) and rendering it to the display. 
             
            Working with skeletal animation(7)      摘要: When your skeletal structure is in the pose you desire, it's time to update (or rebuild) the skinned mesh to match. Before you rebuild the skinned mesh, you must make sure you have constructed the secondary mesh container and updated the frame hierarchy. To review how to construct the mesh container, consult the "Creating a Secondary Mesh Container" section earlier in this chapter. To refresh your memory about how to update the frame hierarchy, review the "Updating the Hierarchy" section earlier  
             
            Working with skeletal animation(6)      摘要: If you peruse an .X file, you might notice some similarities between the Frame data objects and the SkinWeights objects. For every bone in your skeletal structure, there is a matching SkinWeights object embedded inside a Mesh object that contains the name of a Frame object (or a reference to a Frame object). That's right−each bone is named after its corresponding Frame data object!  
             
            Working with skeletal animation(5)      摘要: Loading a skinned mesh from an .X file is much like loading a standard mesh. Using a custom .X parser, you must enumerate your .X file objects using ParseObject. When it comes to processing a Mesh object, instead of calling the D3DXLoadMeshFromXof function to load the mesh data, you call the D3DXLoadSkinMeshFromXof function, which takes one additional parameter−a pointer to an ID3DXSkinInfo object. Check out the D3DXLoadSkinMeshFromXof prototype to see what I mean.  
             
            Working with skeletal animation(4)      摘要: In the first half of this chapter, you learned how to manipulate a hierarchy of bones that forms the basis of skeletal animation. That's all fine and dandy, but playing with imaginary bones isn't going to cut the mustard. Your game's players need to see all your hard work in the form of rendered meshes, which is where skinned meshes come in.  
             
            Working with skeletal animation(3)      摘要: After you have loaded the bone hierarchy, you can manipulate it. To modify the orientation of a bone, you first need to locate its respective frame structure by creating a function that recursively searches the frames for a specific bone name. Once it is found, a pointer to the frame is provided so you can directly access the frame's transformation matrix. The recursive search function might look something like this:  
             
            Working with skeletal animation(2)      摘要: Not to beat a dead horse (why would I do a horrible thing like that?), but I want to quickly review how to load a frame hierarchy from an .X file.

            For your frame hierarchy you should use the D3DXFRAME structure (or the D3DXFRAME_EX structure). As I mentioned earlier in this chapter, the D3DXFRAME structure (or the derived D3DXFRAME_EX structure) contains two pointers that you use to create the frame hierarchy−pFrameSibling and pFrameFirstChild. Your job is to link each frame you load fr  
             
            Working with skeletal animation(1)      摘要: Skeletal animation−two words that bring to mind thoughts of B−rate horror movies in which the dead have risen from the grave to stalk the living. However, those two words mean something entirely different to programmers. If you're like me, this topic gives you more tingles down your spine than any cheesy horror movie ever could. 

            posted on 2008-04-23 20:26 lovedday 閱讀(458) 評論(0)  編輯 收藏 引用


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            公告

            導(dǎo)航

            統(tǒng)計

            常用鏈接

            隨筆分類(178)

            3D游戲編程相關(guān)鏈接

            搜索

            最新評論

            久久久久99精品成人片直播| 日韩人妻无码精品久久久不卡| 97久久久久人妻精品专区 | 人妻精品久久久久中文字幕69| 久久久久久精品免费免费自慰| 亚洲va国产va天堂va久久| 狠狠色丁香久久综合婷婷| 观看 国产综合久久久久鬼色 欧美 亚洲 一区二区 | 久久成人国产精品二三区| 国产精品99久久精品爆乳| 一本色道久久综合狠狠躁篇| 性高湖久久久久久久久| 久久精品一区二区国产| 久久久精品国产| 久久这里只有精品久久| 久久夜色精品国产噜噜亚洲AV| 狠狠久久综合伊人不卡| 久久99精品久久久久久动态图| 精品久久综合1区2区3区激情| 亚洲AV无码久久精品色欲| 国产精品亚洲综合专区片高清久久久 | 99久久国产亚洲高清观看2024| 日韩中文久久| 精品久久人人妻人人做精品| 国产精品美女久久久久久2018| A狠狠久久蜜臀婷色中文网| 久久伊人精品青青草原日本| 国产精品久久久久国产A级| 亚洲国产精品无码久久青草 | 久久久老熟女一区二区三区| 亚洲精品无码久久毛片| 久久av免费天堂小草播放| 99精品久久精品一区二区| 99久久精品免费看国产一区二区三区| 久久国产精品99久久久久久老狼| 亚洲欧美成人综合久久久| 午夜肉伦伦影院久久精品免费看国产一区二区三区 | 久久97久久97精品免视看秋霞| 少妇久久久久久被弄高潮| 狠狠色婷婷久久综合频道日韩 | 一本一本久久aa综合精品|