Processing 1.5.1 and 1.5 gives "Prefix string too short" error and won't do anything when I try to run any simple code.
Processing 1.2.1 works fine.
My system is Windows 7, Korean.
Can anybody help?
Just wanted to report that I'm experiencing crash with newest version of GSVideo.
My code works fine with gsvideo-0.4.5-win, but keeps crashing with gsvideo-0.6-pre5.
I'm using Windows7 64bit on MacBook Pro.
If you want to see the code I'll post, but I believe I'm not doing too wild things in the code....
The error is like the following.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c342eee, pid=3224, tid=3844
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C [msvcr71.dll+0x2eee]
#
# An error report file with more information is saved as:
# C:\processing-1.1\hs_err_pid3224.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
I'm trying to make the screen slowly fade to black without ghostly residue.
I read Reas' code about this, and tried the following, which works fine in P2D or P3D but doesn't in opengl.
Is there a way to do this in opengl?
import processing.opengl.*;
void setup() {
size(400,400,OPENGL);
//size(400,400,P2D); //works fine
noStroke();
fill(255,0,0);
background(0);
}
void draw() {
fade();
ellipse(mouseX,mouseY,20,20);
}
void fade() {
int r,g,b;
loadPixels();
for (int i=0;i<pixels.length;i++) {
r=pixels[i]>>16&255;
g=pixels[i]>>8&255;
b=pixels[i]&255;
pixels[i]=color(r-1,g-1,b-1);
}
updatePixels();
}