0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【備忘録】Nrealで撮影した写真をMR空間上に配置する

Last updated at Posted at 2023-03-23

はじめに

NRSDKのデモに存在するスクリプトを用いて、Nreal搭載カメラで撮影した写真をMR空間上に配置するアプリを作成したので備忘録として残します。

環境

  • Unity (2020.3.44f1)
  • Xperia 5 III SOG05
  • Nreal Light
  • NRSDK for Unity 1.10.1

準備

Nrealアプリの開発を行うための準備をします。
こちらの投稿の「カメラとコントローラーの配置」まで進めれば、開発準備完了です。

オブジェクトにスクリプトを配置

NRSDKで用意されたスクリプトをオブジェクトに配置するのみで、期待する動作を実現できます。
まず、GameObject -> Create Emptyを選択して、空のオブジェクトを作成しましょう(名前は任意)。
作成したオブジェクトのInspectorにてAdd Componentを押下し、Photo Capture Example.csを追加してください。
これで期待する動作を実現できます。
スクリーンショット 2023-03-21 0.43.04.png

実機での確認

作成したアプリを実行し、Android端末の画面に表示されているボタンを押下すると、Nreal搭載のカメラで撮影された写真がMR空間上に投影されていることを確認できます。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?