Theme Processus1 Processus 1

Accumulation de cercles / Accumulation of circles

Avec Pure Data: génératif... à la Processing
With Pure Data: generative ... ala Processing 
   

 



ExMM163a-7sec-FSAA4.jpg
7 secondes
ExMM163a-7min-FSAA4
7 minutes
ExMM163a-7h-FSAA4.jpg
7 heures
 
Patch Pure Data: pdExMM163.zip 

ExMM163a2.png

Compatible:
  Pd-"Vanilla"
   + libraries:
Gem
pddp
cyclone
zexy
iemlib
ggee

  Pd-extended-0.43.4  

Compatible:
  MacOS
  Linux
  Windows


Ce patch est constitué de modules ARGOPd et d'objets Pure Data reliés.  
 
Comment ça marche:
 
- Le dessin dans la fenêtre GEM est fait en mode "single buffer": le buffer n'est pas effacé à chaque frame.
  SingleBuffer est coché dans le module "GEM".
  Chaque dessin persiste dans la fenêtre GEM.
 
- Le fond de la fenêtre GEM est blanc (BackGround = 100 dans le module "GEM")

- Un cercle est tracé à chaque période du module  "Oscill" (20 ms), donc 50 fois par seconde.

- Le cercle est noir (Rouge = 0, Vert = 0, Bleu = 0 dans "GEM-ColorAlpha").

- Le cercle a une transparence de 10 (dans "GEM-ColorAlpha") sur une échelle de 0 = transparent à 100 = opaque.
  Cela donne des niveaux de gris par superposition des cercles.

- Le cercle a une épaisseur de 1 pixel et un diamètre de 4.

- Le module "Nbr" génère des nombres entiers aléatoires entre -100 et +100.

- Le module "Spray6" répartit ces nombres (divisés par 50) vers ses 6 sorties.

- Le cercle est translaté en X, Y, Z aléatoirement dans une échelle -100/50 ... +100/50 = -2 ... +2
  X = horizontal  Y = vertical  Z = Profondeur

- En 7 secondes 7 x 50 = 350 cercles sont tracés

- En 7 minutes  7 x 50 x 60 = 21000 cercles sont tracés
 
- En 7 heures   7 x 50 x 60 x 60 = 1260000
cercles sont tracés
This patch is made of ARGOPd modules and Pure Data objects interconnected.

How it works:
 
- Drawing in the GEM window is made in "single buffer" mode: the buffer is not cleared each frame.
  SingleBuffer is checked in the "GEM" module.
  Each drawing persists in the GEM window.

- The background of the GEM window is white (BackGround = 100 in the "GEM" module)

- A circle is drawn at each period of "Oscill" module (20 ms), thus 50 times per second.

- The circle is black: Red = 0, Green = 0, Blue = 0 in "GEM-ColorAlpha" module.

- The circle has a transparency of 10 (in "GEM-ColorAlpha" module) on a scale of 0 = transparent to 100 = opaque.
This produces grayscale by superposition of circles.

- The circle has a thickness of one pixel and a diameter of 4.

- The "Nbr" module generates random integer numbers between -100 and +100.

- The "Spray6" module allocated these numbers (divided by 50) to its 6 outputs.

- The circle is randomly translated in X, Y, Z in a scale -100/50 ... +100/50 = -2 ... +2
  X = horizontal  Y = vertical  Z = Depth

- During 7 seconds 7 x 50 = 350 circles are drawn

- During 7 minutes 7 x 50 x 60 = 21000 circles are drawn

- During 7 hours   7 x 50 x 60 x 60 = 1260000 circles are drawn
 
- Clic Grade dans le module GEM pour afficher une graduation XY dans la fenêtre GEM.
 
- La distance entre 2 lignes = 1.
- Au centre: X = 0 et Y = 0
- La fenêtre a une hauteur de 8
  (-4 ... +4)

GEMGrad.png - Click Grade in the GEM module to display a XY scale in the GEM window.
 
- The distance between two lines = 1
- In the center: X = 0 and Y = 0
- The window has a height of 8
  (-4 ... +4)


Qualité du rendu:

