{"_id":"s-anim","_rev":"19-0177f38ffb66f1a2051495ca98693c89","name":"s-anim","description":"Animated stereographic projection of a spherical panorama","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"s-anim","version":"1.0.0","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","image-size":"0.3.x"},"bin":{"s-anim":"app.js"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"gitHead":"9d7ea18d47b0175a848f5a0d87004368ccbe8f1a","_id":"s-anim@1.0.0","scripts":{},"_shasum":"9a4501f49670f79d00bdde3c0ae566f8c0e0eb6a","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"9a4501f49670f79d00bdde3c0ae566f8c0e0eb6a","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.0.0.tgz","integrity":"sha512-YkqLa3GFwTjOwintbPp5Oq7GviLBhujmvBltfwxcpqYNUfx9fBQ1r9TfRnjQFGB4QjaDrfztRjkfzQT5FDNLmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXVn29XhC78UYgCT/kKnXWUVfPMdVEq6H+LrpmCBe8CAIgbYwSj+dvr143m+hInGHLy8DUOsIARlypw20+e1+Q0tU="}]}},"1.0.1":{"name":"s-anim","version":"1.0.1","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","image-size":"0.3.x"},"bin":{"s-anim":"app.js"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"gitHead":"061b5cb5dce347ec2fbd3e43204777daa232f599","_id":"s-anim@1.0.1","scripts":{},"_shasum":"8fafe1316c44648576b568c69f34b655233ce3d6","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"8fafe1316c44648576b568c69f34b655233ce3d6","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.0.1.tgz","integrity":"sha512-kA/cGuumkXp3BdpS+KTOh8dq5k8BopbMizZZR23CXL7gbDxcSx8h+olIEOOqtJVOsTm93NqYNXUSHE2cMLzf5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfNNJfy1H0VDTivukyAcl+tZsKOQut+AvaEcHuwyJbqQIhAK38TwIR1ufkvSovanFGQMzkCkcC3sqcj8ZXT7NnoDFh"}]}},"1.0.2":{"name":"s-anim","version":"1.0.2","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","image-size":"0.3.x"},"bin":{"s-anim":"app.js"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"gitHead":"43cccbf508c47ef4fe48b269d13fb7b2074d8aea","_id":"s-anim@1.0.2","scripts":{},"_shasum":"f36a5d37d392fe976cc12b63a3c546a9cf8e01b4","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"f36a5d37d392fe976cc12b63a3c546a9cf8e01b4","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.0.2.tgz","integrity":"sha512-Z2ewfcRX+S6h5zBPyyeKNvLpAl9gaPxPxXMzk8GbOU6HfB2pPvE1uFg6VbT5HFOc4PM8R/HV3Qzi3oxxoxtk2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBSoTmHQEOo+bUIw4p2ra6opHIva0De3/uLg9VyeIIlAiAlb/UjAPypVeSKPSxWjHLUfAHHq2iQkpArGUGSEETvOA=="}]}},"1.0.3":{"name":"s-anim","version":"1.0.3","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","image-size":"0.3.x"},"bin":{"s-anim":"./app.js"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"gitHead":"43cccbf508c47ef4fe48b269d13fb7b2074d8aea","_id":"s-anim@1.0.3","scripts":{},"_shasum":"b51efc9c2a494524bf08490dd3a5996a42dfdfe0","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"b51efc9c2a494524bf08490dd3a5996a42dfdfe0","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.0.3.tgz","integrity":"sha512-ebIXHhIwgFSyKDRilUCud05vfgmA4eXWUIeJsUNGlp5dLFmM+acrzQo2n1mQOohV+UjmRgoZxYw9MHehZ42ggg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArqivFQf4hl0bkiOG8G8pciQVNDMNYVeNHTPr09zM20AiBhxnDEUN5X+kgy7b10tt/flyodLp5pcY8nVlznkudQyQ=="}]}},"1.0.4":{"name":"s-anim","version":"1.0.4","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"homepage":"https://github.com/feklee/s-anim","description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","image-size":"0.3.x"},"main":"app.js","bin":{"s-anim":"./app.js"},"repository":{"type":"git","url":"https://github.com/feklee/s-anim"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"bugs":{"url":"https://github.com/feklee/s-anim/issues"},"gitHead":"4e76d9d757e604a4efbba1b56f8a31c6fb77d8f2","_id":"s-anim@1.0.4","scripts":{},"_shasum":"02b1c3399ef56b49e694bef096ae88b4e1ab1e0e","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"02b1c3399ef56b49e694bef096ae88b4e1ab1e0e","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.0.4.tgz","integrity":"sha512-PhM94O4FNSvFOeOcTSQDi83GrDm0N6cutRjgXaYIDAsGkQePvM73zLlRPOjM+3ox2/4mkWyb04/qk2DUZNz1tA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC89WmtaGyWR8xaSDk6bM+ZaK1kroP+8sPRiEgWVd5pQAiEAtm8rphuoR5bB1fbnzrmwpEkSUvkjVXjS+SnVxu3zi0w="}]}},"1.0.5":{"name":"s-anim","version":"1.0.5","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"homepage":"https://github.com/feklee/s-anim","description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","image-size":"0.3.x"},"main":"app.js","bin":{"s-anim":"./app.js"},"repository":{"type":"git","url":"https://github.com/feklee/s-anim"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"bugs":{"url":"https://github.com/feklee/s-anim/issues"},"gitHead":"e0f44f183561291bcc2578d292c6ade69ee07675","_id":"s-anim@1.0.5","scripts":{},"_shasum":"a4d915b3fbf61005e68aa78557c9410e9f1e92dd","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"a4d915b3fbf61005e68aa78557c9410e9f1e92dd","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.0.5.tgz","integrity":"sha512-wUfZAyaSfbNwz9mljcyZ9btfPxGRa0pm9Jvj3A6uwh+jtbSSmPIOCQBefftj6bvaDidTTb3a4d9Msk0Nj7cFNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcgIIscXwjlWMiGvSWGQAamuBWTJGV30k/zyE9tH0E9gIhAIxMO/tBjyhrA4zX3b2enADisN6Ff/C/zVE7VszCcHyQ"}]}},"1.0.6":{"name":"s-anim","version":"1.0.6","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"homepage":"https://github.com/feklee/s-anim","description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","image-size":"0.3.x"},"main":"app.js","bin":{"s-anim":"./app.js"},"repository":{"type":"git","url":"https://github.com/feklee/s-anim"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"bugs":{"url":"https://github.com/feklee/s-anim/issues"},"gitHead":"b9904fcc3b2b7ea2a86189dc25a6914ab2287064","_id":"s-anim@1.0.6","scripts":{},"_shasum":"7f70caf28bf630da5092122fd7287638c0db7e0b","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"7f70caf28bf630da5092122fd7287638c0db7e0b","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.0.6.tgz","integrity":"sha512-WlxOF0CT4QoMQhnsjx2x646ejDIasMEmqZHtGXDv+XOhsQVOaNfv3gwSVyoXczewwUHLAzqktnmdeO2XmHM7eA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvwLAgfb59OptKDnWK7CMwJDag1O+UL8S17fR7D6SL6AiEA/w1XO3oNJ4aGvSlD2JSMjCybKSHanrUN4yP/zcb93Rc="}]}},"1.1.0":{"name":"s-anim","version":"1.1.0","author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"homepage":"https://github.com/feklee/s-anim","description":"Animated stereographic projection of a spherical panorama","dependencies":{"interpolating-polynomial":"1.x","linear-interpolator":"1.x","natural-spline-interpolator":"1.x","image-size":"0.3.x"},"bin":{"s-anim":"./app.js"},"repository":{"type":"git","url":"https://github.com/feklee/s-anim"},"license":"MIT","keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"bugs":{"url":"https://github.com/feklee/s-anim/issues"},"gitHead":"8ea245ed50fdf0b717b0ce9a356682de592c65b5","_id":"s-anim@1.1.0","scripts":{},"_shasum":"6d7e1abe731e506f0b8cdf1276491f46956280e8","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"feklee","email":"felix.klee@inka.de"},"maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"dist":{"shasum":"6d7e1abe731e506f0b8cdf1276491f46956280e8","tarball":"https://registry.npmjs.org/s-anim/-/s-anim-1.1.0.tgz","integrity":"sha512-/huw+Azfxqp/uY4ezX9BcU5XjYn0TKwShVnu/jXaKx9yrXHtF1jRSj4pMClv3DJ7GTkvyARPhHdWLjOIwRuuHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoZnTHdeFe000MCwjX22tm8w48bGXY0Eh1X5jRWk3FaAiATsJW9pQAz4jPJ8FOX+GwRpfNLYst4s6ATUk74q4Cs+A=="}]}}},"readme":"Introduction\n============\n\n*s-anim* is short for *stereographic animator*. It remaps a set of\nequirectangular images to a set of images in stereographic projection, also\nknown as little planet projection. For remapping, keyframes can be specified,\nto create something akin to a camera path.\n\n\nInstallation\n============\n\n 1. Install using the [npm][5] package manager for *Node.js:*\n\n        npm install -g s-anim\n\n 2. Install *Hugin 2013* or compatible, and make sure that the included command\n    line tool `nona` is in the executable path.\n\n\nUsage by example\n================\n\nSee the example directory:\n\n  * `input.jpg`: Photo made with the 2013 version of the Ricoh Theta\n\n  * `config.json`: Example configuration for animation\n\n  * `video.mp4`: Video made from output frames\n\nSteps:\n\n 1. Multiply the example image to match the number of frames you want to have:\n    000.jpg, 001.jpg, …, 199.jpg\n\n    Alternatively, and possibly more interesting, use a set of frames from a\n    video created e.g. with the Ricoh Theta m15.\n\n    Place all input frames into a subdirectory:\n\n        equirectangular\n\n 2. Create a directory for output files:\n\n        stereographic\n\n 3. Create a file `config.json`:\n\n        {\n            \"input\": {\n                \"path\": \"equirectangular\"\n            },\n            \"output\": {\n                \"width\": 480,\n                \"height\": 480,\n                \"path\": \"stereographic\"\n            },\n            \"interpolation\": \"natural-spline\",\n            \"keyFrames\": {}\n        }\n\n    Available methods for interpolation and extrapolation:\n\n      + `linear`: Linear interpolation between keyframes, with abrupt changes\n        of direction.\n\n      + `natural-spline`: Smooth interpolation along keyframes.\n\n      + `polynomial`: Lagrance polynomial interpolation. Certain keyframe\n        combinations result in *overreaction:* The animation temporarily spins\n        far in one direction then back: [Runge's phenomenon][6]\n\n    At least one entry needs to be present in the `keyFrames` section. See the\n    following steps for how to determine parameters with *Hugin.* Feel free to\n    use any other software to determine the key parameters: *field-of-view, yaw,\n    pitch,* and *roll*\n\n 4. Open *Hugin,* and add `000.jpg` to the project. Select the image, and\n    change *Lens type* to *Equirectangular*. In the *Advanced interface* go to\n    *Lens parameters*. Double click on the image file name, and change *Lens\n    degrees of view (v)* to 360.\n\n    ![Screenshot of Hugin 2013 with Photos tab][2]\n\n 5. Switch to the *Stitcher* tab. As *Projection* select *Stereographic*.\n    Adjust the canvas size to the output width and height specified in\n    `config.json`. For a start, change *Field of View* to 200; This parameter\n    controls zoom. Finally click *Preview panorama*.\n\n    ![Screenshot of Hugin 2013 with Stitcher tab][3]\n\n 6. In the *Panorama preview*, click *Num. Transf.*, and adjust *Yaw*, *Pitch*,\n    and *Roll*. When the Ricoh Theta was upright when shooting the picture, you\n    may want to start with changing *Pitch* by 90. This gives a bird’s-eye\n    view. Click on the image to quickly adjust pitch and yaw. To zoom in or\n    out, change the *Field of View* (previous step).\n\n    ![Screenshot of Hugin 2013 with Panorama preview][4]\n\n 7. Close *Panorama preview* and save the project to a file `hugin.pto`.\n\n 8. Open `hugin.pto` in a text editor:\n\n        # hugin project file\n        #hugin_ptoversion 2\n        p f4 w1500 h1500 v290  E8.14078 R0 n\"TIFF_m c:LZW r:CROP\"\n        m g1 i0 f0 m2 p0.00784314\n\n        # image lines\n        #-hugin  cropFactor=8\n        i w3584 h1792 f4 v360 Ra0 Rb0 Rc0 Rd0 Re0 Eev8.14078 Er1 Eb1 r-169.19 p-26.85 y-25.14 TrX0 TrY0 TrZ0 j0 a0 b0 c0 d0 e0 g0 t0 Va1 Vb0 Vc0 Vd0 Vx0 Vy0  Vm5 n\"C:\\some\\path\\000.jpg\"\n\n    Have a look at the line prefixed with `p`. It contains the selected field\n    of view (here: `v290`). Go to the line prefixed with `i`. It contains yaw,\n    pitch, and roll (here: `y-25.14`, `p-26.85`, `r-169.19`).\n\n    Use these parameters to add a key frame in `config.json`:\n\n        \"keyFrames\": {\n            \"000.jpg\": {\n                \"fov\": 290,\n                \"yaw\": -25.14,\n                \"pitch\": -26.85,\n                \"roll\": -169.19\n            }\n        }\n\n 9. Repeat the above steps for more key frames. Not all parameters need to be\n    specified for each key frame.\n\n 10. On the command line, in the same directory as `config.json`, run:\n\n        s-anim\n\n 11. Using a video editing software, assemble the frames into a video.\n\n\nCoding conventions\n==================\n\n  * Code needs to validate with JSLint.\n\n  * Comments are in Markdown.\n\n  * Avoid constructors (JS is classless), don’t throw exceptions (not\n    necessary in JS).\n\n  * Versioning: major.minor.bug-fix\n\n    Incompatible changes to the user interface mandate an update of the major\n    version.\n\n    Keep version up to date in:\n\n      + Git tags\n\n      + `package.json`\n\n\nLicense\n=======\n\nExcept where noted otherwise, files are licensed under the MIT License.\n\n\nThe MIT License (MIT)\n---------------------\n\nCopyright (c) 2014 [Felix E. Klee](felix.klee@inka.de)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[1]: http://www.dpreview.com/forums/post/53759494\n[2]: images/hugin_photos_tab.png\n[3]: images/hugin_stitcher_tab.png\n[4]: images/hugin_panorama_preview.png\n[5]: https://www.npmjs.org/\n[6]: https://en.wikipedia.org/wiki/Runge%27s_phenomenon\n","maintainers":[{"name":"feklee","email":"felix.klee@inka.de"}],"time":{"modified":"2022-06-26T15:08:13.511Z","created":"2014-11-20T23:44:47.947Z","1.0.0":"2014-11-20T23:44:47.947Z","1.0.1":"2014-11-20T23:57:53.637Z","1.0.2":"2014-11-21T00:09:05.359Z","1.0.3":"2014-11-21T00:29:11.604Z","1.0.4":"2014-11-21T00:36:46.180Z","1.0.5":"2014-11-21T00:45:52.615Z","1.0.6":"2014-11-21T00:55:28.861Z","1.1.0":"2014-11-23T22:24:36.195Z"},"keywords":["animation","video","hugin","panorama","spherical","equirectangular","stereographic"],"author":{"name":"Felix E. Klee","email":"felix.klee@inka.de"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/feklee/s-anim","repository":{"type":"git","url":"https://github.com/feklee/s-anim"},"bugs":{"url":"https://github.com/feklee/s-anim/issues"},"users":{"rafszul":true}}