ModelViewer:OSG读取模型的顶点、法向量、纹理坐标并用随机颜色绘制出来

上传者: 42097369 | 上传时间: 2021-05-27 08:36:47 | 文件大小: 39.35MB | 文件类型: ZIP
ModelViewer OSG读取模型的顶点、法向量、纹理坐标并用随机颜色绘制出来 简介 此程序是在使用OSG的过程中,需要获取模型的顶点、法向、纹理坐标等信息,然后使用不同的颜色绘制出来,以区别不同模型。为了知道模型的名称,在模型的周围增加了模型的名称显示。效果如下: 有关OSG中,怎么读取模型的坐标、纹理、法向量等信息,在我的博客中有详细的介绍,有兴趣的可以看看:

文件下载

资源详情

[{"title":"( 79 个子文件 39.35MB ) ModelViewer:OSG读取模型的顶点、法向量、纹理坐标并用随机颜色绘制出来","children":[{"title":"ModelViewer-master","children":[{"title":"OSGEnvironment","children":[{"title":"ipch","children":[{"title":"OSGTEST-19437991","children":[{"title":"MODELVIEWER-a587b7af.ipch <span style='color:#111;'> 3.38MB </span>","children":null,"spread":false},{"title":"MODELVIEWER-84d21469.ipch <span style='color:#111;'> 3.38MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".vs","children":[{"title":"OSGTest","children":[{"title":"v14","children":[{"title":".suo <span style='color:#111;'> 37.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"OSGTest","children":[{"title":"Trianngle.h <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"Vertex.cpp <span style='color:#111;'> 87B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 219B </span>","children":null,"spread":false},{"title":"Geom.h <span style='color:#111;'> 810B </span>","children":null,"spread":false},{"title":"OSGTest.vcxproj.user <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"PositionVisitor.h <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"Trianngle.cpp <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"Utility.h <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"Geom.cpp <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"OSGTest.vcxproj <span style='color:#111;'> 9.68KB </span>","children":null,"spread":false},{"title":"Vertex.h <span style='color:#111;'> 605B </span>","children":null,"spread":false},{"title":"OBBbox.cpp <span style='color:#111;'> 14.78KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"OSGTest.log <span style='color:#111;'> 198B </span>","children":null,"spread":false},{"title":"Trianngle.obj <span style='color:#111;'> 79.56KB </span>","children":null,"spread":false},{"title":"OSGTest.obj <span style='color:#111;'> 3.23MB </span>","children":null,"spread":false},{"title":"vc140.idb <span style='color:#111;'> 4.15MB </span>","children":null,"spread":false},{"title":"TriangleIndex.obj <span style='color:#111;'> 217.88KB </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 11.72KB </span>","children":null,"spread":false},{"title":"Vertex.obj <span style='color:#111;'> 78.04KB </span>","children":null,"spread":false},{"title":"PositionVisitor.obj <span style='color:#111;'> 1.27MB </span>","children":null,"spread":false},{"title":"ModelAttributeFunctor.obj <span style='color:#111;'> 944.52KB </span>","children":null,"spread":false},{"title":"Utility.obj <span style='color:#111;'> 1.16MB </span>","children":null,"spread":false},{"title":"vc140.pdb <span style='color:#111;'> 8.94MB </span>","children":null,"spread":false},{"title":"Geom.obj <span style='color:#111;'> 1.23MB </span>","children":null,"spread":false},{"title":"ModelViewer.tlog","children":[{"title":"link.read.1.tlog <span style='color:#111;'> 5.60KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 6.87KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 6.59KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 202.45KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"ModelViewer.lastbuildstate <span style='color:#111;'> 202B </span>","children":null,"spread":false}],"spread":false},{"title":"ModelViewer.pch <span style='color:#111;'> 3.25MB </span>","children":null,"spread":false}],"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 205B </span>","children":null,"spread":false},{"title":"OBBbox.h <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"OSGTest.vcxproj.filters <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"TriangleIndex.h <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"Utility.cpp <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"PositionVisitor.cpp <span style='color:#111;'> 4.65KB </span>","children":null,"spread":false},{"title":"OSGTest.cpp <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"OSGTest.log <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":"Trianngle.obj <span style='color:#111;'> 217.19KB </span>","children":null,"spread":false},{"title":"OSGTest.obj <span style='color:#111;'> 15.17MB </span>","children":null,"spread":false},{"title":"TriangleIndex.obj <span style='color:#111;'> 4.39MB </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 110.91KB </span>","children":null,"spread":false},{"title":"Vertex.obj <span style='color:#111;'> 216.86KB </span>","children":null,"spread":false},{"title":"PositionVisitor.obj <span style='color:#111;'> 10.19MB </span>","children":null,"spread":false},{"title":"ModelAttributeFunctor.obj <span style='color:#111;'> 8.91MB </span>","children":null,"spread":false},{"title":"Utility.obj <span style='color:#111;'> 10.02MB </span>","children":null,"spread":false},{"title":"vc140.pdb <span style='color:#111;'> 8.24MB </span>","children":null,"spread":false},{"title":"Geom.obj <span style='color:#111;'> 10.07MB </span>","children":null,"spread":false},{"title":"ModelViewer.tlog","children":[{"title":"link.read.1.tlog <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 7.08KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 201.73KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"ModelViewer.lastbuildstate <span style='color:#111;'> 204B </span>","children":null,"spread":false}],"spread":false},{"title":"ModelViewer.pch <span style='color:#111;'> 3.06MB </span>","children":null,"spread":false}],"spread":false},{"title":"ModelAttributeFunctor.h <span style='color:#111;'> 681B </span>","children":null,"spread":false},{"title":"TriangleIndex.cpp <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"ModelAttributeFunctor.cpp <span style='color:#111;'> 916B </span>","children":null,"spread":false}],"spread":false},{"title":"OSGTest.VC.db <span style='color:#111;'> 35.55MB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"ModelViewer.ilk <span style='color:#111;'> 2.84MB </span>","children":null,"spread":false},{"title":"ModelViewer.pdb <span style='color:#111;'> 13.23MB </span>","children":null,"spread":false},{"title":"ModelViewer.exe <span style='color:#111;'> 645.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"ModelViewer.iobj <span style='color:#111;'> 3.42MB </span>","children":null,"spread":false},{"title":"ModelViewer.pdb <span style='color:#111;'> 8.26MB </span>","children":null,"spread":false},{"title":"ModelViewer.ipdb <span style='color:#111;'> 762.03KB </span>","children":null,"spread":false},{"title":"ModelViewer.exe <span style='color:#111;'> 119.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"OSGTest.sln <span style='color:#111;'> 945B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 858B </span>","children":null,"spread":false},{"title":"Screenshoot","children":[{"title":"2019070111173621.png <span style='color:#111;'> 29.90KB </span>","children":null,"spread":false},{"title":"20190701111701610.png <span style='color:#111;'> 33.10KB </span>","children":null,"spread":false},{"title":"20190701111719240.png <span style='color:#111;'> 27.07KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明