【Niantic Lightship VPS #4】 Let's use Niantic's VPS - NianticのVPSをつかってみよう!
1: Article summary - 記事概要
Hello, this is Matt at the Designium.
This final article will explain setting up the VPS functions in Unity.
* The first article is here.
2: Let's use Niantic's VPS - NianticのVPSをつかってみよう!
2-1: Preparing the base Unity project - ベースとなるUnityプロジェクトの準備
In this article we will work on the Unity project described previously in Article 3. The ARDK and ARDK official sample Unity packages have been imported, and the ARDK license key should have been set in the Unity project.
2-2: VPS function added - VPS機能追加
To enable the LightShip VPS function in a Unity scene we add the ARDK script WayspotAnchorExampleManager.cs to a gameObject. This script can be found in the /Assets/ARDKExamples/WayspotAnchors/ folder.
The WayspotAnchorExampleManager.cs script is used to start the VPS function “WayspotAnchorService” which automatically starts attempting to relocate on startup.
The script provides a function to place an anchor by tapping on a surface plane created by the ARDK ARPlaneManager (PlaceAnchor()). However, we can use other methods to place anchors, for example if we want to place an anchor at the camera position we can use
_wayspotAnchorService.Cre_ateWayspotAnchors(CreateAnchorGameObjects, Camera.main.transform.localToWorldMatrix);
Currently we cannot access the VPS Waypoint IDs, however each anchor placed at a Waypoint using the WayspotAnchorService has a unique anchor ID. This ID can be used like a map ID to identify the anchor and to give more fine grain control over the AR experience. For example, we may want to load special content on one particular anchor in an area. The anchor ID can be accessed in the WayspotAnchorExampleManager.cs script in the CreateAnchorGameObjects function at the line
“var id = wayspotAnchor.ID”
2-3: Remodeling and author's impression - 改造や筆者感想
The Waypoint system that is the Lightship VPS seems very well suited to user authored content, content that is placed at VPS locations by users. Content can be placed without the developer needing to worry about map IDs or pre-scanning an area and any Niantic ARDK application could rely on the accurate meshing and depth based occlusion to integrate AR into the real world fairly accurately.
The Waypoint system does not seem well suited to pre-authored content, content created by the developer to carefully align with the real-world environment. While we can get the 3D models of privately scanned areas, we cannot get 3D data for the public Waypoints. This means that we cannot accurately pre-author AR content for public Waypoints.
The only way to do this at the moment would be to manually place a waypoint anchor and author content around that anchor, however positioning AR content to perfectly align with an environment using this method would likely involve a lot of trial and error.
3: A little promotion - ちょっとした宣伝
3-1:Introducing "AR VPS BUILDER for Lightship ARDK" - 『AR VPS BUILDER for Lightship ARDK』の紹介
Designium has developed "AR VPS BUILDER for Lightship ARDK," an AR content template that allows users to create AR applications linked to real-world locations in a short time.
"AR VPS BUILDER for Lightship ARDK" is a content template that accelerates AR app development using Niantic's Lightship VPS and ARDK. By utilizing the AR content template with rich functions, we can now develop AR apps in less time than usual!
3-2:どんな人向けのサービス?
ARコンテンツやアプリの企画担当者様をはじめ、観光地や商業施設、イベント等でのアプリ制作を考えている方にもオススメのサービスです。コンテンツテンプレートからお好きなコンテンツを選んで頂き、カスタマイズした高品質なアプリを短時間で作成できます。コチラからお気軽にご相談ください。
3-3: Contents Introduction -コンテンツ紹介
Contents of "AR VPS BUILDER for Lightship ARDK"
【Game】
Magic Flashlight
This is a game to find hidden riddles and clues by illuminating spots with a flashlight. It can be used for riddle solving contents (apps) and quiz rally.
Voxel Collection
This is a tool that allows you to bring back voxel data consisting of blocks of the real world. You can enjoy creating your own block world with the parts you brought back.
AR Mini Game
This tool set contains various AR mini-games, which can be used in AR-based tour services, etc., and can be enjoyed at each spot.
【Art】
Drawing Tool
This is a tool that allows you to draw pictures, letters, signs, etc. in the real world using AR. It can be used for a wide range of purposes, such as leaving messages for friends, in addition to art.
【Sightseeing】
Share notes
Share notes and photos of various places and share them with your friends so that they can relive their own experiences and enjoy them too.
Audio Tours
Audio Tours can provide location-based sightseeing information by using audio information.
【Communication】
Hologram
Holograms can be recorded using ARDK and distributed to various locations at the same time, enabling hologram live performances using VPS spots.
AR Comics
Holograms can be placed in each spot with effects like a scene from a comic book, allowing visitors to take pictures and enjoy the experience.
このARコンテンツテンプレートを使うことで、ARアプリを簡単に作成することができるようになりました。下記は、このテンプレートを活用してデザイニウムが作成したデモアプリ『7 Gods App(七福神アプリ)』です😊
3-4:Contact information - 問い合わせ先
「AR VPS BUILDER for Lightship ARDK』をつかったVPSとARを組み合わせたアプリやコンテンツ開発の依頼やお問い合わせは、下記問い合わせフォームからお気軽にお声がけください❗TwitterなどSNSのDMからでも大歓迎です😊
4: Conclusion おわりに
Adding VPS functionality to an Niantic Lightship project is a very simple process and as the code is all exposed to the developer (rather than being concealed in a DLL) the functions can be modified easily. For example in our 7 Gods demo we modified the VPS function to query specific map IDs based on the selected statue and GPS position.
5: Editorial Note - 編集後記
こんにちは、デザイニウム広報のマリコです!全4回に渡る「Lightship VPS」の連載記事いかがでしたでしょうか?📝✨今週開催される「Niantic Lightship Summit Tokyo 2022」では、Nianticの方をはじめとする豪華な登壇者の中でデザイニウムからも取締役の秦が登壇させて頂き、今回のARコンテンツテンプレートのお話もする予定です✨当日は私も現地参加するので今からとてもワクワクしています😊記事を読んでくださっている方にもお会いできるかもしれないので楽しみです❗よければ声をかけてくださいね😉
The Designium
Official website
Twitter (フォローお待ちしてます✨)
Facebook
Youtube
この記事が気に入ったらサポートをしてみませんか?