{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/OpenCOLLADA/issues/355","labels_url":"https://api.github.com/repos/KhronosGroup/OpenCOLLADA/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/OpenCOLLADA/issues/355/comments","events_url":"https://api.github.com/repos/KhronosGroup/OpenCOLLADA/issues/355/events","html_url":"https://github.com/KhronosGroup/OpenCOLLADA/pull/355","id":112621537,"number":355,"title":"Feature/step animation","user":{"login":"mycheckgithub","id":2933765,"avatar_url":"https://avatars.githubusercontent.com/u/2933765?v=3","gravatar_id":"","url":"https://api.github.com/users/mycheckgithub","html_url":"https://github.com/mycheckgithub","followers_url":"https://api.github.com/users/mycheckgithub/followers","following_url":"https://api.github.com/users/mycheckgithub/following{/other_user}","gists_url":"https://api.github.com/users/mycheckgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/mycheckgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mycheckgithub/subscriptions","organizations_url":"https://api.github.com/users/mycheckgithub/orgs","repos_url":"https://api.github.com/users/mycheckgithub/repos","events_url":"https://api.github.com/users/mycheckgithub/events{/privacy}","received_events_url":"https://api.github.com/users/mycheckgithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-10-21T15:56:30Z","updated_at":"2015-10-27T17:13:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KhronosGroup/OpenCOLLADA/pulls/355","html_url":"https://github.com/KhronosGroup/OpenCOLLADA/pull/355","diff_url":"https://github.com/KhronosGroup/OpenCOLLADA/pull/355.diff","patch_url":"https://github.com/KhronosGroup/OpenCOLLADA/pull/355.patch"},"body":"Step animation support for baked/bezier export option\r\nAdd <step> marker with technique marker inside <Animation>\r\n\r\n\r\n\r\n\r\nAs collada specification 1.5 only support STEP semantic and not STEP_NEXT (like in maya)\r\n<step> has been added to tell us if STEP is a \"STEP\" or a \"STEP_NEXT\"\r\n\r\n\r\nin the case of bezier export option:\r\n\r\n<Name_array id=\"obj-interpolation-array\" count=\"4\">BEZIER STEP BEZIER STEP </Name_array>\r\n <technique profile=\"OpenCOLLADAMaya\">\r\n     <step>STEP_NEXT STEP </step>\r\n </technique>\r\n\r\nthe second interpolation type will be a \"STEP_NEXT\" \r\nthe 4th interpolation type will be a \"STEP\"\r\n\r\n\r\nin the case of baked export option:\r\n\r\nAll transformations are stacked so we need to know if one \"STEP\" interpolation at time T is used for \r\ntranslationX or/and translationY or/and translationZ or/and RotationX or/and RotationY or/and RotationZ or/and Scale X or/and Scale Y or/and Scale Z\r\n\r\n<Name_array id=\"obj-interp-array\" count=\"5\">BEZIER STEP STEP BEZIER STEP </Name_array>\r\n <technique profile=\"OpenCOLLADAMaya\">\r\n     <step>STEPNEXT_TX \r\n                STEP_RZ|STEP_RY|STEP_RX|STEP_TZ|STEP_TY            \r\n                STEP_RZ|STEP_RY|STEP_RX|STEP_TZ|STEP_TY|STEP_TX \r\n     </step> \r\n </technique>\r\n\r\nIn this case:\r\nthe 2nd interpolation is \"STEP\", it is a step for TranslationX and it's a \"STEP_NEXT\"\r\nthe 3rd interpolation is  \"STEP\", it is a step for RotationX & Y & Z and Translation Y & Z\r\nthe 5th interpolation is \"STEP\", it is a step for RotationX & Y & Z and Translation X & Y & Z\r\n\r\nstep is written like this:\r\n1/  \"STEP\" or \"STEPNEXT\" \r\n2/ \"_\" + \"TX\" or \"TY\" or \"TZ\" or \"RX\" or \"RY\" or \"RZ\" if needed (only for baked export option)\r\n3/ \"|\" is used to concatenate many different steps track if needed (only for baked export option)\r\n\r\n\r\n\r\nDuring Fl4re animation import,\r\n\r\n-  if the animation is a baked one, we can recreate matrix with all information from <Step> marker and add it at the right frame.\r\n2 matrix frames are generated at the same time T (timing of the step) one with the value just before the step and the other with the value just after the step. \r\nSo we can play animation only with interpolation between frames and step frame will be supported (by adding 2 frames at the time of the step)\r\n\r\n- if the animation is a bezier one, during baking/compression inside Fl4re, all informations from <Step> marker are used to add 2 frames at the time of the step for each track independently "},"comment":{"url":"https://api.github.com/repos/KhronosGroup/OpenCOLLADA/issues/comments/151573828","html_url":"https://github.com/KhronosGroup/OpenCOLLADA/pull/355#issuecomment-151573828","issue_url":"https://api.github.com/repos/KhronosGroup/OpenCOLLADA/issues/355","id":151573828,"user":{"login":"Fl4reBot","id":9259550,"avatar_url":"https://avatars.githubusercontent.com/u/9259550?v=3","gravatar_id":"","url":"https://api.github.com/users/Fl4reBot","html_url":"https://github.com/Fl4reBot","followers_url":"https://api.github.com/users/Fl4reBot/followers","following_url":"https://api.github.com/users/Fl4reBot/following{/other_user}","gists_url":"https://api.github.com/users/Fl4reBot/gists{/gist_id}","starred_url":"https://api.github.com/users/Fl4reBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fl4reBot/subscriptions","organizations_url":"https://api.github.com/users/Fl4reBot/orgs","repos_url":"https://api.github.com/users/Fl4reBot/repos","events_url":"https://api.github.com/users/Fl4reBot/events{/privacy}","received_events_url":"https://api.github.com/users/Fl4reBot/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T17:13:41Z","updated_at":"2015-10-27T17:13:41Z","body":"\nRefer to this link for build results (access rights to CI server needed): \nhttp://50.250.211.65:7070//job/openCOLLADA-ubuntu-pull-request/14/\nTest PASSed."}}