Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cardbord SDK

Cardbord SDK

002c7b95e7b8f34186ffd6abaa136a99?s=128

Naoki Morioka

November 05, 2015
Tweet

Transcript

  1. $BSECPSE4%, !O@NPSJPLB ؔ੢ϞόΠϧΞϓϦݚڀձ

  2. "CPVUNF w ੝Ԭঘه !O@NPSJPLB  w ϑϦϡʔגࣜձࣾͰΞϓϦ։ൃʴσʔλղੳ΍ͬͯ ·͢ "OESPJE J04

    αʔόαΠυ+BWBFUD
  3. w ϓϦػ࿈ಈ4/4αʔϏε w J04"OESPJEΞϓϦఏڙத w ձһ਺ສਓಥഁ

  4. ຊ೔ͷओ୊

  5. $BSECPSBE w IUUQTXXXHPPHMFDPNHFUDBSECPBSE w ؆୯ʹָ͘͠ɺखࠒͳՁ֨ͰόʔνϟϧϦΞ ϦςΟ 73 Λମݧ

  6. None
  7. 8IBU`TUIJT w Ϗϡʔϫ͸େମμϯϘʔϧͰग़͍ͯΔ w 0DVMVT3JGU ΦΩϡϥεϦϑτʣͷ҆Ձ൛ͱߟ͑ͯ0, w ,/097OFYVTʹಉࠝ͞Ε͍ͯΔɻ୺຤ૢ࡞༻Ϙ λϯ͕෇͍͍ͯΔɻ

  8. None
  9. ݪཧ εϚʔτϑΥϯը໘ ತܕϨϯζ ؟ w ࠨӈͷͦΕͧΕͷ؟ʹରԠ͢Δผʑͷը໘ΛεϚʔτϑΥϯͰදࣔ w ತܕϨϯζΛ௨͢͜ͱʹΑΓয఺Λௐ੔ͯ͠%ͬΆ͘ݟ͑Δ

  10. 7JFXFS6TFS*OUFSGBDF w ಄Λ܏͚Δ w τϦΨʔ16-- w Ұ୴֎ͯ͠μϯϘʔϧΛ›ճసͯ͠ॎʹ޲͚Δ

  11. $BSECPBSE4%, w $BSECPBSE4%,GPS"OESPJE w $BSECPBSE4%,GPS6OJUZˠJ04

  12. 6OJUZΘ͔Βͳ͍ͷͰ "OESPJEͷํ΍Γ·͢

  13. $BSECPBSE4%, GPS"OESPJE w $BSECPBSE"DUJWJUZΛܧঝͯ͠73࣮૷Λهड़ग़དྷΔ w 73දࣔ༻ͷ7JFXͱ0WFSMBZ༻ͷ7JFX͕ఏڙ͞ΕΔ w αϯϓϧ࣮૷͋Γ 0QFO(-&4Ͱ࡞੒ 

    w IUUQTHJUIVCDPNHPPHMFTBNQMFTDBSECPBSE KBWB
  14. /FX'SBNF w ϨϯμϦϯάͷຖϑϨʔϜඳըલʹݺͼग़͞ΕΔ w αϯϓϧͰ͸IFBE ಄ͷ֯౓΍Ґஔ Λอଘ /** * before

    we draw a frame. * * @param headTransform The head transformation in the new frame. */ @Override public void onNewFrame(HeadTransform headTransform) { ... }
  15. %SBX&ZF w ຖϑϨʔϜʹ͓͚Δย໨ͮͭݸผʹඳըॲཧΛهࡌ w 73޲͚ͷತิਖ਼ॲཧ͸͜͜Ͱ࣮ࢪɻิਖ਼͸$BSECPSE4%,ʹͯఏڙ /** * Draws a frame

    for an eye. * * @param eye The eye to render. Includes all required transformations. */ @Override public void onDrawEye(Eye eye) { ... // Apply the eye transformation to the camera. Matrix.multiplyMM(mView, 0, eye.getEyeView(), 0, mCamera, 0); // Set the position of the light Matrix.multiplyMV(mLightPosInEyeSpace, 0, mView, 0, LIGHT_POS_IN_WORLD_SPACE, 0); ... }
  16. 5SJHHFS1VMM w $BSECPBSE7JFXFSͷτϦΨʔΛԡͨ͠ͱ͖ͷॲཧ /** * Called when the Cardboard trigger

    is pulled. */ @Override public void onCardboardTrigger() { ... overlayView.show3DToast("ؔϞό!"); ... }
  17. σόΠε޷͖ͷํ΁

  18. +6.1 w ੈքΛ73ಈըͰࡱӨ͢ΔϓϩδΣΫτ w ୆ͷΧϝϥͰ›ࡱӨ w :PV5VCFͷ7JEFPͰ੒Ռ͕ެ։͞Εͯ·͢

  19. None
  20. 0%:44&: w (P1SP੡඼ w ಉظͨ͠୆ͷ )&30#MBDLΧϝϥΛ ୆ͷϦάʹ·ͱΊͨ w ݶఆੜ࢈ͷͨΊొ࿥੍ ൢച

  21. ·ͱΊ w σόΠε͕௿Ձ֨ w :PV5VCFʹͯίϯςϯπ഑৴ج൫͸͋Δ w ΞϓϦ࣮૷΋؀ڥ͸༻ҙ͞Ε͍ͯΔ w ྲྀߦΔ͔΋ʂ

  22. ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