Playing With Apple ARKit

0
218

I bought a new iPhone 7 on the 10th Anniversary of iPhone and tried a couple of stuff with the ARKit ?‍?.body[data-twttr-rendered=”true”] background-color: transparent;.twitter-tweet margin: auto !important;

function notifyResize(height) height = height ? height : document.documentElement.offsetHeight; var resized = false; if (window.donkey && donkey.resize) donkey.resize(height); resized = true;if (parent && parent._resizeIframe) var obj = iframe: window.frameElement, height: height; parent._resizeIframe(obj); resized = true;if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.resize) window.webkit.messageHandlers.resize.postMessage(height); resized = true;return resized;twttr.events.bind(‘rendered’, function (event) notifyResize();); twttr.events.bind(‘resize’, function (event) notifyResize(););if (parent && parent._resizeIframe) var maxWidth = parseInt(window.frameElement.getAttribute(“width”)); if ( 500 < maxWidth) window.frameElement.setAttribute(“width”, “500”);

<

blockquote>To get started with ARKit + Unity try this tutorial. And for ARKit + SceneKit go with this one.

First I went with creating a 2D scene in which you can add random emoji to the world by tapping on the screen. It was using SpriteKit.

also read:-  The Great Capacity of Statistics & Collections: June Edition of 2017

body[data-twttr-rendered=”true”] background-color: transparent;.twitter-tweet margin: auto !important;

function notifyResize(height) height = height ? height : document.documentElement.offsetHeight; var resized = false; if (window.donkey && donkey.resize) donkey.resize(height); resized = true;if (parent && parent._resizeIframe) var obj = iframe: window.frameElement, height: height; parent._resizeIframe(obj); resized = true;if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.resize) window.webkit.messageHandlers.resize.postMessage(height); resized = true;return resized;twttr.events.bind(‘rendered’, function (event) notifyResize();); twttr.events.bind(‘resize’, function (event) notifyResize(););if (parent && parent._resizeIframe) var maxWidth = parseInt(window.frameElement.getAttribute(“width”)); if ( 500 < maxWidth) window.frameElement.setAttribute(“width”, “500”);

Then I was creating few apps based on 3D models with SceneKit. The best one among them is Green Work Space ?.body[data-twttr-rendered=”true”] background-color: transparent;.twitter-tweet margin: auto !important;

function notifyResize(height) height = height ? height : document.documentElement.offsetHeight; var resized = false; if (window.donkey && donkey.resize) donkey.resize(height); resized = true;if (parent && parent._resizeIframe) var obj = iframe: window.frameElement, height: height; parent._resizeIframe(obj); resized = true;if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.resize) window.webkit.messageHandlers.resize.postMessage(height); resized = true;return resized;twttr.events.bind(‘rendered’, function (event) notifyResize();); twttr.events.bind(‘resize’, function (event) notifyResize(););if (parent && parent._resizeIframe) var maxWidth = parseInt(window.frameElement.getAttribute(“width”)); if ( 500 < maxWidth) window.frameElement.setAttribute(“width”, “500”);

also read:-  Reliance Jio Upcoming 4G VoLTE Smartphone Rs 999

I tried to do the above one with Plane Detection but it had some bugs, later found a tutorial with same tree 3D model (http://jamesonquave.com/blog/arkit-tutorial-in-swift-4-for-xcode-9-using-scenekit/) and fixed it ? .

Finally, I tried ARKit with Unity and came out with the below scene!

body[data-twttr-rendered=”true”] background-color: transparent;.twitter-tweet margin: auto !important;

function notifyResize(height) height = height ? height : document.documentElement.offsetHeight; var resized = false; if (window.donkey && donkey.resize) donkey.resize(height); resized = true;if (parent && parent._resizeIframe) var obj = iframe: window.frameElement, height: height; parent._resizeIframe(obj); resized = true;if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.resize) window.webkit.messageHandlers.resize.postMessage(height); resized = true;return resized;twttr.events.bind(‘rendered’, function (event) notifyResize();); twttr.events.bind(‘resize’, function (event) notifyResize(););if (parent && parent._resizeIframe) var maxWidth = parseInt(window.frameElement.getAttribute(“width”)); if ( 500 < maxWidth) window.frameElement.setAttribute(“width”, “500”);

also read:-  Xiaomi Mi Max 2 Unboxing India, Specifications, Launch and Price

So I have a tried most of the basic stuff so far and looking forward to work more with the ARKit and come out with a cool app ? ?‍? ?.


Playing With Apple ARKit was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.

Source link

Originally posted 2017-07-04 08:59:24. Republished by Blog Post Promoter