LoginSignup
1
0

More than 5 years have passed since last update.

Ubuntu+openFrameworksでPerfumeのモーションキャプチャデータを動かしてみる。

Last updated at Posted at 2017-05-23

目的

Ubuntu+openFrameworksでPerfumeのモーションキャプチャデータのサンプルを動かしてみる。
MacやWindowsでの記事は色々あるが、Ubuntuの記事が少ないため、備忘録として残す。

準備

UbuntuでopenFrameworksの開発環境を構築する。
を参考に、Ubuntu環境でopenFrameworksをインストールする。

ソースコードをダウンロードする。

githubより、モーションキャプチャデータをopenFrameworksで動かすexampleをダウンロードする。フォルダ内のofxBvhをaddon以下にコピーする。

cd ./OF/apps/
git clone https://github.com/perfume-dev/example-openFrameworks
cp ofxBvh/ ../../addons/ -r
cd ./OF/addons/
git clone https://github.com/larsberg/ofxMarchingCubes
git clone https://github.com/obviousjim/ofxSTL

モーションキャプチャデータ

Perfume global siteからモーションとサウンドを取得する。example-sync-soundのdataフォルダに格納する。
http://www.perfume-global.com/

wget http://cdn.perfume-global.com/launch/swf/140606_1/assets/dl/bvhfiles.zip
wget http://cdn.perfume-global.com/launch/swf/140606_1/assets/dl/Perfume_globalsite_sound.wav.zip

unzip bvhfiles.zip
cp -R bvhfiles example-sync-sound/bin/data/

unzip Perfume_globalsite_sound.wav.zip
cp Perfume_globalsite_sound.wav example-sync-sound/bin/data/

コンパイル

Ubuntu環境でexample-sync-soundをコンパイルするために、Makefileとaddons.makeファイルを作成する。

cd  OFX/apps/example-openFrameworks/example-sync-sound
vi Makefile
vi addons.make
make
make RunRelease

addons.make

ofxBvh

Makefile

ifneq ($(wildcard config.make),)
    include config.make
endif

ifndef OF_ROOT
    OF_ROOT=$(realpath ../../..)
endif

include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk

参考:
https://github.com/perfume-dev/example-openFrameworks
http://www.itmedia.co.jp/news/articles/1203/30/news042.html

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