顯示具有 Processing 標籤的文章。 顯示所有文章
顯示具有 Processing 標籤的文章。 顯示所有文章

2012年6月13日 星期三

[Processing] C:\processing-1.2.1\libraries\JMyron\library\JMyron.dll: Can't find dependent libraries



A tip for Windows 7 users, from lgfa321:
If you are getting this error when you try to run: processing.app.debug.RunnerException: UnsatisfiedLinkError: D:\Software\processing-1.2.1\libraries\JMyron\library\JMyron.dll: Can't find dependent libraries:

"Reason : Windows 7 doesn't come with MicroSoft C libraries, which were normally include in the other (older) Windoes system.
This means there are two files missing in the Windows 7 system: MSVCP71.DLL and Msvcr71.dll
Solution : Download these two files from here:
http://www.addictivetips.com/?attachment_id=38105
AND!
For Windows 7 32-bit OS: put both dll files inside Windows/System32 folder
For Windows 7 64-bit OS: put both dll files inside Windows/SysWOW64 folder."



Setup Instructions for OSX 10.7 Lion (from AaronW):
  1. Unzip and Install the Arduino IDE v1.0 for OSX into your applications folder.
  2. Unzip and Install the Processing IDE v1.5.1 for OSX into your applications folder.
  3. Run the Arduino IDE,( I was prompted to automatically download and install a Java runtime as this was run on a clean install of OSX).
  4. Run the Processing IDE, and close it again.
  5. Check that there is now an “arduino” and “processing” folder in your user “Documents” folder
  6. Download Code Version 6.02.zip from the Project Sentry Gun Website.
  7. Extract the zip file and open “Code Version 6.02.zip/Arduino Code/Turrett_06_02/Turret_06_02.ino”,in the Arduino IDE, upload to your Arduino controller.
  8. Copy the “Code Version 6.02.zip/Processing code/libraries” folder to your user “Documents /Processing” folder.
  9. Download libJMyron.jnilib compiled for intel macs from http://jibberia.com/projects and use it to replace the libJMyron.jnilib currently located in your user “Documents/Processing/libraries/JMyron/library” folder.
  10. Run the Processing IDE and load “Code Version 6.02.zip/Processing code/Turrret_06_02/Turret_06_02.pde”.
  11. Click Run.

2012年4月22日 星期日

[Processing] couldn t find any capture devices

使用processing來執行webcam時
若是遇到couldn t find any capture devices的error
可能是因為下列原因(擷取網路)
If you are not using an Apple computer, you will also need a VDIG, a video driver that translates from your hardware to the video functions used by QuickTime. This software may be included in the software provided by the maker of your hardware, or you can download the free VDIG available

此時安裝WinVDIG_101.exe即可解決

2012年3月29日 星期四

[Processing] play movie

使用processing時,若要播放影片,必須import video的library,檔案格式可為mov或mp4
http://processing.org/reference/libraries/video/index.html

下列使用官方提供程式碼


import processing.video.*;  //匯入video library
Movie myMovie;              //定義myMovie變數為Movie型態

void setup() {
  size(200, 200);           
//設定視窗尺寸為寬200,高200,若compile出現error(arrayoutofboundsexception),請將size(200,200)改為size(200,200,P2D)

  myMovie = new Movie(this, "totoro.mov");  //讀取影片檔
  myMovie.loop();
}


void draw() {
  image(myMovie, 0, 0);
}

// Called every time a new frame is available to read
void movieEvent(Movie m) {
  m.read();
}