oulaoups / controlp5

Automatically exported from code.google.com/p/controlp5
0 stars 0 forks source link

ControlP5 with PeasyCam example - HUD overlay issue with Processing v2.3b #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use latest Processing v2.3b, controlp5 and peasycam libs
2. try controlp5 example 'ControlP5withPeasyCam'
3. Cmd-click to pan scene, or mouse wheel to zoom, so that 3d box object 
overlays HUD controls

What is the expected output? - HUD controls should remain layered above the 3d 
scene, as in earlier Processing versions

What do you see instead? - controls are behind 3d objects making them unusable

On what operating system? Mac OSX

Original issue reported on code.google.com by SofaP...@gmail.com on 16 Oct 2012 at 10:43

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
changing the gui method to the following works for me. odd though since peasy's 
beginHUD and endHUD do exactly that.

void gui() {
  hint(DISABLE_DEPTH_TEST);
  cam.beginHUD();
  cp5.draw();
  cam.endHUD();
  hint(ENABLE_DEPTH_TEST);
}

Original comment by soj...@gmail.com on 17 Oct 2012 at 10:19

GoogleCodeExporter commented 9 years ago
I made changes to the example accordingly.

Original comment by soj...@gmail.com on 17 Oct 2012 at 10:21

GoogleCodeExporter commented 9 years ago
awesome, thanks that works for me too.

Original comment by SofaP...@gmail.com on 17 Oct 2012 at 2:11