controlP5 rendering in P3D
in
Contributed Library Questions
•
1 year ago
Hi all,
I am trying to use controlP5 components in P3D mode with proscene. I have the been able to draw the components to the screen with scene.beginScreenDrawing();
The problem I have now is that the labels look awful. They are not legible at all.
I have tried the method suggested here by Amnon. However, this doesn't work with Accordion components as once they are opened, they stay on the screen. Plus the transparency of the background no longer works.
I've tried using custom control fonts thinking that might solve the problem but when I use the custom fonts, the labels don't even show. Here is what I've got:
Any ideas on how to fix the text quality while keeping everything working as it should?
Regards,
Ali
I am trying to use controlP5 components in P3D mode with proscene. I have the been able to draw the components to the screen with scene.beginScreenDrawing();
The problem I have now is that the labels look awful. They are not legible at all.
I have tried the method suggested here by Amnon. However, this doesn't work with Accordion components as once they are opened, they stay on the screen. Plus the transparency of the background no longer works.
I've tried using custom control fonts thinking that might solve the problem but when I use the custom fonts, the labels don't even show. Here is what I've got:
- ControlFont cFont;
- PFont pFont = createFont("Calibri",12,true);
- cFont = new ControlFont(pFont);
- cp5 = new ControlP5(this);
cp5.disableShortcuts();
Group g1 = cp5.addGroup("Inputs")
.setBackgroundColor(color(0, 64))
.setBackgroundHeight(150);
modelButton = cp5.addButton("loadModel")
.setValue(0)
.setPosition(20,60)
.setSize(50,19)
.setCaptionLabel("Browse")
.moveTo(g1);
accObject = cp5.addAccordion("acc")
.setPosition(40,40)
.setWidth(200)
.addItem(g1); - modelButton.captionLabel()
- .setFont(cFont);
Any ideas on how to fix the text quality while keeping everything working as it should?
Regards,
Ali
1