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.
IndexProgramming Questions & HelpPrograms › post() and P3D
Page Index Toggle Pages: 1
post() and P3D (Read 398 times)
post() and P3D
Aug 29th, 2006, 11:18pm
 
hi,
i am trying to draw in a registerd post() method and it works fine for all renderers except for P2D and P3D. i am using 0115. any suggestions?

andi

Code:

import processing.opengl.*;

void setup() {
// size(400,400); // post() works
// size(400,400,JAVA2D); // post() works
// size(400,400,OPENGL); // post() works
// size(400,400,P2D); // post() doesnt work
size(400,400,P3D); // post() doesnt work
registerPost(this);
framerate(30);
}

void post() {
fill((int)random(255));
rect(100,100,100,100);
}


void draw() {
background(255,0,0);
}
Re: post() and P3D
Reply #1 - Sep 24th, 2006, 5:37pm
 
check the reference:

public void post()
method called after draw has completed and the frame is done.
no drawing allowed.
Page Index Toggle Pages: 1