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 & HelpOther Libraries › problem with controlP5 and lightning
Page Index Toggle Pages: 1
problem with controlP5 and lightning (Read 899 times)
problem with controlP5 and lightning
May 19th, 2010, 8:46am
 
hello!

i got a problem with controlP5 and the lightning of the canvas.
right now, i'm using a very specific way of illuminating the scene, which is

Code:
	private void initializeLight() {
ambientLight(190, 190, 190,
    width/2, height/2, -500);
pointLight(255, 255, 255,
  width/2, height/2, 5);
spotLight(255, 255, 255,
 width, height, 100,
 -1, 0, -1, 80, 20);
}


every time i activate my gui using the controlP5 the whole lightning gets mixed up. does anybody have any hints?

even if I only use

Code:
controlP5 = new ControlP5(this.papplet); 



and the draw it with

Code:
controlP5.draw(); 



it messes up the scene. any hints and tricks are highly appreciated. thanks!


Re: problem with controlP5 and lightning
Reply #1 - May 20th, 2010, 9:02am
 
ok, i solved my problem by adding an additional fill at the end.

Code:
papplet.fill(255, 255, 255); 


Page Index Toggle Pages: 1