LoginSignup
1
1

More than 3 years have passed since last update.

nreal developerページをざっと読んでみた (RGB Camera編)

Last updated at Posted at 2020-07-04

nreal developerのページをざっと流し見して、日本語でも読みやすいように補助的な記事を書いていきます。この記事はRGB Camera編です。

https://developer.nreal.ai/develop/unity/rgb-camera
こちらと一緒に見ていきましょう!


他の記事
nreal developerページをざっと読んでみた (Discover編)
nreal developerページをざっと読んでみた (Quickstart編)
nreal developerページをざっと読んでみた (Image Tracking編)
nreal developerページをざっと読んでみた (Controller編)


目的

NRSDKを介してNreal LightグラスからRGBカメラデータを取得するサンプルアプリを作成する方法を学びます。

Open the Sample Scene (サンプルシーンを開く)

Assets > NRSDK >Demos > RGBCameraシーンを開きましょう。

Build and Run the Sample App(サンプルアプリをビルド)

ケーブルつないでBuild and Run。

Assets > NRSDK > Demos > CameraCapture > Scripts > CameraCaptureController.csを見るとRBGカメラによってTextureを取得する処理が書かれています。


public RawImage CaptureImage;

  private void Start()
  {
      RGBCamTexture = new NRRGBCamTexture();
      CaptureImage.texture = RGBCamTexture.GetTexture();
      RGBCamTexture.Play();
  }

アウトプット

RBGカメラで取得した画像をRawImageに代入。

image.png

1
1
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
1
1