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.

UnityとMadMapperとプロジェクションマッピング

Last updated at Posted at 2022-09-19

プロジェクションマッピングに憧れて

簡易なものでいいからということで実施することになり、ちょっと調べてみた。

Syphon

Syphonとは?
macOS向けOSS。
静止画・動画をリアルタイムで共有できるようになるため、MadMapperなどに送出できる

ググると2つほど出てくるが、KlakSyphonの方がメンテされ続けているっぽいので、KlakSyphonで試してみた。
Apple siliconもサポートされている

1. KlakSyphonをダウンロード

ダンロードして解凍しておく

2. Unityプロジェクト作成

  • 3D
  • Syphonをインポート
インポート

解凍したフォルダを丸ごとAssetsにドラッグ&ドロップ

image.png

Main Cameraにコンポーネント追加

Syphon Serverを追加

image.png

Unityプロジェクトの実行

Unity側はこれで準備OK

3. MadMapper

Syphon

SyphonにUnity - Main Cameraが表示されるので選択すると、MadMapper内のオブジェクトにUnity側の画面がリアルタイムに送信される

image.png

プロジェクタ出力を設定

image.png

フルスクリーンモード

フルスクリーンモードにすることでと選択したプロジェクタに投影される

image.png

以下メモ:Unity エディタをVSCodeに

Unityの設定

External Script EditorでVSCodeを指定

image.png

VSCodeの設定

monoがインストールされていなければインストール。
brew install mono

settings.json で設定を変更

image.png

image.png

Extensions

C#のExtensionをインストール

image.png

無事に補完が効きました!

image.png

参考

VSCode Pythonライブラリのエラー表記

必要なライブラリは pip install済みの認識だったが、以下の通り赤い波線が。

image.png

VSCodeでアクティブなインタプリタを切り替える。(自分の場合はpyenv-virtualenvを使用)

image.png

無事に認識されました。

image.png

0
0
1

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?