Communication between computers
Communication between computers
About LAN:
We use node.js to connected 3 processing canvas together and let them show the same text.
*node.js tutorial:
https://youtu.be/TlB_eWDSMt4?si=h2F9fDGoQx8tSzal
http server tutorial: https://youtu.be/7GBlCinu9yg?si=tNyXImwG45MZ7J3W
https://youtu.be/9J1nJOivdyw?si=hGi6M7xSrYGAMDwD
https://youtu.be/UMwQjFzTQXw?si=vJVCM7TpsuFkQUV0
🔑 To sum up,
Download and install node.js https://nodejs.org/zh-cn
Run the backend http communication service
For the first run, in the terminal:
cd server
npm install
node app.js
For non-first run, just:
cd server
node app.js
Before running processing:
Connect all computer to one Wifi to create LAN. (We used my phone's hotspot)
We need one computer to be the main computer.
Check the local IP to the main computer's IP and modify the IP variable in the code.
About projection:
We use Apple's built-in screen mirroring function, then choose to expand it to iPad, then switch it to secondary screen in settings, and you can project the screen content (including the full-screen canvas running in Processing)!