• <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>

            天行健 君子當自強而不息

            D3D Animation Basis

            D3D Animation Basis(10)      摘要: The remaining two draw_meshes functions duplicate the exact features of the first two, except that all meshes in the linked list of mesh objects are rendered.  
             
            D3D Animation Basis(9)      摘要: As for the second draw_mesh function, it skips using the DrawSubset function and uses its own function to render subsets of polygon faces, using the vertex shader and vertex declaration you specify. This second function is extremely useful if you are using vertex shaders to render your meshes.  
             
            D3D Animation Basis(8)      摘要: Now that you have your meshes loaded and you've updated those skinned meshes that needed updating, it is time to throw some pixels at the display and show off those meshes! In total, I have created four mesh−rendering functions to help you in your projects.  
             
            D3D Animation Basis(7)      摘要: A skinned mesh works like this: Each vertex is attached to an imaginary bone (which is specified by a frame object). As these frames move, so do the vertices attached to them. To update the coordinates of the vertices as the bones move, you need to call a special function that takes the source vertex data, transforms it according to the bones' transformations, and stores the results in a second mesh object. This special function is called ID3DXSkinInfo::UpdateSkinnedMesh. 
             
            D3D Animation Basis(6)      摘要: The second load_mesh function is much like the first, except that instead of loading an entire .X file into one D3DXMESHCONTAINER_EX object, you are able to load a single mesh object (using the D3DXLoadSkinMeshFromXof function) as pointed to by a ID3DXFileData object (used while parsing an .X file).   
             
            D3D Animation Basis(5)      摘要: The first of the mesh−related helper functions is load_mesh. Actually there are three versions of the load_mesh function. The first version is used to load a mesh from an .X file using the D3DXLoadMeshFromX function. That means all meshes contained within the .X file are compressed into a single mesh object, which is subsequently stored in a D3DXMESHCONTAINER_EX object. 
             
            D3D Animation Basis(4)      摘要: Moving on in the list of helper functions, you'll find load_vertex_shader. You'll use this function to help you load your vertex shaders, as well as prepare your vertex shader declarations.

            The actual code to the load_vertex_shader function is short, so instead of breaking it up to explain it, I'll give it to you all at once. 
             
            D3D Animation Basis(3)      摘要: Next in line for the helper functions is init_d3d, which you use to initialize Direct3D and create a 3D device and display window. I tried to keep the code as simple as possible, performing the typical initialization code you would use in any Direct3D application.  
             
             
            D3D Animation Basis(2)      摘要: Whereas you might be used to using the ID3DXMesh object to contain your mesh data, you may have found
            it a pain to store the mesh's material and effects data separately. Not only that, but what about using the other
            D3DX mesh objects, such as ID3DXPMesh and ID3DXSkinMesh? Why not just create a single mesh
            object that represents all mesh types and contains all material data along with it?
             
            D3D Animation Basis(1)      摘要: The D3DXFRAME object helps form a hierarchy of reference frames. These reference frames are used to
            connect a series of meshes together, with each frame having its own transformation to apply to the mesh
            connected to it. In this way of using frames to point to meshes, you can minimize the number of meshes used
            because you can reference meshes instead of having to reload them.  

            posted on 2008-04-15 13:28 lovedday 閱讀(561) 評論(0)  編輯 收藏 引用

            公告

            導航

            統(tǒng)計

            常用鏈接

            隨筆分類(178)

            3D游戲編程相關鏈接

            搜索

            最新評論

            中文字幕久久亚洲一区| 草草久久久无码国产专区| 亚洲国产婷婷香蕉久久久久久| 久久精品国产黑森林| 亚洲国产精品嫩草影院久久| 久久香综合精品久久伊人| 老色鬼久久亚洲AV综合| 久久精品国内一区二区三区 | 97久久国产亚洲精品超碰热 | 久久久久99精品成人片欧美| 99久久99久久精品免费看蜜桃| 日韩一区二区久久久久久| 久久这里有精品| 国产美女久久久| 亚洲av日韩精品久久久久久a| 久久福利青草精品资源站免费| 伊人久久一区二区三区无码| 99久久99久久| 久久九九久精品国产免费直播| 国产L精品国产亚洲区久久| 精品一二三区久久aaa片| 久久精品无码一区二区日韩AV| 久久亚洲私人国产精品vA| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 亚洲人成伊人成综合网久久久| 99久久婷婷国产综合精品草原| 久久天天躁狠狠躁夜夜网站| 亚洲精品WWW久久久久久| 久久久久亚洲精品无码网址| 欧美精品一本久久男人的天堂| 一本色道久久综合亚洲精品| 欧美久久久久久精选9999| 国产成人无码精品久久久免费| 久久久久四虎国产精品| 国产精品久久久久久一区二区三区| 一本久道久久综合狠狠爱| 久久九九兔免费精品6| 77777亚洲午夜久久多喷| 国产美女亚洲精品久久久综合| 国产激情久久久久久熟女老人| 久久中文字幕人妻丝袜|