Menu

TUIO client not working on MAX MSP with Big Sur

2021-11-27
2021-12-09
  • isacco pavanelli

    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!

     
  • isacco pavanelli

    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.

     
  • aite eboigbe

    aite eboigbe - 2021-11-29

    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!

     
  • isacco pavanelli

    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.

     
  • aite eboigbe

    aite eboigbe - 2021-11-30

    Im not sure if this helps but i had success with the TUIOClient by running Max with rosetta rather than the universal binary.

     
  • isacco pavanelli

    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

     
  • isacco pavanelli

    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

     
  • aite eboigbe

    aite eboigbe - 2021-11-30

    yup i wonder if it has something to do with the new image processing on the m1 macs

     
  • aite eboigbe

    aite eboigbe - 2021-11-30

    Interesting. I guess this is good news in a sense

     
  • isacco pavanelli

    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?

     
  • isacco pavanelli

    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
  • aite eboigbe

    aite eboigbe - 2021-12-08

    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

     
  • isacco pavanelli

    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.

     
  • aite eboigbe

    aite eboigbe - 2021-12-09

    5 fps? must be a software issue. im not using any infared cameras, just a go pro hero 4

     

Log in to post a comment.