processing / processing/processing4

Since v4.4.3 - XYscope has odd sizing bug and small examples alphabetical order issue

Ouverte
#1,225 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

bug
Langage dominant
Java
Étoiles
494
Forks
183
Merge moyen
4 h 39 min
PR mergées (30 j)
3

Description

Most appropriate sub-area of Processing 4?

Core/Environment/Rendering

Processing version

4.4.3

Operating system

MacOS 13.6.5

Bug description

An issue was brought up on the XYscope repo about the size of shapes changing and going off screen.. did some version checking and discovered a bug was introduced in v4.4.3 of Processing. Prior to 4.4.2, my examples for 1_getting_started > calibration (or basic_drawing or clock) all worked fine, keeping the graphics within the 512x512 window. Since 4.4.3, the shapes seem to be 4x bigger... the sizing magnitude change is especially noticeable with the basic_drawing example where the mouseX/Y no longer match.. Odd that about half the sketches aren't affected.. so I'm guessing it's semi related to pushMatrix()/popMatrix() or translate()... really not sure.. Tried looking into the changelog, but perhaps someone working close on the project has an idea from the commit log what it might have been? The issue has lingered up until the latest 4.4.6 release.

v4.4.2, calibration example
Image

v4.4.3, calibration example (scale issue)
Image

On a small side note, another small issue that was introduced in 4.4.2, was the alphabetical order listing of the Contributed Libraries within the examples window. Previously XYscope was usually at the very bottom of this list, but now it looks like some other bits from the folder aren't being filtered? - aha, it's placing all lowercase libs at the bottom after any Titlecase ones...

v4.4.1, examples window
Image

v4.4.2, examples window (alphabetical issue)
Image

Steps to reproduce this
  1. Install XYscope library

  2. compare example calibration using v4.4.2 (or lower) and v4.4.3

snippet

/*
 calibration
 circle + square + lines to help center/adjust oscilloscpe display
 cc teddavis.org 2023
 */

import ddf.minim.*; // minim req to gen audio
import xyscope.*;   // import XYscope
XYscope xy;         // create XYscope instance

void setup() {
  size(512, 512);

  xy = new XYscope(this); // define XYscope instance
  //xy.getMixerInfo(); // lists all audio devices
}

void draw() {
  background(0);
  xy.clearWaves(); // clear waves similar to background

  pushMatrix();
  translate(width/2, height/2);
  pushMatrix();
  rotate(radians(180));
  xy.circle(0, 0, width);
  popMatrix();
  xy.rectMode(CENTER);
  xy.rect(0, 0, width);
  xy.line(-width/2, 0, width/2, 0);
  xy.line(0, height/2, 0, -height/2);
  popMatrix();

  xy.buildWaves(); // build audio from shapes
  xy.drawAll(); // draw all analytics
}
Additional context

No response

Would you like to work on the issue?

No, I’m just reporting the issue

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par reproduire les exemples XYscope calibration, basic_drawing et clock avec Processing 4.4.2 et 4.4.3, puis examinez les changements de Core/Environment/Rendering dans la plage de commits liée. Vérifiez si la régression du dimensionnement et la régression de l’ordre de Contributed Libraries ont des causes distinctes. Le travail est considéré comme terminé lorsque les exemples conservent leurs dimensions attendues et que la liste des bibliothèques est triée par ordre alphabétique de manière cohérente.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
computer-graphics, desktop
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
32/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.