FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1293 : After exporting *.pde, only just blank screen displayed. (With GS video library)
Last modified: 2009-07-25 19:22
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Nicole Jeon
Assigned To:
fry
Attachment
Type
Created
Size
Actions
souce code.
application/octet-stream
2009-07-24 00:08
2.83 KB
Description
: Opened: 2009-07-24 00:08
1. Revision number: 1.0.5
2. Widows XP professional, Dell Latitude E6400 Laptop
3. I'm not sure that which code is making this trouble. anyway i copy those code below.
/**
* Loop.
* Built-in video library replaced with gsvideo by Andres Colubri
*
* Move the cursor across the screen to draw.
* Shows how to load and play a QuickTime movie file.
*/
import fullscreen.*;
import processing.serial.*;
import cc.arduino.*;
import codeanticode.gsvideo.*;
PImage black;
PImage Red;
int flag=0;
int time=0;
int AL=0;
GSMovie myMovie;
GSMovie myMovie1;
GSMovie myMovie2;
GSMovie myMovie3;
GSMovie myMovie4;
Arduino arduino;
FullScreen fs;
void setup() {
size(540, 320,P2D);
// 5 fps
frameRate(5);
// Create the fullscreen object
fs = new FullScreen(this);
// enter fullscreen mode
fs.enter();
background(0);
// Load and play the video in a loop
arduino = new Arduino(this, Arduino.list()[0], 115200);
myMovie = new GSMovie(this, "Back5.mov");
// myMovie1 = new GSMovie(this, "sensing_red.mov");
myMovie2 = new GSMovie(this, "B.mov");
myMovie3 = new GSMovie(this, "A_1.mov");
// myMovie4 = new GSMovie(this, "B_1.mov");
black=loadImage("black.jpg");
Red=loadImage("red.jpg");
myMovie.loop();
// myMovie1.loop();
myMovie2.loop();
myMovie3.loop();
// myMovie4.loop();
}
void movieEvent(GSMovie myMovie) {
myMovie.read();
// myMovie1.read();
}
void back(){
tint(255,255);
image(myMovie,0,0,540,320);
// blend(myMovie,0,0,540,320,0,0,540,320,BURN);
}
int valueMap(int value, int in_min, int in_max, int out_min, int out_max)
{
return (value - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
void draw() {
int dstSensor1 = arduino.analogRead(5);
int dstSensor2 = arduino.analogRead(3);
int dstSensor3 = arduino.analogRead(1);
dstSensor1 = valueMap(dstSensor1, 0, 1023, 0, 255);
dstSensor2 = valueMap(dstSensor2, 0, 1023, 0, 255);
dstSensor3 = valueMap(dstSensor3, 0, 1023, 0, 255);
print(dstSensor2 + " ");
back();
if(dstSensor1 > 100 && dstSensor1 < 120 )
{
tint(255,50);
image(myMovie2,0, 0,540,320);
}
if(dstSensor2 > 100 && dstSensor2 < 120 )
{
tint(255,50);
image(myMovie3,0, 0,540,320);
}
if(time==180){
tick1();
}
if(time==220){
tick2();
time=0;
}
time++;
}
void tick1(){
flag=1;
}
void tick2(){
flag=0;
// myMovie1.jump(0);
myMovie2.jump(0);
myMovie3.jump(0);
// myMovie4.jump(0);
}
4. I tried export my pde file to exe. (i checked Windows platfrom/Full Screen / Show a stop
button options.) then, i can find exe fiil in the "appliction.windows" folder. when i executed
that exe file, there're just gray blank screen displayed.
Additional Comment
#1 From Nicole Jeon 2009-07-24 00:08
edit
]
souce code.
Additional Comment
#2 From Nicole Jeon 2009-07-24 01:42
D:\Flur\Downloads\processing-1.0.5\gsvideo-0.5.1\gsvideo\reference\overview-
tree.html <- Here is more information about GS Video Library
Additional Comment
#3 From Nicole Jeon 2009-07-24 01:46
(In reply to
comment #2
)
> Additional
Comment #2
From Nicole Jeon 2009-07-24 01:42 [reply]
D:\Flur\Downloads\processing-1.0.5\gsvideo-0.5.1\gsvideo\reference\overview-
tree.html <- Here is more information about GS Video Library
Sorry, i wrote silly comment, the information about GS video library you can find in
below link.
http://users.design.ucla.edu/~acolubri/processing/gsvideo/home/
Additional Comment
#4 From fry 2009-07-24 03:23
Almost certainly not a Processing bug, and just a coding/setup error with
how you have GS Video installed and how the fullscreen library is being
used. Please use the forum to get some help with the setup.
Additional Comment
#5 From ac 2009-07-24 12:29
Hello,
This is not a Processing bug, it is just the result of the current
inability of GSVideo to properly run from an exported application. However,
there is a current hack that you can use to run you gsvideo apps. It is
described in this thread:
http://processing.org/discourse/yabb2/YaBB.pl?num=1233308166/30#33
I applied this hack to your sample code, and it actually run as an application.
Additional Comment
#6 From Nicole Jeon 2009-07-25 19:22
Thank you guys, Now my app is working by help from ac. :)