当前位置: 首页 > news >正文

宁波企业免费建站广州网络推广机构

宁波企业免费建站,广州网络推广机构,做兼职去什么网站,重庆市建设工程信息网官网人员公示公告一.帧/帧时刻 在常见的FPS游戏中,人物的行走,物体的变形等等都是采用动画的方式实现.计算机2D屏幕采用扫描周期的方式定时刷新渲染管线,C程序通过定义帧/帧时刻实现每一帧的渲染,不同的帧衔接起来便是一个完整的动画. Direct3D提供API实现2D屏幕的重绘: D3DDevice-Clear(0,…一.帧/帧时刻 在常见的FPS游戏中,人物的行走,物体的变形等等都是采用动画的方式实现.计算机2D屏幕采用扫描周期的方式定时刷新渲染管线,C程序通过定义帧/帧时刻实现每一帧的渲染,不同的帧衔接起来便是一个完整的动画. Direct3D提供API实现2D屏幕的重绘: D3DDevice-Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0);//清理GPU渲染管线d3dDevice-BeginScene(); D3DDevice-EndScene();D3DDevice-Present(NULL, NULL, NULL, NULL); //写入GPU渲染管线 二.顶点动画 通过在不同帧时刻加载不同的静态模型实现的动画既顶点动画,所以顶点动画是不同帧时刻的静态模型的组合.游戏引擎可选择性将帧与帧之间的顶点进行插值运算实现连续性效果. 顶点动画 obj1(time1) obj2(time2) obj3(time3) 故不同的游戏引擎导出的顶点动画最终是obj静态模型的组合.如常见M3D顶点动画3D文件,数据结构就是不同frame的静态模型组合MD3FileData.h: // ------------------------------------------------------------------------------- /** brief Data structure for the MD3 main header*/ struct Header {//! magic numberuint32_t IDENT;//! file format versionuint32_t VERSION;//! original name in .pak archivechar NAME[ AI_MD3_MAXQPATH ];//! unknownint32_t FLAGS;//! number of frames in the fileuint32_t NUM_FRAMES;//! number of tags in the fileuint32_t NUM_TAGS;//! number of surfaces in the fileuint32_t NUM_SURFACES;//! number of skins in the fileuint32_t NUM_SKINS;//! offset of the first frameuint32_t OFS_FRAMES;//! offset of the first taguint32_t OFS_TAGS;//! offset of the first surfaceuint32_t OFS_SURFACES;//! end of fileuint32_t OFS_EOF; } PACK_STRUCT;// ------------------------------------------------------------------------------- /** brief Data structure for the frame header*/ struct Frame {//! minimum boundsaiVector3D min;//! maximum boundsaiVector3D max;//! local origin for this frameaiVector3D origin;//! radius of bounding sphereai_real radius;//! name of framechar name[ AI_MD3_MAXFRAME ];} /* PACK_STRUCT */;// ------------------------------------------------------------------------------- /** brief Data structure for the surface header*/ struct Surface {//! magic numberint32_t IDENT;//! original name of the surfacechar NAME[ AI_MD3_MAXQPATH ];//! unknownint32_t FLAGS;//! number of frames in the surfaceuint32_t NUM_FRAMES;//! number of shaders in the surfaceuint32_t NUM_SHADER;//! number of vertices in the surfaceuint32_t NUM_VERTICES;//! number of triangles in the surfaceuint32_t NUM_TRIANGLES;//! offset to the triangle datauint32_t OFS_TRIANGLES;//! offset to the shader datauint32_t OFS_SHADERS;//! offset to the texture coordinate datauint32_t OFS_ST;//! offset to the vertex/normal datauint32_t OFS_XYZNORMAL;//! offset to the end of the Surface objectint32_t OFS_END; } /*PACK_STRUCT*/;三.骨骼动画 通过预先将静态模型拆分成若干顶点组(骨骼),每一帧通过每个骨骼的变换矩阵运算后得到新的obj静态模型既骨骼动画.所需内存相比顶点动画内存占用更小.适用连续性动作制作. 骨骼动画 (bone1×变换矩阵1 bone2×变换矩阵2)(time1) (bone1×变换矩阵3  bone2×变换矩阵4)(time2). 如常见的FBX,DAE文件存储骨骼动画采用将每一帧的变换矩阵进行封装存储,FBXDocument.h: namespace FBX {class AnimationCurve; class AnimationCurveNode; //顶点组节点 class AnimationLayer; class AnimationStack;}/** DOM class for skin deformer clusters (aka sub-deformers) */ class Cluster : public Deformer {private:WeightArray weights; //权重WeightIndexArray indices;aiMatrix4x4 transform; //每一帧对应的旋转矩阵aiMatrix4x4 transformLink; //每一帧对应的旋转矩阵const Model* node; };
http://www.zqtcl.cn/news/639883/

相关文章:

  • 黑龙江省网站建设电商的运营推广
  • 惠州建站模板wordpress更换主题帖子封面不显示
  • 网站开发为什么不用cgi了营销型网站案例
  • 网站怎么做飘窗电子商城网站建设的实训内容
  • 怎样申请建网站做it公司网站
  • 一个网站费用给人做ppt的网站吗
  • 免费简历在线制作网站杭州市网站建设公司
  • 用家庭宽带做网站 没有8080端口可以吗汕头教育学会网站建设
  • 南通seo公司网站广东涂料网站建设
  • 杭州哪家公司可以做网站苏州公司官网制作
  • 建一个网站大约多少钱做社区网站怎么做
  • 安阳建设网站企业单位网站建设内容需要什么
  • 网站如何被谷歌收录wordpress搭建企业官网
  • 网站 服务报价网站建设需要具备
  • 鹿泉企业网站建设wordpress使用支付宝当面付
  • 手机网站重要性彩票网站上的走势图是怎么做的
  • 牛牛襄阳网站建设做电商网站需要会些什么问题
  • 唯一做性视频的网站在线股票交易网站开发
  • 做二手的网站有哪些湛江小程序公司
  • 定制型网站建设wordpress md风格
  • 网站建设与推广的实训报告万网会员中心登录入口
  • 做网站如何推销电子商务类型的网站
  • 部署个人网站经典广告推广词
  • 海口模板建站定制南宁品牌网站设计公司
  • 江西网站设计方案网站通栏广告代码
  • 外包网站建设公司网站建设公司的销售好做吗
  • lol做任务领头像网站营销型网站重要特点是?
  • 设计师35岁后的出路嘉兴做网站优化的公司
  • 网站首页包含的内容网站网站注册
  • 企业网站改版建议北京市在建工程项目查询