Fonts and arcs appear blurry when using P2D

Hi, I'm working in a puzzle.

If I choose the default renderer the pieces of my puzzle looks broken, and all goes slow.

But if I choose PD2, images and animations looks great. BUT arcs, and typographies looks broken.

Some workaround to help me?

size(1280, 720, P2D);

temp

size(1280, 720);

temp2

Answers

  • @MickyMike re:

    arcs, and typographies looks broken.

    Even looking at your pictures, I'm not sure what you mean. Do you mean that the "30" in the first image is blurry, but the "6" in the second image is not blurry? And how are arcs "broken" -- what do you expect to happen, and what happens?

  • @jeremydouglass exactly (maybe I'm not explaining clearly). If you look at the first pic (using P2D) the animations looks great, but the circle, arc and text looks blurry. On the other hand, if I don't use PD2: Animations run slow, but circles, arc and text looks great. I need fluid animations and non pixelated graphics and fonts. Thanks!

  • I believe that you can create PGraphics layers with separate renderers, then composite them in draw() -- if putting your text all in one layer and your images in another layer would work for you.

  • How are you defining your fonts in your sketch?

    Kf

  • @kfrajer Hi, I'm just defining text in the most simple way

    text(myText, 0, 0)

    I'm not defining any particular font... should I do it?

Sign In or Register to comment.