I've a Unity3D project that simply does a marker tracking using ARToolkit. ARtracking and syphon input and output works. I'm stuck with OSC handling. I wish to change the marker it's looking for via a custom OSC message.
If i send /QRquale 2, it should look for "[login to view URL]"; "/QRquale 3" should look for "[login to view URL]"... and so on, for a total of 5 patterns.
MORE IN DETAILS
The project grabs a Syphon video stream and displays it where a marker is detected. Then generates a Syphon stream of the whole picture. Syphon is a MacOS-only technology - the Windows counterpart is Spout. This part already works.
On ARToolkit Gameobject I set a OSC Event receiver. It listen for /QRquale <int> messages. Whenever it receive s message, it should change “Pattern file” property in “ARMarker” component, this way:
QRQuale Pattern file
1 [login to view URL]
2 [login to view URL]
3 [login to view URL]
4 [login to view URL]
5 [login to view URL]
When a /QRquale 0 is received, ARtracking must be disallowed, not to use useless resources. Just the webcam flow should be rendered. 0 is also startup status.
Whenever a new pattern is loaded, video coming from Syphon stream should be faded to 0% opacity in 2 seconds. Whenever a pattern is found, that video should be faded from o to 100% opacity in 2 seconds.
When app receives a /Freezecam 1 OSC, it should stop updating frames coming from webcam and show the last freezes one. /Freezecam 0 starts to show webcam stream again.
For your reference, a QLab files streaming the input Syphon server is included in the project files.
This is a software needed for an artist project, not commercial at all; that means I pay it with my own funds and unfortunately need to keep budget quite strict. If you are interest in your final use, please check: [login to view URL]
Project is here: [login to view URL]
The Unity project file is /KlakSyphon/Assets/[login to view URL]
Hello, my name is Juan, I am a videogame development technologist, I use the unity engine and I program in C # and javascript with high knowledge in 2D, 3D, AR and VR, and I would like to be part of the project, thanks and I will be outstanding .