{"id":232,"date":"2018-05-26T17:12:14","date_gmt":"2018-05-26T22:12:14","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=232"},"modified":"2018-05-26T17:12:14","modified_gmt":"2018-05-26T22:12:14","slug":"animations-are-driving-me-crazy","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/05\/26\/animations-are-driving-me-crazy\/","title":{"rendered":"Animations are driving me crazy"},"content":{"rendered":"<p>The reality is that the pipeline to use animated models exported from Blender into THREE.js just isn&#8217;t really ready yet.\u00a0 The glTF format is recommended for importing models into THREE.js going forward, but the Blender glTF exporter isn&#8217;t complete.\u00a0 It can only export a single animation per file, which is obviously insufficient for a game.\u00a0 Someone is working on improving the glTF exporter, but it&#8217;s impossible to know when that work will be done.\u00a0 I saw a thread on the THREE.js Discourse site mentioning the possibility of adding the option to play animations based on a range of frames.\u00a0 That would work just fine.\u00a0 I could just put the idle animation in the first 30 frames, the walk animation in the next 30, the run in the next 30, etc.\u00a0 Unfortunately this improvement isn&#8217;t on the roadmap for any particular release, so it may not ever be included.<\/p>\n<p>I think that for now, until the glTF exporter is improved, I&#8217;m going to use FBX files.\u00a0 I don&#8217;t like that it&#8217;s a proprietary format, but it works in Blender and THREE.js today.\u00a0 Since the source files are all saved in Blender anyway, so when the glTF exporter is completed I can just re-export everything in that format then modify the game&#8217;s code to import glTF files.\u00a0 This creates more work for me in the long run but it also provides a way to move forward with the development of Lyridia.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The reality is that the pipeline to use animated models exported from Blender into THREE.js just isn&#8217;t really ready yet.\u00a0 The glTF format is recommended for importing models into THREE.js going forward, but the Blender glTF exporter isn&#8217;t complete.\u00a0 It can only export a single animation per file, which is obviously insufficient for a game.\u00a0&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-planning-and-development"],"_links":{"self":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/232\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}