Beauty Salon α-BET (alphabet)

space001
Blender3d Collada dae modeling Use Papervision3d on Progression3 and 4 http://a-bet.secret.jp/#/access
more whaison works.
whaison space
space002
http://whaison.jugem.jp/ https://jp.pinterest.com/whaison/ https://www.instagram.com/whaison/ https://whaison.amebaownd.com/
https://suzuri.jp/whaison
http://whaison.blogspot.com/
http://whaison.tumblr.com/ http://qiita.com/users/whaison http://www.behance.net/whaison https://github.com/whaison/ https://bitbucket.org/whaison http://serato.com/user/whaison http://whaison.hatenablog.jp/

typo memo
http://d.hatena.ne.jp/whaison/


dayNote
http://www.myspace.com/whaison http://ameblo.jp/whaison/ http://blog.crooz.jp/whaison/ http://blog.crooz.jp/whaisoncafe/ http://nenpyo.org/whaison

fulldisk
http://full.shin-gen.jp/
http://whaison.client.jp/
http://www.dclog.jp/whaison/
featured forums.
space004
forum.unity3d.com/

forums.unrealengine.com.

Progression Forum.

FlashDevelop Forum.

Papervision3D Forum.

FlexUserGroup Forum.

SparkProjectForum.





Twitter







Mobile
qrcode
Calendar
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930    
<< September 2014 >>
New Entries
Archives
Categories
Recent comment
  • FlashDevelopでフォント埋め込み
    感謝!! (12/24)
  • cocos2d-x-3.0rc0 ,c++ ,cpp でTexturePacker で 吐き出した、plist と png でパラパラアニメーションのコード例
    whaison (04/17)
  • Blender2.67にbvh(web上に2500個以上ころがってる)入れてそのBoneオブジェクトをUnity4.0のmecanimで使う
    whaison (08/19)
  • Apple Dev Center 「Certificates, Identifiers & Profiles」で Adhoc をつくってXCode4.6.1でArchiveしてipaを書き出し
    whaison (04/30)
  • Flash CS6でプロパティーパネルで物理演算のジャンプの高さを設定できるCitrus Engine
    whaison (03/01)
  • 「Flash以外、例えばKinectとか」ON TOKYO (会場:高田馬場4-11-8 Floor 6階 ) 短縮URL http://bit.ly/dI0Bfx
    uka (03/02)
  • App Store Review Guidelines アップル社のアプリ審査基準ガイドライン和訳 Apple が 開発者を悩ませ ユーザーをハッピーにしたいガイドライン。w
    whaison (01/25)
  • Unity3d では ADOBE JAPAN OSAKIで行われたFITC 2010 TOKYOでは、 「iOS用にパブリッシュするためには、フリー版ではなくて、有料版を買ってください。さらに追加のパッケージである、"iOS Package (for Development)"を買ってください」とのことだった。
    whaison (01/25)
  • enjoy Adidas-Futsal-Park
    whaison (01/16)
  • MacBookAir にFlashPlayer入れたらなった。Mac Flash Player 10.1/10.2でUstream などでカメラが認識されないバグそんなときはUstreamProducer!でもなくiPhoneだと直ぐにライブ配信できた
    whaison (01/14)
simple sintax high lighter2.0
space003
SyntaxHighlighter2.0用 の貼り付けコード作成する!
ブログパーツ-BLOG PARTS.
Profile
Links
Recommend
Sponsored Links
Admin
無料ブログ作成サービス JUGEM
Seach this site
            
2022.03.28 Monday
スポンサーサイト

一定期間更新がないため広告を表示しています

| スポンサードリンク | - | | - | - | pookmark |
            
2014.09.24 Wednesday
Unity 3Dの, GUI Texture(GUI Text)がプレビューで表示されない
この問題ハチミツ工房さんの
 

Unity 3DのGUI Text, GUI Textureがプレビューで表示されない

http://honeypod.hateblo.jp/entry/2013/08/11/145629


でとりあげられてるんだけども、またひっかかった悲しいのでちょっとメモ

