{"id":912,"date":"2022-08-03T21:02:52","date_gmt":"2022-08-03T13:02:52","guid":{"rendered":"https:\/\/www.acgloby.com\/?p=912"},"modified":"2022-08-03T21:02:52","modified_gmt":"2022-08-03T13:02:52","slug":"opengl-assimp%e6%a8%a1%e5%9e%8b%e5%8a%a0%e8%bd%bd%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.acgloby.com\/index.php\/2022\/08\/03\/opengl-assimp%e6%a8%a1%e5%9e%8b%e5%8a%a0%e8%bd%bd%e5%ba%93\/","title":{"rendered":"OpenGL-Assimp\u6a21\u578b\u52a0\u8f7d\u5e93"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Assimp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Assimp<\/strong>\u662f<strong>Open Asset Import Library<\/strong>\uff08\u5f00\u653e\u7684\u8d44\u4ea7\u5bfc\u5165\u5e93\uff09\u7684\u7f29\u5199\uff0c\u7531\u4e8e<strong>Assimp<\/strong>\u7684\u6570\u636e\u7ed3\u6784\u4fdd\u6301\u4e0d\u53d8\uff0c\u4e0d\u8bba\u5bfc\u5165\u7684\u662f\u4ec0\u4e48\u79cd\u7c7b\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u5b83\u90fd\u80fd\u591f\u5c06\u6211\u4eec\u4ece\u8fd9\u4e9b\u4e0d\u540c\u7684\u6587\u4ef6\u683c\u5f0f\u4e2d\u62bd\u8c61\u51fa\u6765\uff0c\u7528\u540c\u4e00\u79cd\u65b9\u5f0f\u8bbf\u95ee\u6211\u4eec\u9700\u8981\u7684\u6570\u636e\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.acgloby.com\/wp-content\/uploads\/2022\/08\/image-11.png\" alt=\"OpenGL-Assimp\u6a21\u578b\u52a0\u8f7d\u5e93\" title=\"OpenGL-Assimp\u6a21\u578b\u52a0\u8f7d\u5e93\"><img decoding=\"async\" src=\"https:\/\/www.acgloby.com\/wp-content\/uploads\/2022\/08\/image-11.png\" alt=\"\" class=\"wp-image-913\"\/><\/a><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\"><li>\u6240\u6709\u7684\u573a\u666f\/\u6a21\u578b\u6570\u636e\u90fd\u5305\u542b\u5728Scene\u5bf9\u8c61\u4e2d\u3002Scene\u5bf9\u8c61\u4e5f\u5305\u542b\u4e86\u573a\u666f\u6839\u8282\u70b9\u7684\u5f15\u7528\u3002<\/li><li>\u573a\u666f\u7684Root node\uff08\u6839\u8282\u70b9\uff09\u53ef\u80fd\u5305\u542b\u5b50\u8282\u70b9\uff08\u548c\u5176\u5b83\u7684\u8282\u70b9\u4e00\u6837\uff09\uff0c\u5b83\u4f1a\u6709\u4e00\u7cfb\u5217\u6307\u5411\u573a\u666f\u5bf9\u8c61\u4e2d<var>mMeshes<\/var>\u6570\u7ec4\u4e2d\u50a8\u5b58\u7684\u7f51\u683c\u6570\u636e\u7684\u7d22\u5f15\u3002Scene\u4e0b\u7684<var>mMeshes<\/var>\u6570\u7ec4\u50a8\u5b58\u4e86\u771f\u6b63\u7684Mesh\u5bf9\u8c61\uff0c\u8282\u70b9\u4e2d\u7684<var>mMeshes<\/var>\u6570\u7ec4\u4fdd\u5b58\u7684\u53ea\u662f\u573a\u666f\u4e2d\u7f51\u683c\u6570\u7ec4\u7684\u7d22\u5f15\u3002<\/li><li>\u4e00\u4e2aMesh\u5bf9\u8c61\u672c\u8eab\u5305\u542b\u4e86\u6e32\u67d3\u6240\u9700\u8981\u7684\u6240\u6709\u76f8\u5173\u6570\u636e\uff0c\u50cf\u662f\u9876\u70b9\u4f4d\u7f6e\u3001\u6cd5\u5411\u91cf\u3001\u7eb9\u7406\u5750\u6807\u3001\u9762(Face)\u548c\u7269\u4f53\u7684\u6750\u8d28\u3002<\/li><li>\u4e00\u4e2a\u7f51\u683c\u5305\u542b\u4e86\u591a\u4e2a\u9762\u3002Face\u4ee3\u8868\u7684\u662f\u7269\u4f53\u7684\u6e32\u67d3\u56fe\u5143(Primitive)\uff08\u4e09\u89d2\u5f62\u3001\u65b9\u5f62\u3001\u70b9\uff09\u3002\u4e00\u4e2a\u9762\u5305\u542b\u4e86\u7ec4\u6210\u56fe\u5143\u7684\u9876\u70b9\u7684\u7d22\u5f15\u3002<\/li><li>\u4e00\u4e2a\u7f51\u683c\u4e5f\u5305\u542b\u4e86\u4e00\u4e2aMaterial\u5bf9\u8c61\uff0c\u5b83\u5305\u542b\u4e86\u4e00\u4e9b\u51fd\u6570\u80fd\u8ba9\u6211\u4eec\u83b7\u53d6\u7269\u4f53\u7684\u6750\u8d28\u5c5e\u6027\uff0c\u6bd4\u5982\u8bf4\u989c\u8272\u548c\u7eb9\u7406\u8d34\u56fe\uff08\u6bd4\u5982\u6f2b\u53cd\u5c04\u548c\u955c\u9762\u5149\u8d34\u56fe\uff09\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6784\u5efaAssimp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Visual Studio\u53ef\u4ee5\u901a\u8fc7 <strong>\u9879\u76ee-\u7ba1\u7406NuGet\u7a0b\u5e8f\u5305<\/strong> \u6765\u5b89\u88c5Assimp\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.acgloby.com\/wp-content\/uploads\/2022\/08\/image-12.png\" alt=\"OpenGL-Assimp\u6a21\u578b\u52a0\u8f7d\u5e93\" title=\"OpenGL-Assimp\u6a21\u578b\u52a0\u8f7d\u5e93\"><img decoding=\"async\" src=\"https:\/\/www.acgloby.com\/wp-content\/uploads\/2022\/08\/image-12.png\" alt=\"\" class=\"wp-image-916\"\/><\/a><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.acgloby.com\/wp-content\/uploads\/2022\/08\/image-13.png\" alt=\"OpenGL-Assimp\u6a21\u578b\u52a0\u8f7d\u5e93\" title=\"OpenGL-Assimp\u6a21\u578b\u52a0\u8f7d\u5e93\"><img decoding=\"async\" src=\"https:\/\/www.acgloby.com\/wp-content\/uploads\/2022\/08\/image-13-1024x607.png\" alt=\"\" class=\"wp-image-917\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u7136\u4e5f\u53ef\u4ee5\u53bbAssimp\u7684<a href=\"https:\/\/github.com\/assimp\/assimp\/releases\" target=\"_blank\"  rel=\"nofollow\" >GitHub<\/a>\u4e0b\u8f7d\uff0c\u901a\u8fc7<a href=\"https:\/\/cmake.org\/\" target=\"_blank\"  rel=\"nofollow\" >CMake<\/a>\u5de5\u5177\u8fdb\u884c\u6307\u5b9avs\u7248\u672c\u7684\u7f16\u8bd1\uff0c\u751f\u6210lib\uff0cdll\u6587\u4ef6\u7ed1\u5b9a\u5230vs\u4e2d\u3002\u6ce8\u610fopengl\u4f7f\u7528\u7684\u662f32\u4f4d\u5c31\u4e0b\u8f7d32\u4f4d\u7684\uff0c64\u4f4d\u5c31\u4e0b64\u4f4d\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assimp Assimp\u662fOpen Asset Import Library\uff08\u5f00\u653e\u7684\u8d44\u4ea7\u5bfc\u5165\u5e93\uff09\u7684\u7f29\u5199\uff0c\u7531\u4e8eAssimp\u7684\u6570\u636e\u7ed3 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-graphics"],"_links":{"self":[{"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/posts\/912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/comments?post=912"}],"version-history":[{"count":0,"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/posts\/912\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/media?parent=912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/categories?post=912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.acgloby.com\/index.php\/wp-json\/wp\/v2\/tags?post=912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}