pouët.net

How to learn demo coding with processing

category: code [glöplog]
 
Hello everyone!

I'm trying to learn demos in Processing so that I can then try to learn how to make demos and so, teach others how to do the same.

Is there anywhere that can teach me how to learn Processing?

(I already have the demoscene starter kit, so I only need to learn Processing programming itsef)
https://hello.processing.org/ is always a good place to start.
added on the 2024-11-24 12:34:45 by Gargaj Gargaj
That was fast. I'm checking it right now. Thanks.

Also, after I get the hang with Processing, I'm thinking of learn a little bit of the other areas of demos (programming in other languages, visuals and music). What types of tools/guides could you recommend for beginners (who have a good understanding of Python and a little knowledge of C++)?
Processing's documentation is nice as Gargaj mentioned.

Here's also probably a bit outdated example and other references that were used as a baseline in Assembly 2019 processing demo making workshop
added on the 2024-11-24 12:45:12 by waffle waffle
Thanks waffle.

To get the demo, I just need to clone the repository, right?
Quote:
What types of tools/guides could you recommend for beginners (who have a good understanding of Python and a little knowledge of C++)?

- Some more C++ to the point where you're comfortable enough using something like WINAPI. If you know how to open a window, cool.
- Learn how to use e.g. BASS.DLL for replaying music (don't worry about synths for now)
- Brush up on linear algebra (vectors, matrices) - this is really good for that.
- The hardest part is basically picking a rendering API (OpenGL, DirectX, Vulkan) and learning it; they each have their own pros and cons and learning curves, but the upside is you just learn as you go.
- There are also various abstraction libraries that help mask away some of the platform-dependant / lowlevel stuff (GLFW, Raylib, SDL), you're welcome to use those but as said those just make it easier to do the boring stuff, they won't do the demo for you.
added on the 2024-11-24 12:52:05 by Gargaj Gargaj
1) Download and install Moonlander and Minim to processing sketchbook libraries (for example in Windows something like C:\Users\username\Documents\Processing\libraries)

2) clone/download the repo

3) open the .pde file in processing editor and press run
added on the 2024-11-24 13:14:59 by waffle waffle
I've already ran the file. I even went ahead and downloaded some of the demos for that Assembly compo.

So awesome to see projects like than on a language so unassuming.
This was made in Processing.

I'm teaching a Processing course this fall and some of the experiments are (no surprise) very demo effect like:

http://www.kameli.net/~marq/cad/chessboards.pde
http://www.kameli.net/~marq/cad/holes.pde
http://www.kameli.net/~marq/cad/halloween.pde
http://www.kameli.net/~marq/cad/planets.pde
http://www.kameli.net/~marq/cad/raindrops.pde
http://www.kameli.net/~marq/cad/squaremess.pde

There was even a demo-themed Processing course some years ago:

http://www.kameli.net/~marq/adm2021/
added on the 2024-11-24 16:21:41 by Marq Marq
I'm messing around the Processing starter kit, and even when I change the resolution, the window is still really small. What can I do?
What "Processing starter kit"?
added on the 2024-11-25 13:37:07 by Gargaj Gargaj
i'm going to guess the one linked on the graffaton page that waffle posted
https://github.com/anttihirvonen/demoscene-starter-kits/tree/master/processing
added on the 2024-11-25 14:17:05 by psenough psenough
Yes, that one.

Thanks psenough
Quote:
I'm messing around the Processing starter kit, and even when I change the resolution, the window is still really small. What can I do?

Where do you change the resolution?
Changing
Code:final int CANVAS_WIDTH = 480; final int CANVAS_HEIGHT = 360;

should work.
added on the 2024-11-26 23:44:27 by Gargaj Gargaj
Even when I chage the resolution, this is the window.

https://drive.google.com/file/d/1vt49ONTnFvzwV_3GQIdPFS02h4SHtaal/view?usp=sharing
How about just deleting the whole settings() function and using size(800,600,P2D); at the beginning of setup() ...
added on the 2024-11-27 22:58:59 by Marq Marq
Quote:
How about just deleting the whole settings() function and using size(800,600,P2D); at the beginning of setup() ...

It's the new API in 3.0: https://processing.org/reference/settings_.html
added on the 2024-11-27 23:57:24 by Gargaj Gargaj
Quote:
Quote:
How about just deleting the whole settings() function and using size(800,600,P2D); at the beginning of setup() ...

It's the new API in 3.0: https://processing.org/reference/settings_.html


Yeah, but if it just doesn't work for some reason then size() should at least give a proper window.
added on the 2024-11-28 06:35:46 by Marq Marq

login