Hello, I bought a Macbook pro with M1 processor running MAC OS 11.6 (Big Sur).
I need to use reactivision with Max MSP but the TUIO client is not working.
I tried with pure data and everything works fine. But with Max no way.
Does anyone have any suggestions?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, here some updates on this troubleshooting activity:
I managed to open the TUIO client source code with Xcode 13.1.
I realized that there are a few errors that prevent it from working fine with MAC OS 11.6 + M1 processor:
1) the build specification is referred to a 32 bit achitecture. --> This problem is easilly fixed by changing the target achitecture to 64 bit Apple Silicon
2) some part of the code refer to a file called "macho-prefix.pch" which is not found because the directory that should locate it is wrong. All the references to that directory are stored in a variable called C74SUPPORT that can be found in the build specifications. --> this issue is also fixed by modifying the file path specified in that variable.
3) there are 4 files missing that (I think) should be located in the folder Source/TUIO. Such files are:
- OscSender.h
- OscSender.cpp
- UdpSender.h
- Udp.Sender.cpp
They are actually missing from that folder.
I don't know anything about C++ coding so my solution was just to delete the references to the missing files 😅. Well, actually I was able to build the TUIOclient.mxo. Then I tested it on MAX.
Result: the TUIOclient object was correctly recognized but it didn't receive any TUIO message. No sign of life... So I suppose those files were actually needed.
Result: I haven't been able to fix this bug for the moment
I will keep updating this thread I have have any news. Hope it will be useful for someone.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is incredibly useful for me. I have a m1 Air and have been going through some issues, specifically the bug relating to the interface zooming and cropping the frame!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Aite, I still have to reach that point. For the moment I'm still working with the TUIO simulator and I'm not able to get any TUIO signal into Max 😭... I'll let you know if I'll experience any issue with the camera.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Wow man! You are a f*n genius! It works! I'm so happy! Just hope it's stable. I'll make some tests. Than I'm gonna order the camera and dig into its setup
Ok, now I'm testing with the built-in camera and I understand what you mean. The image is cropped. However I noticed that, regardless to what I see on the screen, reactivision is working correctly on the actual camera field of view. But, you are right.. this needs to be fixed
hello Aite, I tried to look into the source code but, so far, I didn't succeed in building a functioning version of reactivision. Did you ever try to build the application from Xcode? Any feedback about it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Update: not sure if you already knew that but I found a way to view the reactivision window without the zoom/crop issue. Just follow these steps:
- open reactivision
- press F1 key to toggle the fullscreen mode --> the image now should be fullscreen but not cropped/zoomed anymore
- press F1 again --> the image should be in a window like when you opened but still not cropped/zoomed
Alternatively you can set to "true" the "fullscreen" option on the "reactivision.xml" file.
Be aware that this doesn't fix completely the problem for at least a couple of reasons:
- you cannot set the framerate
- you cannot set the resolution
- maybe you cannot set also the camera ID but I'm not sure because I don't have an external camera for the moment..
Hey isacco, i tried to build from the Xcode project but i got a lot of bugs that i couldn't really understand. However, this fullscreen hack is really useful to me and my final project. I'll try to keep following to see if i can help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Aite, can you give me some info about the camera you are using? I was currently using a ps3Eye but it also doesn't work on Macbook M1.. I haven't been able to find any working driver yet. I'm struggling a bit to find a infrared usb camera. I tried with one of the ELP camera recommended by Martin but it works only at 5 FPS... not sure why.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I bought a Macbook pro with M1 processor running MAC OS 11.6 (Big Sur).
I need to use reactivision with Max MSP but the TUIO client is not working.
I tried with pure data and everything works fine. But with Max no way.
Does anyone have any suggestions?
Thanks!
Hello, here some updates on this troubleshooting activity:
I managed to open the TUIO client source code with Xcode 13.1.
I realized that there are a few errors that prevent it from working fine with MAC OS 11.6 + M1 processor:
1) the build specification is referred to a 32 bit achitecture. --> This problem is easilly fixed by changing the target achitecture to 64 bit Apple Silicon
2) some part of the code refer to a file called "macho-prefix.pch" which is not found because the directory that should locate it is wrong. All the references to that directory are stored in a variable called C74SUPPORT that can be found in the build specifications. --> this issue is also fixed by modifying the file path specified in that variable.
3) there are 4 files missing that (I think) should be located in the folder Source/TUIO. Such files are:
- OscSender.h
- OscSender.cpp
- UdpSender.h
- Udp.Sender.cpp
They are actually missing from that folder.
I don't know anything about C++ coding so my solution was just to delete the references to the missing files 😅. Well, actually I was able to build the TUIOclient.mxo. Then I tested it on MAX.
Result: the TUIOclient object was correctly recognized but it didn't receive any TUIO message. No sign of life... So I suppose those files were actually needed.
Result: I haven't been able to fix this bug for the moment
I will keep updating this thread I have have any news. Hope it will be useful for someone.
This is incredibly useful for me. I have a m1 Air and have been going through some issues, specifically the bug relating to the interface zooming and cropping the frame!
Hello Aite, I still have to reach that point. For the moment I'm still working with the TUIO simulator and I'm not able to get any TUIO signal into Max 😭... I'll let you know if I'll experience any issue with the camera.
Im not sure if this helps but i had success with the TUIOClient by running Max with rosetta rather than the universal binary.
Wow man! You are a f*n genius! It works! I'm so happy! Just hope it's stable. I'll make some tests. Than I'm gonna order the camera and dig into its setup
Ok, now I'm testing with the built-in camera and I understand what you mean. The image is cropped. However I noticed that, regardless to what I see on the screen, reactivision is working correctly on the actual camera field of view. But, you are right.. this needs to be fixed
yup i wonder if it has something to do with the new image processing on the m1 macs
Well, I don't think so because also another user, Rene, is experiencing the same issue on an Intel i9 processor. See this thread: https://sourceforge.net/p/reactivision/discussion/user/thread/4daa3692ef/
Interesting. I guess this is good news in a sense
hello Aite, I tried to look into the source code but, so far, I didn't succeed in building a functioning version of reactivision. Did you ever try to build the application from Xcode? Any feedback about it?
Update: not sure if you already knew that but I found a way to view the reactivision window without the zoom/crop issue. Just follow these steps:
- open reactivision
- press F1 key to toggle the fullscreen mode --> the image now should be fullscreen but not cropped/zoomed anymore
- press F1 again --> the image should be in a window like when you opened but still not cropped/zoomed
Alternatively you can set to "true" the "fullscreen" option on the "reactivision.xml" file.
Be aware that this doesn't fix completely the problem for at least a couple of reasons:
- you cannot set the framerate
- you cannot set the resolution
- maybe you cannot set also the camera ID but I'm not sure because I don't have an external camera for the moment..
Last edit: isacco pavanelli 2021-12-06
Hey isacco, i tried to build from the Xcode project but i got a lot of bugs that i couldn't really understand. However, this fullscreen hack is really useful to me and my final project. I'll try to keep following to see if i can help
Aite, can you give me some info about the camera you are using? I was currently using a ps3Eye but it also doesn't work on Macbook M1.. I haven't been able to find any working driver yet. I'm struggling a bit to find a infrared usb camera. I tried with one of the ELP camera recommended by Martin but it works only at 5 FPS... not sure why.
5 fps? must be a software issue. im not using any infared cameras, just a go pro hero 4