Control a shape using a game pad

Hello, I am very new to processing, and would like to try a project.

Where on earth would I start to learn how to create something like this:


(Credit: https://www.schultzschultz.com/free-works.html)

I have a USB game controller, processing, a mac or a pi, and access to drawing letters and shapes. I don’t have to alter text but that would also be fun to do.

If you can think of a list of steps I need to take to learn or know fo similar tutorials that would be great.

1 Like

Looks like a Arduino or something

See tutorials

Eg https://processing.org/tutorials/electronics/

2 Likes

Thanks Chrisir - will have a look. Thinking of a game pad rather than setting up a board.

1 Like

It‘s an Arduino Uno, but the specific model probably isn‘t what you were asking for :sweat_smile:

As for where to start, you should probably start with Processing! Just create the Code and see if it works with mouse/keyboard Input. Once it does you can think about exporting the input to a Controller or somesuch.

Anyway, i‘ve got little experience with using Controllers other than arduino with Processing, so don‘t put too much weight on my words, but i‘d say using Arduino is probably a lot simpler than using a controller of some other kind.

Apart from drivers/libraries and other things you might need, there‘s always the risk that some might not have been updated for years and don‘t work anymore.

You probably won’t have that Risk with arduino, since everything you‘d need for this project is the arduino serial library. It‘s pretty easy to use and relatively up-to-Date.

2 Likes

Hi @DaviesSteve,

I don’t know much about font making but I’m pretty sure that “Parametric Font” is the term coined to describe what you are trying to achieve. Googling that expression might help finding further information regarding the creation process. Also, note that there are websites like Modulator that make possible to create / morph fonts online and download them without having to use code.

Now regarding the website you linked, I could glean the following information:

  • Morphing / animations seem to either be made with Illustrator (IG post) or in Processing (short video)

  • Fonts are most probably made with Glyphs, a popular font editor. The short video above shows code within a Processing sketch (you can clearly see the setup(), draw(), background(), keyReleased() and keyPressed() functions) that is referring (not calling) to functions or parameters from the GlyphsApp API ( OFFCURVE, nodeList, showInterface).

  • The name of the sketch "Glyphs_Data_Import_Test" suggests they retrieve the fonts data with the API first and then import it in a Processing sketch for manipulation.

If you are looking for a free (and possibly less elaborate) alternative you can check the Geomerative library that allows, among other things, to access the path of a font ( its “skeleton”, .ttf format only) and manipulate it as you wish. In addition to the bundled examples, you can find interesting sketches browsing the old forum or looking at chapter P.3 of Generative Design.

4 Likes

Do you mean something like an Xbox controller? If so you might try the Game Control Plus library which can be installed through Processing menus.

2 Likes

If you are using a mac you might also want to install this

1 Like

For knobs, I’m a big fan of the Korg nanoKontrol – it is easy to use with the oscP5 library.

2 Likes