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

Cardbord SDK

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Cardbord SDK

Avatar for Naoki Morioka

Naoki Morioka

November 05, 2015
Tweet

More Decks by Naoki Morioka

Other Decks in Technology

Transcript

  1. /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) { ... }
  2. %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); ... }
  3. 5SJHHFS1VMM w $BSECPBSE7JFXFSͷτϦΨʔΛԡͨ͠ͱ͖ͷॲཧ /** * Called when the Cardboard trigger

    is pulled. */ @Override public void onCardboardTrigger() { ... overlayView.show3DToast("ؔϞό!"); ... }