We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › bugs for OPENGL and compiling
Page Index Toggle Pages: 1
bugs for OPENGL and compiling? (Read 1423 times)
bugs for OPENGL and compiling?
Mar 14th, 2007, 4:22am
 
Hi, all. I am using the newest version and 0123beta. when I tried to make a simple image, I found strange things. I guess they might be bugs.


1. Trace
I drew a simple image and then it should have disappeared by time pass, but It doesn't perfectly make clear background image. I mean I could see traces like this.

http://www.digitypo.com/data/3.gif

However, when I use OPENGL, it is disappeared.


2. a bug for window size?
I put bigger than 300*300 for size of window, but it sometimes makes smaller than 300*300 when I use OPENGL.

http://www.digitypo.com/data/1.gif


3. when I use OPENGL, I can see a big grey noise and then never disappeared like this.

http://www.digitypo.com/data/2.gif



Here is the code!

import processing.opengl.*;

Particle ptcl;

void setup()
{
 size(400, 400, OPENGL);
 //frameRate(30);
 noStroke();
 
 ptcl = new Particle();
}

void draw()
{
 //background(255, 255, 255);
 fill(0, 0, 0, 10);
 rect(0, 0, width, height);
 
 ptcl.Update();
 ptcl.Draw();
}


class Particle
{
 float x, y;
 float vx, vy;
 float dt;
 float radius;
 //float cr, cg, cb;
 //float ch, cs, cb;
 
 Particle()
 {
   x = random(width);
   y = random(height);
   vx = 0;
   vy = 0;
   dt = 0.01 + 0.04 * random(1);
   radius = 20 + random(20);
 }
 
 void Update()
 {
   vx += mouseX - x;
   vy += mouseY - y;
   x += vx * dt;
   y += vy * dt;
   vx *= 0.9;
   vy *= 0.9;
 }
 
 void Draw()
 {
   //stroke(255, 0, 0);
   fill(100, 20, 40, 200);
   ellipse(x, y, radius, radius);
 }
}
Re: bugs for OPENGL and compiling?
Reply #1 - Mar 14th, 2007, 11:22am
 
from what i can tell of your description, #1 is a mathematical fact of life. you'll have some 'error' when you use this model, and things won't ever completely clear.

#2 was reported just two posts prior to this one, and is a long-standing bug:
http://dev.processing.org/bugs/show_bug.cgi?id=197

#3 is your graphics card (maybe need new drivers?) or the graphics card and jogl (sun's opengl layer) not getting along.
Re: bugs for OPENGL and compiling?
Reply #2 - Apr 4th, 2007, 9:44am
 
Thx. I have done something for those. I fixed some and haven't fixed some. anyway, thanks a lot. fry!
Page Index Toggle Pages: 1