画像をインポートしたら
インスペクターでTextureType >GUI(Editer/Legacy)でApply
  (バージョンがあがって(Editer/Legacy)とかついてるけど今のところこれつかう

プロジェクトでtitleを選択した状態で

ヒエラルキー>creat>GUI Texture

このときカメラにうつるようにとか考えちゃダメ、ドラッグしたりしないこと。冷や汗
Position X0.5は横中央って意味 Y0.5は縦中央って意味
scaleは0で x:0 y:0 z:1 で問題ない


再生してはじめて表示される。

さらに見えなくなる可能性として
でまた GUITextureのチェックボックスがOFFになってないか確認すること。


さらにさらにスクリプトで設定してたり悲しい
void Start()でenabled=false;とかになってたりするとだめよね

表示できます。
| whaison | Unity3d | 20:22 | comments(0) | - | pookmark |
            
2014.09.23 Tuesday
Kinectの中身といわれるOpenCVをMacOS10.8Mountain lionにインストールしてXCodeで使う方法3
環境はいままでと同じで
C++プロジェクト

Installing OpenCV 2.4.9 on OS X 10.8.5 and Using it with XCode 5.1.1

http://syncknowledge.wordpress.com/2014/05/30/installing-opencv-2-4-9-on-os-x-10-8-5-and-using-it-with-xcode-5-1-1/
 さん

のサイトのこのコード
 

#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

using namespace cv;
using namespace std;

int main(int argc, const char * argv[])
{
    CvCapture *capture = cvCaptureFromCAM( CV_CAP_ANY );
    IplImage *frame;

    cvNamedWindow("test");
    while((frame = cvQueryFrame(capture)))
    {
        cvShowImage("test", frame);
        int key = cvWaitKey(1);
        if(key == 27) 
            break; //ESC key pressed
    }
    //Memory deallocation
    cvReleaseCapture(&capture);
    cvDestroyWindow("test");

    return 0;
}



動いた!!嬉しい嬉しい嬉しい嬉しい嬉しい嬉しい嬉しい嬉しい

カメラ扱えるーそのビデオデータも扱えるう スタートした!!!!!


関連記事
http://yro.slashdot.jp/story/14/10/07/0929236/ドバイ警察、Google Glassに独自の顔認識機能を実装へ
| whaison | OpenCV | 17:06 | comments(0) | - | pookmark |
            
2014.09.20 Saturday
Kinectの中身といわれるOpenCVをMacOS10.8Mountain lionにインストールしてXCodeで使う方法2
こんどはC++でやってみた
http://makers.hatenablog.com/entry/2014/01/05/172601
さんを参考に

手順は一緒だが
imshow("sample", frame);で

エラーをはく
「clang: error: linker command failed with exit code 1」というエラーへの対処
http://d.hatena.ne.jp/goodbyegirl1974/20120920/1348106337

ただそれよりも

imshowがこのバージョンに無い予感がしたので

OpenCVのバージョン番号を調べる方法。
http://opencv.jp/cookbook/opencv_utility.html

#include <iostream>
#include <opencv2/core/core.hpp>

#define OPENCV_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#define OPENCV_VERSION_CODE OPENCV_VERSION(CV_MAJOR_VERSION, CV_MINOR_VERSION, CV_SUBMINOR_VERSION)

int
main(int argc, char *argv[])
{
  std::cout << "version: " << CV_VERSION << std::endl;
  std::cout << "  major: " << CV_MAJOR_VERSION << std::endl;
  std::cout << "  minor: " << CV_MINOR_VERSION << std::endl;
  std::cout << "  subminor: " << CV_SUBMINOR_VERSION << std::endl;
  std::cout << "OpenCV >= 2.0.0: " << (OPENCV_VERSION_CODE>=OPENCV_VERSION(2,0,0)?"true":"false") << std::endl;
}
実行結果:

version: 2.4.9
  major: 2
  minor: 4
  subminor: 9
OpenCV >= 2.0.0: true

でリファレンスをみてみる
http://docs.opencv.org/modules/highgui/doc/user_interface.html

Displays an image in the specified window.

C++: void imshow(const string& winname, InputArray mat)
C: void cvShowImage(const char* name, const CvArr* image)

あるらしい。
インストールでBrokenをはいていたせいか

やめた
このチュートリアルやってみよう
http://tilomitra.com/opencv-on-mac-osx/

img.pngを
img2.pngにコピーするプログラム

// Example showing how to read and write images
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv/cvaux.h>

int main(int argc, char** argv)
{
    IplImage * pInpImg = 0;
    
    // Load an image from file - change this based on your image name
    pInpImg = cvLoadImage("/Users/whaison/OpenCV/whaisonOpenCV002CPP/whaisonOpenCV002CPP/whaisonOpenCV002CPP/img.png", CV_LOAD_IMAGE_UNCHANGED);
    if(!pInpImg)
    {
        fprintf(stderr, "failed to load input image¥n");
        return -1;
    }
    
    // Write the image to a file with a different name,
    // using a different image format -- .png instead of .jpg
    if( !cvSaveImage("/Users/whaison/OpenCV/whaisonOpenCV002CPP/whaisonOpenCV002CPP/whaisonOpenCV002CPP/img2.png", pInpImg) )
    {
        fprintf(stderr, "failed to write image file¥n");
    }
    
    // Remember to free image memory after using it!
    cvReleaseImage(&pInpImg);
    
    return 0;
}

フルパスにしたら
できたみたい。!!やっぱりバージョンの問題なのかな。


関連記事
iOS で opencv を使う。
http://qiita.com/qt6hy/items/ab4a887cd07fc679c6c6
| whaison | OpenCV | 01:44 | comments(0) | - | pookmark |
            
2014.09.19 Friday
Kinectの中身といわれるOpenCVをMacOS10.8Mountain lionにインストールしてXCodeで使う方法


OpenCVをインストールしてXCodeで使う方法
http://jprogramer.com/opencva/522/
さんを参考にやってみた嬉しい
MacPortsをインストール https://www.macports.org/

「Mountain lion」「lion」「Snow Leopard」とあるので、お使いのMacOSにしたがって選択してください。ちなみに私は「Mountain lion」だったのでこちらをダウンロードしました。は同じ楽しい


Command Line Tool for Xcodeをインストールします。

XCode->Open Developer Tool->More Developer Tools… で
ページにとばされてログインさせられていきついたページで「Command Line Tool」で検索して、自分のMacにあったCommand Line Tool for Mountain lion等をダウンロードしてインストールします。


OpenCVをインストールします。
ターミナルを起動させます。

MacPortsがここにインストールされるのでここに移動
cd /opt/local/bin/
sudo port -d selfupdate

会社だとVPNにはいってたのかタイムアウトになった、
携帯テザリングでやってみたらうまくいった。

whaisonMacBookAir-2:bin whaison$ sudo port -d selfupdate
Password:
DEBUG: Copying /Users/whaison/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
--->  Updating MacPorts base sources using rsync
receiving file list ... done
base.tar

sent 11482 bytes  received 13944353 bytes  507484.91 bytes/sec
total size is 27002880  speedup is 1.93
receiving file list ... done
base.tar.rmd160

sent 64 bytes  received 635 bytes  199.71 bytes/sec
total size is 512  speedup is 0.73
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
MacPorts base version 2.3.1 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.3.1 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar

sent 51165 bytes  received 9524887 bytes  617809.81 bytes/sec
total size is 61470720  speedup is 6.42
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar.rmd160

sent 64 bytes  received 636 bytes  280.00 bytes/sec
total size is 512  speedup is 0.73
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_12_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
PortIndex

sent 18742 bytes  received 1445070 bytes  154085.47 bytes/sec
total size is 11654102  speedup is 7.96
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_12_i386/PortIndex.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
PortIndex.rmd160

sent 64 bytes  received 636 bytes  93.33 bytes/sec
total size is 512  speedup is 0.73
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
--->  MacPorts base is already the latest version
DEBUG: Setting MacPorts sources ownership to root

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

こんなかんじ
MacPortsアップデート完了楽しい


でOpenCVをインストールします。

結構、長くかかるので(一時間くらい!?悲しい)インストールできるまで待ちましょう。
whaisonMacBookAir-2:bin whaison$ sudo port install opencv
--->  Computing dependencies for opencv
--->  Dependencies to be installed: bzip2 ffmpeg XviD fontconfig expat freetype libpng zlib libiconv fribidi gettext ncurses glib2 libffi perl5 perl5.16 gdbm gmake gnutls curl-ca-bundle gmp libidn libtasn1 nettle p11-kit desktop-file-utils popt libxslt libxml2 xz lame libass enca libbluray libmodplug libogg libopus libsdl xorg-libXext xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 db_select libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto xorg-xextproto xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx openjpeg15 jbigkit lcms2 jpeg tiff pkgconfig schroedinger orc speex texi2html x264 yasm ilmbase jasper openexr
--->  Fetching archive for bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/bzip2
--->  Installing bzip2 @1.0.6_0
--->  Activating bzip2 @1.0.6_0
--->  Cleaning bzip2
--->  Fetching archive for XviD
--->  Attempting to fetch XviD-1.3.3_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/XviD
--->  Attempting to fetch XviD-1.3.3_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/XviD
--->  Installing XviD @1.3.3_0
--->  Activating XviD @1.3.3_0
--->  Cleaning XviD
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.1.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/expat
--->  Attempting to fetch expat-2.1.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/expat
--->  Installing expat @2.1.0_0
--->  Activating expat @2.1.0_0
--->  Cleaning expat
--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.2.8_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/zlib
--->  Attempting to fetch zlib-1.2.8_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/zlib
--->  Installing zlib @1.2.8_0
--->  Activating zlib @1.2.8_0
--->  Cleaning zlib
--->  Fetching archive for libpng
--->  Attempting to fetch libpng-1.6.12_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libpng
--->  Attempting to fetch libpng-1.6.12_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libpng
--->  Installing libpng @1.6.12_0
--->  Activating libpng @1.6.12_0
--->  Cleaning libpng
--->  Fetching archive for freetype
--->  Attempting to fetch freetype-2.5.3_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/freetype
--->  Attempting to fetch freetype-2.5.3_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/freetype
--->  Installing freetype @2.5.3_1
--->  Activating freetype @2.5.3_1
--->  Cleaning freetype
--->  Fetching archive for libiconv
--->  Attempting to fetch libiconv-1.14_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libiconv
--->  Attempting to fetch libiconv-1.14_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libiconv
--->  Installing libiconv @1.14_0
--->  Activating libiconv @1.14_0
--->  Cleaning libiconv
--->  Fetching archive for fontconfig
--->  Attempting to fetch fontconfig-2.11.1_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/fontconfig
--->  Attempting to fetch fontconfig-2.11.1_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/fontconfig
--->  Installing fontconfig @2.11.1_0
--->  Activating fontconfig @2.11.1_0
--->  Cleaning fontconfig
--->  Fetching archive for ncurses
--->  Attempting to fetch ncurses-5.9_2.darwin_12.x86_64.tbz2 from http://packages.macports.org/ncurses
--->  Attempting to fetch ncurses-5.9_2.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/ncurses
--->  Installing ncurses @5.9_2
--->  Activating ncurses @5.9_2
--->  Cleaning ncurses
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.19.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.19.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gettext
--->  Installing gettext @0.19.2_0
--->  Activating gettext @0.19.2_0
--->  Cleaning gettext
--->  Fetching archive for libffi
--->  Attempting to fetch libffi-3.1_4.darwin_12.x86_64.tbz2 from http://packages.macports.org/libffi
--->  Attempting to fetch libffi-3.1_4.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libffi
--->  Installing libffi @3.1_4
--->  Activating libffi @3.1_4
--->  Cleaning libffi
--->  Fetching archive for gdbm
--->  Attempting to fetch gdbm-1.11_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gdbm
--->  Attempting to fetch gdbm-1.11_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gdbm
--->  Installing gdbm @1.11_0
--->  Activating gdbm @1.11_0
--->  Cleaning gdbm
--->  Fetching archive for perl5.16
--->  Attempting to fetch perl5.16-5.16.3_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/perl5.16
--->  Attempting to fetch perl5.16-5.16.3_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/perl5.16
--->  Installing perl5.16 @5.16.3_0
--->  Activating perl5.16 @5.16.3_0
--->  Cleaning perl5.16
--->  Fetching archive for perl5
--->  Attempting to fetch perl5-5.12.4_0+perl5_16.darwin_12.noarch.tbz2 from http://packages.macports.org/perl5
--->  Attempting to fetch perl5-5.12.4_0+perl5_16.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/perl5
--->  Installing perl5 @5.12.4_0+perl5_16
--->  Activating perl5 @5.12.4_0+perl5_16
--->  Cleaning perl5
--->  Fetching archive for glib2
--->  Attempting to fetch glib2-2.40.0_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/glib2
--->  Attempting to fetch glib2-2.40.0_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/glib2
--->  Installing glib2 @2.40.0_1
--->  Activating glib2 @2.40.0_1
--->  Cleaning glib2
--->  Fetching archive for fribidi
--->  Attempting to fetch fribidi-0.19.6_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/fribidi
--->  Attempting to fetch fribidi-0.19.6_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/fribidi
--->  Installing fribidi @0.19.6_1
--->  Activating fribidi @0.19.6_1
--->  Cleaning fribidi
--->  Fetching archive for gmake
--->  Attempting to fetch gmake-4.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gmake
--->  Attempting to fetch gmake-4.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gmake
--->  Installing gmake @4.0_0
--->  Activating gmake @4.0_0
--->  Cleaning gmake
--->  Fetching archive for curl-ca-bundle
--->  Attempting to fetch curl-ca-bundle-7.38.0_0.darwin_12.noarch.tbz2 from http://packages.macports.org/curl-ca-bundle
--->  Attempting to fetch curl-ca-bundle-7.38.0_0.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/curl-ca-bundle
--->  Installing curl-ca-bundle @7.38.0_0
--->  Activating curl-ca-bundle @7.38.0_0
--->  Cleaning curl-ca-bundle
--->  Fetching distfiles for gmp
--->  Attempting to fetch gmp-6.0.0a.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gmp
--->  Attempting to fetch gmp-6.0.0a.tar.bz2 from http://cjj.kr.distfiles.macports.org/gmp
--->  Verifying checksums for gmp                                               
--->  Extracting gmp
--->  Applying patches to gmp
--->  Configuring gmp
--->  Building gmp
--->  Staging gmp into destroot
--->  Installing gmp @6.0.0_1
--->  Activating gmp @6.0.0_1
--->  Cleaning gmp
--->  Fetching archive for libidn
--->  Attempting to fetch libidn-1.29_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libidn
--->  Attempting to fetch libidn-1.29_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libidn
--->  Installing libidn @1.29_0
--->  Activating libidn @1.29_0
--->  Cleaning libidn
--->  Fetching archive for libtasn1
--->  Attempting to fetch libtasn1-4.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libtasn1
--->  Attempting to fetch libtasn1-4.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libtasn1
--->  Installing libtasn1 @4.2_0
--->  Activating libtasn1 @4.2_0
--->  Cleaning libtasn1
--->  Fetching archive for nettle
--->  Attempting to fetch nettle-2.7.1_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/nettle
--->  Attempting to fetch nettle-2.7.1_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/nettle
--->  Installing nettle @2.7.1_0
--->  Activating nettle @2.7.1_0
--->  Cleaning nettle
--->  Fetching archive for popt
--->  Attempting to fetch popt-1.16_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/popt
--->  Attempting to fetch popt-1.16_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/popt
--->  Installing popt @1.16_0
--->  Activating popt @1.16_0
--->  Cleaning popt
--->  Fetching archive for desktop-file-utils
--->  Attempting to fetch desktop-file-utils-0.22_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/desktop-file-utils
--->  Attempting to fetch desktop-file-utils-0.22_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/desktop-file-utils
--->  Installing desktop-file-utils @0.22_0
--->  Activating desktop-file-utils @0.22_0
--->  Cleaning desktop-file-utils
--->  Fetching archive for xz
--->  Attempting to fetch xz-5.0.5_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/xz
--->  Attempting to fetch xz-5.0.5_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xz
--->  Installing xz @5.0.5_0
--->  Activating xz @5.0.5_0
--->  Cleaning xz
--->  Fetching archive for libxml2
--->  Attempting to fetch libxml2-2.9.1_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libxml2
--->  Attempting to fetch libxml2-2.9.1_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libxml2
--->  Installing libxml2 @2.9.1_0
--->  Activating libxml2 @2.9.1_0
--->  Cleaning libxml2
--->  Fetching archive for libxslt
--->  Attempting to fetch libxslt-1.1.28_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libxslt
--->  Attempting to fetch libxslt-1.1.28_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libxslt
--->  Installing libxslt @1.1.28_0
--->  Activating libxslt @1.1.28_0
--->  Cleaning libxslt
--->  Fetching archive for p11-kit
--->  Attempting to fetch p11-kit-0.20.7_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/p11-kit
--->  Attempting to fetch p11-kit-0.20.7_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/p11-kit
--->  Installing p11-kit @0.20.7_0
--->  Activating p11-kit @0.20.7_0
--->  Cleaning p11-kit
--->  Fetching archive for gnutls
--->  Attempting to fetch gnutls-3.3.8_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gnutls
--->  Attempting to fetch gnutls-3.3.8_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gnutls
--->  Installing gnutls @3.3.8_0
--->  Activating gnutls @3.3.8_0
--->  Cleaning gnutls
--->  Fetching archive for lame
--->  Attempting to fetch lame-3.99.5_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/lame
--->  Attempting to fetch lame-3.99.5_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/lame
--->  Installing lame @3.99.5_0
--->  Activating lame @3.99.5_0
--->  Cleaning lame
--->  Fetching archive for enca
--->  Attempting to fetch enca-1.15_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/enca
--->  Attempting to fetch enca-1.15_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/enca
--->  Installing enca @1.15_0
--->  Activating enca @1.15_0
--->  Cleaning enca
--->  Fetching archive for libass
--->  Attempting to fetch libass-0.10.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libass
--->  Attempting to fetch libass-0.10.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libass
--->  Installing libass @0.10.2_0
--->  Activating libass @0.10.2_0
--->  Cleaning libass
--->  Fetching archive for libbluray
--->  Attempting to fetch libbluray-0.6.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libbluray
--->  Attempting to fetch libbluray-0.6.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libbluray
--->  Installing libbluray @0.6.0_0
--->  Activating libbluray @0.6.0_0
--->  Cleaning libbluray
--->  Fetching archive for libmodplug
--->  Attempting to fetch libmodplug-0.8.8.5_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libmodplug
--->  Attempting to fetch libmodplug-0.8.8.5_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libmodplug
--->  Installing libmodplug @0.8.8.5_0
--->  Activating libmodplug @0.8.8.5_0
--->  Cleaning libmodplug
--->  Fetching archive for libogg
--->  Attempting to fetch libogg-1.3.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libogg
--->  Attempting to fetch libogg-1.3.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libogg
--->  Installing libogg @1.3.2_0
--->  Activating libogg @1.3.2_0
--->  Cleaning libogg
--->  Fetching archive for libopus
--->  Attempting to fetch libopus-1.1_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libopus
--->  Attempting to fetch libopus-1.1_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libopus
--->  Installing libopus @1.1_0
--->  Activating libopus @1.1_0
--->  Cleaning libopus
--->  Fetching archive for xorg-kbproto
--->  Attempting to fetch xorg-kbproto-1.0.6_0.darwin_12.noarch.tbz2 from http://packages.macports.org/xorg-kbproto
--->  Attempting to fetch xorg-kbproto-1.0.6_0.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/xorg-kbproto
--->  Installing xorg-kbproto @1.0.6_0
--->  Activating xorg-kbproto @1.0.6_0
--->  Cleaning xorg-kbproto
--->  Fetching archive for xorg-xproto
--->  Attempting to fetch xorg-xproto-7.0.26_0.darwin_12.noarch.tbz2 from http://packages.macports.org/xorg-xproto
--->  Attempting to fetch xorg-xproto-7.0.26_0.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/xorg-xproto
--->  Installing xorg-xproto @7.0.26_0
--->  Activating xorg-xproto @7.0.26_0
--->  Cleaning xorg-xproto
--->  Fetching archive for xorg-libXau
--->  Attempting to fetch xorg-libXau-1.0.8_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/xorg-libXau
--->  Attempting to fetch xorg-libXau-1.0.8_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xorg-libXau
--->  Installing xorg-libXau @1.0.8_0
--->  Activating xorg-libXau @1.0.8_0
--->  Cleaning xorg-libXau
--->  Fetching archive for xorg-libXdmcp
--->  Attempting to fetch xorg-libXdmcp-1.1.1_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/xorg-libXdmcp
--->  Attempting to fetch xorg-libXdmcp-1.1.1_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xorg-libXdmcp
--->  Installing xorg-libXdmcp @1.1.1_0
--->  Activating xorg-libXdmcp @1.1.1_0
--->  Cleaning xorg-libXdmcp
--->  Fetching archive for db_select
--->  Attempting to fetch db_select-0.1_2.darwin_12.noarch.tbz2 from http://packages.macports.org/db_select
--->  Attempting to fetch db_select-0.1_2.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/db_select
--->  Installing db_select @0.1_2
--->  Activating db_select @0.1_2
--->  Cleaning db_select
--->  Fetching archive for db46
--->  Attempting to fetch db46-4.6.21_9.darwin_12.x86_64.tbz2 from http://packages.macports.org/db46
--->  Attempting to fetch db46-4.6.21_9.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/db46
--->  Installing db46 @4.6.21_9
--->  Activating db46 @4.6.21_9
--->  Cleaning db46
--->  Fetching archive for libedit
--->  Attempting to fetch libedit-20121213-3.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libedit
--->  Attempting to fetch libedit-20121213-3.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libedit
--->  Installing libedit @20121213-3.0_0
--->  Activating libedit @20121213-3.0_0
--->  Cleaning libedit
--->  Fetching archive for openssl
--->  Attempting to fetch openssl-1.0.1i_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/openssl
--->  Attempting to fetch openssl-1.0.1i_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/openssl
--->  Installing openssl @1.0.1i_0
--->  Activating openssl @1.0.1i_0
--->  Cleaning openssl
--->  Fetching archive for python_select
--->  Attempting to fetch python_select-0.3_3.darwin_12.noarch.tbz2 from http://packages.macports.org/python_select
--->  Attempting to fetch python_select-0.3_3.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/python_select
--->  Installing python_select @0.3_3
--->  Activating python_select @0.3_3
--->  Cleaning python_select
--->  Fetching archive for sqlite3
--->  Attempting to fetch sqlite3-3.8.6_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/sqlite3
--->  Attempting to fetch sqlite3-3.8.6_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/sqlite3
--->  Installing sqlite3 @3.8.6_0
--->  Activating sqlite3 @3.8.6_0
--->  Cleaning sqlite3
--->  Fetching archive for python27
--->  Attempting to fetch python27-2.7.8_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/python27
--->  Attempting to fetch python27-2.7.8_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/python27
--->  Installing python27 @2.7.8_1
--->  Activating python27 @2.7.8_1

To make python 2.7 the default (i.e. the version you get when you run 'python'),
please run:

sudo port select --set python python27

--->  Cleaning python27
--->  Fetching archive for xorg-libpthread-stubs
--->  Attempting to fetch xorg-libpthread-stubs-0.3_0.darwin_12.noarch.tbz2 from http://packages.macports.org/xorg-libpthread-stubs
--->  Attempting to fetch xorg-libpthread-stubs-0.3_0.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/xorg-libpthread-stubs
--->  Installing xorg-libpthread-stubs @0.3_0
--->  Activating xorg-libpthread-stubs @0.3_0
--->  Cleaning xorg-libpthread-stubs
--->  Fetching archive for xorg-xcb-proto
--->  Attempting to fetch xorg-xcb-proto-1.11_0+python27.darwin_12.noarch.tbz2 from http://packages.macports.org/xorg-xcb-proto
--->  Attempting to fetch xorg-xcb-proto-1.11_0+python27.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/xorg-xcb-proto
--->  Installing xorg-xcb-proto @1.11_0+python27
--->  Activating xorg-xcb-proto @1.11_0+python27
--->  Cleaning xorg-xcb-proto
--->  Fetching archive for xorg-libxcb
--->  Attempting to fetch xorg-libxcb-1.11_0+python27.darwin_12.x86_64.tbz2 from http://packages.macports.org/xorg-libxcb
--->  Attempting to fetch xorg-libxcb-1.11_0+python27.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xorg-libxcb
--->  Installing xorg-libxcb @1.11_0+python27
--->  Activating xorg-libxcb @1.11_0+python27
--->  Cleaning xorg-libxcb
--->  Fetching archive for xorg-libX11
--->  Attempting to fetch xorg-libX11-1.6.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/xorg-libX11
--->  Attempting to fetch xorg-libX11-1.6.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xorg-libX11
--->  Installing xorg-libX11 @1.6.2_0
--->  Activating xorg-libX11 @1.6.2_0
--->  Cleaning xorg-libX11
--->  Fetching archive for xorg-xextproto
--->  Attempting to fetch xorg-xextproto-7.3.0_0.darwin_12.noarch.tbz2 from http://packages.macports.org/xorg-xextproto
--->  Attempting to fetch xorg-xextproto-7.3.0_0.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/xorg-xextproto
--->  Installing xorg-xextproto @7.3.0_0
--->  Activating xorg-xextproto @7.3.0_0
--->  Cleaning xorg-xextproto
--->  Fetching archive for xorg-libXext
--->  Attempting to fetch xorg-libXext-1.3.3_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/xorg-libXext
--->  Attempting to fetch xorg-libXext-1.3.3_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xorg-libXext
--->  Installing xorg-libXext @1.3.3_0
--->  Activating xorg-libXext @1.3.3_0
--->  Cleaning xorg-libXext
--->  Fetching archive for xorg-randrproto
--->  Attempting to fetch xorg-randrproto-1.4.0_0.darwin_12.noarch.tbz2 from http://packages.macports.org/xorg-randrproto
--->  Attempting to fetch xorg-randrproto-1.4.0_0.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/xorg-randrproto
--->  Installing xorg-randrproto @1.4.0_0
--->  Activating xorg-randrproto @1.4.0_0
--->  Cleaning xorg-randrproto
--->  Fetching archive for xorg-renderproto
--->  Attempting to fetch xorg-renderproto-0.11.1_0.darwin_12.noarch.tbz2 from http://packages.macports.org/xorg-renderproto
--->  Attempting to fetch xorg-renderproto-0.11.1_0.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/xorg-renderproto
--->  Installing xorg-renderproto @0.11.1_0
--->  Activating xorg-renderproto @0.11.1_0
--->  Cleaning xorg-renderproto
--->  Fetching archive for xrender
--->  Attempting to fetch xrender-0.9.8_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/xrender
--->  Attempting to fetch xrender-0.9.8_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xrender
--->  Installing xrender @0.9.8_0
--->  Activating xrender @0.9.8_0
--->  Cleaning xrender
--->  Fetching archive for xorg-libXrandr
--->  Attempting to fetch xorg-libXrandr-1.4.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/xorg-libXrandr
--->  Attempting to fetch xorg-libXrandr-1.4.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/xorg-libXrandr
--->  Installing xorg-libXrandr @1.4.2_0
--->  Activating xorg-libXrandr @1.4.2_0
--->  Cleaning xorg-libXrandr
--->  Fetching archive for libsdl
--->  Attempting to fetch libsdl-1.2.15_3+x11.darwin_12.x86_64.tbz2 from http://packages.macports.org/libsdl
--->  Attempting to fetch libsdl-1.2.15_3+x11.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libsdl
--->  Installing libsdl @1.2.15_3+x11
--->  Activating libsdl @1.2.15_3+x11
--->  Cleaning libsdl
--->  Fetching archive for libvorbis
--->  Attempting to fetch libvorbis-1.3.4_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libvorbis
--->  Attempting to fetch libvorbis-1.3.4_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libvorbis
--->  Installing libvorbis @1.3.4_0
--->  Activating libvorbis @1.3.4_0
--->  Cleaning libvorbis
--->  Fetching archive for libtheora
--->  Attempting to fetch libtheora-1.1.1_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/libtheora
--->  Attempting to fetch libtheora-1.1.1_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libtheora
--->  Installing libtheora @1.1.1_1
--->  Activating libtheora @1.1.1_1
--->  Cleaning libtheora
--->  Fetching archive for libvpx
--->  Attempting to fetch libvpx-1.3.0_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/libvpx
--->  Attempting to fetch libvpx-1.3.0_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/libvpx
--->  Installing libvpx @1.3.0_1
--->  Activating libvpx @1.3.0_1
--->  Cleaning libvpx
--->  Fetching archive for jbigkit
--->  Attempting to fetch jbigkit-2.1_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/jbigkit
--->  Attempting to fetch jbigkit-2.1_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/jbigkit
--->  Installing jbigkit @2.1_0
--->  Activating jbigkit @2.1_0
--->  Cleaning jbigkit
--->  Fetching archive for jpeg
--->  Attempting to fetch jpeg-9a_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/jpeg
--->  Attempting to fetch jpeg-9a_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/jpeg
--->  Installing jpeg @9a_1
--->  Activating jpeg @9a_1
--->  Cleaning jpeg
--->  Fetching archive for tiff
--->  Attempting to fetch tiff-4.0.3_4.darwin_12.x86_64.tbz2 from http://packages.macports.org/tiff
--->  Attempting to fetch tiff-4.0.3_4.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/tiff
--->  Installing tiff @4.0.3_4
--->  Activating tiff @4.0.3_4
--->  Cleaning tiff
--->  Fetching archive for lcms2
--->  Attempting to fetch lcms2-2.6_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/lcms2
--->  Attempting to fetch lcms2-2.6_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/lcms2
--->  Installing lcms2 @2.6_0
--->  Activating lcms2 @2.6_0
--->  Cleaning lcms2
--->  Fetching archive for openjpeg15
--->  Attempting to fetch openjpeg15-1.5.0_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/openjpeg15
--->  Attempting to fetch openjpeg15-1.5.0_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/openjpeg15
--->  Installing openjpeg15 @1.5.0_1
--->  Activating openjpeg15 @1.5.0_1
--->  Cleaning openjpeg15
--->  Fetching archive for pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/pkgconfig
--->  Installing pkgconfig @0.28_0
--->  Activating pkgconfig @0.28_0
--->  Cleaning pkgconfig
--->  Fetching archive for orc
--->  Attempting to fetch orc-0.4.18_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/orc
--->  Attempting to fetch orc-0.4.18_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/orc
--->  Installing orc @0.4.18_0
--->  Activating orc @0.4.18_0
--->  Cleaning orc
--->  Fetching archive for schroedinger
--->  Attempting to fetch schroedinger-1.0.11_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/schroedinger
--->  Attempting to fetch schroedinger-1.0.11_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/schroedinger
--->  Installing schroedinger @1.0.11_0
--->  Activating schroedinger @1.0.11_0
--->  Cleaning schroedinger
--->  Fetching archive for speex
--->  Attempting to fetch speex-1.2rc1_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/speex
--->  Attempting to fetch speex-1.2rc1_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/speex
--->  Installing speex @1.2rc1_0
--->  Activating speex @1.2rc1_0
--->  Cleaning speex
--->  Fetching archive for texi2html
--->  Attempting to fetch texi2html-5.0_1.darwin_12.noarch.tbz2 from http://packages.macports.org/texi2html
--->  Attempting to fetch texi2html-5.0_1.darwin_12.noarch.tbz2.rmd160 from http://packages.macports.org/texi2html
--->  Installing texi2html @5.0_1
--->  Activating texi2html @5.0_1
--->  Cleaning texi2html
--->  Fetching archive for x264
--->  Attempting to fetch x264-20140124_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/x264
--->  Attempting to fetch x264-20140124_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/x264
--->  Installing x264 @20140124_1
--->  Activating x264 @20140124_1
--->  Cleaning x264
--->  Fetching archive for yasm
--->  Attempting to fetch yasm-1.3.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/yasm
--->  Attempting to fetch yasm-1.3.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/yasm
--->  Installing yasm @1.3.0_0
--->  Activating yasm @1.3.0_0
--->  Cleaning yasm
--->  Fetching archive for ffmpeg
--->  Attempting to fetch ffmpeg-2.4_0+gpl2+x11.darwin_12.x86_64.tbz2 from http://packages.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-2.4_0+gpl2+x11.darwin_12.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/ffmpeg
--->  Attempting to fetch ffmpeg-2.4_0+gpl2+x11.darwin_12.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/ffmpeg
--->  Fetching distfiles for ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://cjj.kr.distfiles.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://distfiles.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://sea.us.distfiles.macports.org/macports/distfiles/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://jog.id.distfiles.macports.org/macports/mpdistfiles/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://lil.fr.distfiles.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://nue.de.distfiles.macports.org/macports/distfiles/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/ffmpeg
--->  Attempting to fetch ffmpeg-2.4.tar.bz2 from http://www.ffmpeg.org/releases/
--->  Verifying checksums for ffmpeg                                            
--->  Extracting ffmpeg
--->  Applying patches to ffmpeg
--->  Configuring ffmpeg
--->  Building ffmpeg
--->  Staging ffmpeg into destroot
--->  Installing ffmpeg @2.4_0+gpl2+x11
--->  Activating ffmpeg @2.4_0+gpl2+x11

*******
******* This build of ffmpeg includes GPLed code and
******* is therefore licensed under GPL v2 or later.
*******
******* The following modules are GPLed:
*******
*******      postproc
*******      libx264
*******      libxvid
*******
******* To include all nonfree, GPLed and LGPL code use variant +nonfree.
******* To remove nonfree and GPLed code leaving only LGPL code remove the
******* +gpl2 variant.
*******

--->  Cleaning ffmpeg
--->  Fetching archive for ilmbase
--->  Attempting to fetch ilmbase-1.0.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/ilmbase
--->  Attempting to fetch ilmbase-1.0.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/ilmbase
--->  Installing ilmbase @1.0.2_0
--->  Activating ilmbase @1.0.2_0
--->  Cleaning ilmbase
--->  Fetching archive for jasper
--->  Attempting to fetch jasper-1.900.1_10.darwin_12.x86_64.tbz2 from http://packages.macports.org/jasper
--->  Attempting to fetch jasper-1.900.1_10.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/jasper
--->  Installing jasper @1.900.1_10
--->  Activating jasper @1.900.1_10
--->  Cleaning jasper
--->  Fetching archive for openexr
--->  Attempting to fetch openexr-1.7.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/openexr
--->  Attempting to fetch openexr-1.7.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/openexr
--->  Installing openexr @1.7.0_0
--->  Activating openexr @1.7.0_0
--->  Cleaning openexr
--->  Fetching archive for opencv
--->  Attempting to fetch opencv-2.4.9_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/opencv
--->  Attempting to fetch opencv-2.4.9_1.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/opencv
--->  Installing opencv @2.4.9_1
--->  Activating opencv @2.4.9_1
--->  Cleaning opencv
--->  Updating database of binaries
--->  Scanning binaries for linking errors               
--->  No broken files found.
whaisonMacBookAir-2:bin whaison$ 

ブロークンとかいわれてるな。でも大丈夫みたい。

これでOpenCVのインストールは完了です。

どこにインストールされたかというと、

/opt/local/include

にopnecvとopencv2というファイルがあります。調べる際は、Finderのメニューにある「移動->フォルダへ移動」から「/opt」と選択すれば「opt」へ移動できます。

あとは普通にlocal->includeと進んでください。

/opt/local/include/opencv
/opt/local/include/opencv2

にありました。

せっかくOpenCVをインストールしたので使ってみましょう。

では、Xcodeを起動して、Application->Command Line Tool->Nextを選択します。


productName:
whaisonOpenCV001

organizationName:
whaison

indentfier:
jp.jugem.whaison.OpenCV


Type:C,(C++なんかもある)
などいれてNEXT


ALL >Buildsettings >Target *whaisonOpenCV001

はじめに以下のようにしてBuildsettingsの Header Search Pathsに
/opt/local/includeと設定します。



これでopencvのヘッダーファイルを読み込む際に設定したパスから入力すればよくなります。

次に、ライブラリのパスを設定します。

Build PhasesにあるLink Binary With Librariesに/opt/local/libにある

libopencv_imgproc2.4.2.dylib

libopencv_highgui.2.4.2.dylib

libopencv_core.2.4.2.dylib

を加えます。「+」を押したあとにAdd Otherを選択して検索でファイル名を入力すればすぐにでます。


これで準備完了です。あとは、main.cにプログラムを書いていきます。

今回は、1秒間ウインドウを出して終わるというプログラムを書きます。


#include <stdio.h>
#include "opencv/cv.h"       //cv.hを読み込む
#include "opencv/highgui.h"  //highgui.hを読み込む<br /><br />int main(int argc, const char * argv[])
{
    // insert code here...
    cvNamedWindow("window",1); //windowという名のウインドウを開く
    cvWaitKey(1000);           //1000msec=1sec待つ
    cvDestroyWindow("window"); //windowを閉じる
    return 0;
}


うごいた!!!!!


関連VR技術
フリーのARライブラリVuforia
qualcomm vuForia(クアルコム ヴューフォリア)
本家
https://developer.qualcomm.com/
https://developer.vuforia.com/getting-started-overview

https://developer.vuforia.com/forum/general-discussion/remove-image-target-after-getting-virtual-button

Computer Vision (FastCV) iRoad
https://developer.qualcomm.com/mobile-development/add-advanced-features/computer-vision-fastcv

日本語サイト
http://nvtrlab.jp/column/1-1
http://nvtrlab.jp/column/1-2

Unityでの とvuForiaとのvuForia開発者登録の流れ
http://www.slideshare.net/takuya0429/1-26644024?next_slideshow=2

------------------------------------関係ないけどやりたい!
Unity×Mixamoで キャラクターを動かそう!
http://www.slideshare.net/gametsukuru/unitymixamo?next_slideshow=4
まず、Mixamoとは? Characterの作成からRig(骨格)の作成、アニメーションの適用 と調整を全てWeb上で行え、最終結果をダウンロードできる サービスです。 Unityと提携しており、Unityに適した形でダウンロード可能なの はもちろんのこと、AssetStoreにてUnity上で直接ダウンロード 可能なPluginが提供されています。 Mixamo:http://www.mixamo.com/
キャラクターはMixamoのサイトにアップロードします。 次のいずれかの方法で用意してください。 ・自分で用意する ・Mixamoのキャラクターショップで購入 ・Fuseというキャラクターメイキングシステムで作成する。 今回は自分で用意する方法で解説していきます。

めっちゃかんたんな30行程度で作れる同時接続可能な対戦3Dゲーム(MMORPG?)
unity x photon cloudでオンラインゲームを作ろう!
http://www.slideshare.net/gametsukuru/4unity-x-photon-cloud?next_slideshow=5

 
| whaison | OpenCV | 21:35 | comments(0) | - | pookmark |
            
2014.09.02 Tuesday
3dsMax2012のTIPSというかメモ


FBXを読み込むとき
ボーン作成<ボーン変換<ボーンのまま残す

アニメーション>ボーンツールでフィンがつけられるボーンにできるようにする

・キーフレームのコピー
全部の骨を選択してshift押しながらドラッグ。
・キーフレーム削除
キーフレームを打たれていないフレームからドラッグして消したいフレームまで選択して
delete

・ボーンを選択するには
メッシュを選択して、右クリック>選択をフリーズ


・画面を3分割するには、ビュー>ビューポート設定>レイアウト>好きなレイアウト


・IK設定ーーーーーーーーーーーhttp://www.youtube.com/watch?v=lX-zVWoETbg
設定したい足の付け根を選択して
アニメーション>IKソルバー>HIソルバー
で点線を(ひざとなる)一個先のボーンのかかとにあたるボーンをクリックする

レイヤマネージャ>


ボーンの作成
作成>システム>ボーンIKチェーン で作成する

リンクはゼロフレーム目でおこなう。
メインツールバー> リンク子にしたいほうから、親へ ドラッグする。

右クリックしてオブジェクトプロパティで確認する


AWDに書き出す前に
修正<拡張パラメータ<ゼロウェイトの削除
書き出し<AWD
AWDには
すべてのボーンがつなっがってないとだめ。


XYZ 000においたAWD用の空ルートボーンは
アニメーション>ボーンツール>の下のほうのオブジェクトプロパティ
・長さを固定
・自動位置合わせ
のチェックを外す

ヘルパーの作成
作成>ヘルパー>コンテナ

でひざの前に置いて
青の十字を選択して
モーション>IKソルバのプロパティ>
ターゲットを選択でNONEを押したあとコンテナ選択する

かかとの十字はアニメーションつけるときに邪魔なので
おおきめのコンテナを親にしてりんくして非表示にする。

0フレーム目がモデルにあってないとバグがおこるので
OBJを読み込んで
スケールを選択しサイズを矢印でない黄色のところをドラッグして縮小する。

ボーンの外し方を教えてもらうしかないかな。
アニメーションは半日で簡単に作り直しできるようだ。
あしのidleポーズだけでうまくいくものを模索するしかない。


MAXでボーンを作る
アニメーション>ボーンツール>ボーンを作成
で上面図で
もも、すね、足の甲、つま先までと(プラス1本移動するため)を作る
作ったら、縦に回転させて
もものボーンを選択してそこの場所にもっていく
そのあとはアニメーション>ボーンツール>「ボーン編集モード」にして
移動し終わったらボーンを消す。

CTRL押しながら親、子、孫、を選択して
アニメーション>ボーンツール>ミラー
オフセットで8.5ぐらいにしてOK
でボーンを全部選択してフリーズさせたら
昔のボーンを削除

brobagadorosu:bornメッシュを選択して
右パネルからパラメータの
ボーンを追加
作ったボーンを選択
エンベローブを編集
頂点にチェックが入ってるのを確認して
CTRL押しながら関係ある頂点を選択して
下のウェイトテーブルをクリックして
「選択された頂点」になってるのを確認して
CTRL押しながら左上のマスから左下のマスへドラッグ選択する
そして一番右今回はBone004の右下のマスで右にドラッグすると0から1へ
値が変動し1にする。

※CTRLおしながら頂点を選択していくが、選択解除したいポイントが
あらわれた場合はCTRL+ALT+クリックで選択解除できる。

となりの「階層」ボタンで影響範囲の編集をおえる。

1フレームにキーフレーム打って
2フレームでボーンを動かして
残ったポイントをおいてかれないように設定していく

腰をおしりリンクする。
リンクはゼロフレーム目でおこなう。
メインツールバー> リンク子にしたいほうから、親へ ドラッグする。



先に回転をまっすぐなボーンを作って
腰、ひざ、くるぶし、こう、つま先の縦の曲げの状態で
HIソルバして、回転は、コンテナヘルパーでやる。
膝の前にヘルパーで乱れる場合はひざの後ろでやってみる。


右の表示>カテゴリによる非表示>ボーンオブジェクトのチェックを外す。


武器を手にくっつけるとき
編集可能ポリゴン+の+を選択して開き
「要素」を選び
範囲選択ツールで、頂点のほうで回転したほうがよい。



ボーンを指などを減らしていく34本以下にする
objのほうを
握っているメッシュは編集可能ポリゴンで編集する。


修正>モディファイアリストからスキンを選んで
ボーン追加
でヘルパー以外のボーンを追加する。


レンダリング>マテリアルエディタ>スレートマテリアルエディタ

1、マテリアルの標準をview1にドラッグする。
標準が置かれる。
2、マップのビットマップをview1にドラッグすると
  ダイアログ開いて _col.tgaを開いてひもを引っ張って拡散反射カラーにつなぐ

2、マップのビットマップをview1にドラッグすると
  ダイアログ開いて _glo.tgaを開いてひもを引っ張って自己照明につなぐ

2、マップのビットマップをview1にドラッグすると
  ダイアログ開いて _nol.tgaを開いてひもを引っ張ってバンプにつなぐ

2、マップのビットマップをview1にドラッグすると
  ダイアログ開いて _spc.tgaを開いてひもを引っ張って鏡面反射光レベルにつなぐ

標準をダブルクリックすると右のウィンドウ>ブリン基本パラメータの自己照明にチェックを入れる

で、メッシュを選択して、

マテリアル>マテリアルを選択へ割り当て

[+][パースペクティブ][リアリスティック]
のリアリスティックプルダウンから
マテリアル>マップがあるリアリスティックマテリアル
を選択するとテクスチャが見れる。


ゼロウェイトの削除で影響範囲が破壊されるときは
すべて表示して
エンベローブの編集やりなおして
ボーンの位置移動したりをいろいろ触る。


# Sequences for characters
# This file was written by loth
idle_01 1 70 長め
attack_01 91 142 単体攻撃なので短め
fire_01 143 226 全体攻撃なので長め


macroScript Macro1
 category:"DragAndDrop"
 toolTip:""
(
 animationRange = interval 0 300
)

CTRL+ALT+タイムライン上で+右クリックすると伸び縮みする。


Y軸だけ回転したいのにZとXで回転してしまう場合は
グラフエディタ
トラックビューカーブエディタでキーを調整する。


ボーンがずれている箇所がある場合
メッシュ選択して
修正> エンベローブの下の 「追加」「削除」
で割り当てを外したいボーンを選択して「削除」
0フレーム目でボーンの回転、などして、位置を合わせ、
修正> エンベローブの下の 「追加」「削除」
「追加」で割り当てをしたいボーンを選択して追加
そのあとは
エンベローブの編集で
「要素」にチェックをいれて
指定のボーンを選択し
割り当てたいメッシュを選択して
ウェイトテーブルで1を設定する





T-ポーズを読み込む方法--------------------------------------------
Tポーズを全選択して
アニメーション>アニメーションを保存(.xaf)

いれたいMaxファイルのアニメーションのフレームに移動して
アニメーション>アニメーションをロード
| whaison | 3dsMax | 21:39 | comments(0) | - | pookmark |