In the next example, we set up two patches, Net008.pd
and Net009.pd
. If you have two computers, you can execute the patches in separate computers. For demonstration, we open them on one single computer. In Net008.pd
, we have the netsend
object to send out the mouse position information to Net009.pd
, using the gemmouse
object. In Net009.pd
, we decode the mouse position from the information obtained from the netreceive
object, and display a square to follow the remote mouse position.
The following screenshot is Net008.pd
for sending out the mouse position:
Since we are using one computer, we put the connect localhost 3000
message for the netsend
object. If you are using two computers, you need to use the connect nnn.nnn.nnn.nnn 3000
message, where nnn.nnn.nnn.nnn
is the IP address of the computer running the second patch, Net009.pd
.
The following screenshot is Net009.pd
for receiving the mouse position and displaying it with a square:
Before creating...