ControlP5 text problem in P3D mode
in
Contributed Library Questions
•
1 year ago
Hey,
I have the problem that the text used by ControlP5 is displayed very badly in P3D mode.
I already been looking into the forum but I didn't find anything.
I am already using some tricks to get the sliders and buttons displayed as a panel in 2D in front of my 3D animation.
The labeled text is the problem.
- void draw() {
hint(ENABLE_DEPTH_TEST);
background(#CDE8F5);
pushMatrix();
lights();
noStroke();
translate(CW, CH, -100);
translate(0, 0, -ZoomSlider);
Rotate3D();
BodyMovement();
CoordinateSystem();
RightLeg_1.CalcAngles(64+200, 0, int(CH-mouseY));
RightLeg_2.CalcAngles(64+300, 0, 50);
RightLeg_3.CalcAngles(64+300, 0, -35);
RightLeg_4.CalcAngles(64+300, 0, -85);
LeftLeg_1.CalcAngles(-64-100-int(CW-mouseX), int(CH-mouseY), 100);
LeftLeg_2.CalcAngles(-86-100-int(CW-mouseX), int(CH-mouseY), 50);
LeftLeg_3.CalcAngles(-76-100-int(CW-mouseX), int(CH-mouseY), -35);
LeftLeg_4.CalcAngles(-49-100-int(CW-mouseX), int(CH-mouseY), -85);
popMatrix();
hint(DISABLE_DEPTH_TEST);
fill(0);
noStroke();
rectMode(CORNER);
rect(0, 0, 80, height);
rect(0, 0, width, 80);
cp5.draw();
ScreenInfo();
I tried to use OpenGL It displayed the text very well, but that was massive CPU intensive and I can't use that.
P3D: 50-60 FPS
OPENGL : 12 FPS
textMode(SCREEN) doesn't work either.
Does anyone know how I can make the ControlP5 text good readable?
Thank you very much!
Florian
1