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)
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.
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++)?
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
Here's also probably a bit outdated example and other references that were used as a baseline in Assembly 2019 processing demo making workshop
Thanks waffle.
To get the demo, I just need to clone the repository, right?
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.
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
2) clone/download the repo
3) open the .pde file in processing editor and press run
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.
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/
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/
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"?
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
https://github.com/anttihirvonen/demoscene-starter-kits/tree/master/processing
Yes, that one.
Thanks psenough
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.
Even when I chage the resolution, this is the window.
https://drive.google.com/file/d/1vt49ONTnFvzwV_3GQIdPFS02h4SHtaal/view?usp=sharing
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() ...
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
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.