- Le message "FSAA 4" est envoyé à l'objet gemwin à l'intérieur du module GEM.
Cela lisse le bord des dessins (anti-aliasing)


- FSAA ne fonctionne pas avec toutes les cartes graphiques.
  Sur MacBook Pro avec carte ATI Radeon:
  FSAA fonctionne sous MacOS
  FSAA ne fonctionne pas sous
  Ubuntu 11.10 + Pd-0.43.1-extended

- FSAA s'exécute dans la carte graphique et ne charge pas la CPU de l'ordinateur.


ExMM163a-7sec-FSAA0-Zoom.jpg
FSAA 0
(Zoom x 4)

ExMM163a-7sec-FSAA4-Zoom.jpg
FSAA 4
(Zoom x 4)

Render quality:

- "FSAA 4" message is sent to the gemwin object within GEM module.
This smooth the edge of drawings (anti-aliasing)


- FSAA does not work with all graphics cards.
  On a MacBook Pro with ATI Radeon:
  FSAA runs on MacOS.
  FSAA does not work on
  Ubuntu 11.10 + Pd-0.43.1-extended

- FSAA runs in the graphics card and does not load the CPU of the computer.


 
 
 
Enregistrer les images:
 
- Les images de cette page sont faites en cliquant Save dans le module GEM, ce qui crée un fichier "GEMWindowxxxxx.jpg" au format jpeg de qualité 80/100. (images faites sous MacOSX)

- Le fichier est sauvé dans le dossier du patch.

- ATTENTION: Aucune alerte en cas de remplacement du fichier.

- ATTENTION: Bug avec Pd-0.42.5-extended sous MacOS: le fichiers créé "GEMWindowxxxxx.jpg" est en réalité, malgré son nom, au format tiff.
  Ce fichier s'ouvre bien avec le logiciel ImageJ.
  Pas de problème sous Pd-0.43.1-extended.
Save images:
 
- The images on this page are made by clicking Save in the GEM module which creates a "GEMWindowxxxxx.jpg" file in jpeg format with  80/100 quality. (images made under MacOSX)

- The file is saved in the folder of the patch.

- WARNING: No warning in case of replacement of the file.

- WARNING: Bug with Pd-0.42.5-extended under MacOS: the files created "GEMWindowxxxxx.jpg" is, despite its name, in tiff format.
  This file is opened successfully with the ImageJ software.
  No problem under Pd-0.43.1-extended.
 
 
 

Sketch Processing
 
(à peu près équivalent)
 

Processing-Random3Circle.png

Random3Circlev2.zip

Compatible Processing 1.5
Compatible Processing 2
Compatible Processing 3


Processing sketch
 
(roughly equivalent)
 


 
 
 
Autres Patches:
Other Patches:
 
ExMM163b-GEM-SingleBuffer-Circle.jpg
ExMM163b-GEM-SingleBuffer-Circle
ExMM163c-GEM-SingleBuffer-Circle.jpg
ExMM163c-GEM-SingleBuffer-Circle
ExMM163d-GEM-SingleBuffer-Circle.jpg
ExMM163d-GEM-SingleBuffer-Circle
ExMM163e-GEM-SingleBuffer-Circle.jpg
ExMM163e-GEM-SingleBuffer-Circle
 
 
Liens: Links:
 
- Pd-"Vanilla" & Pd-Extended & ARGOPd
- FlossManual & GEM     fr    en  
- GEM VS OpenGL         Codelab
- Processing  
- Méthode Processing 
- ImageJ
- Papatch Pure Data "Buvard" d'Olivier Baudu
- Art génératif       ../ARGOPd/wikipedia-16x16fr  ../ARGOPd/wikipedia-16x16en    Generative art
- FSAA anti-aliasing  ../ARGOPd/wikipedia-16x16fr  ../ARGOPd/wikipedia-16x16en    Raster graphics
- Spirographe         ../ARGOPd/wikipedia-16x16fr  ../ARGOPd/wikipedia-16x16en    Spirograph
 


Paresys Accueil
  12 2 2023
Valid HTML 4.01 Transitional

Paresys Home