Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[Released] extOSC - Open Sound Control

Discussion in 'Assets and Asset Store' started by ExT_rus, Oct 13, 2016.

  1. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello! I want to introduce you extOSC.



    extOSC is a tool dedicated to simplify creation of applications with OSC protocol usage.

    Asset Store: https://www.assetstore.unity3d.com/#!/content/72005 - FREE

    Features:

    - OSC without coding
    With extOSC components you can easily implement basic program logic in your application without coding.

    - OSC Console
    New separated console for tracking sending and receiving OSC packages.



    - OSC Debug
    New easy to use tool for debugging sending and receiving OSC packages.



    - Map OSC packages
    OSCMapping allows you to map float, int, bool values.



    - UI
    Four new components for easy creation of remote control apps with OSC-protocols).

    - Addresses with masks support
    You can bind addresses with mask (for instance: «/lights/*/value» )

    - Auto bundle
    extOSC will bundle your packages for optimisation purposes.

    And also:
    - Every data type support (include Array (ver. 1.4) and MIDI (ver 1.3))
    - Compatible with OS X, Windows, iOS & Android, Windows Store
    - Tested with TouchOSC, VVOpenSource, OpenFrameworks and others…
    - Examples

    And much more

    Asset Store: https://www.assetstore.unity3d.com/#!/content/72005 - FREE

    Extensions:
    - extEditorOSC: https://github.com/Iam1337/extEditorOSC - OSC extension for Unity Editor.
     
    Last edited: Jul 13, 2018
  2. Partomo

    Partomo

    Joined:
    Oct 7, 2013
    Posts:
    17
    Hi,

    I need to compile to Windows Store from Unity (for Hololens). Would that work? Or only with Windows standalone?
     
  3. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hi, I didn't check compilation for Hololens. But I can send you the version for check in personal messages.
     
  4. Partomo

    Partomo

    Joined:
    Oct 7, 2013
    Posts:
    17
    Hi ExT_rus,

    Many thanks for the trial versions. Things work very nicely in the editor on Unity on Windows 10 but when I try to compile for the Windows Store I get the following error messages. Any hints on how to tackle these? Most of them are namespace warnings:

    Assets\extOSC\Examples\10) Serialization (Beta)\Scripts\SerializationExample.cs(6,14): error CS0234: The type or namespace name 'Serialization' does not exist in the namespace 'extOSC' (are you missing an assembly reference?)

    Assets\extOSC\Examples\3) Events\Scripts\EventsExample.cs(14,16): error CS0246: The type or namespace name 'OSCTransmitter' could not be found (are you missing a using directive or an assembly reference?)

    Assets\extOSC\Examples\6) Mapping\Scripts\MappingExample.cs(14,16): error CS0246: The type or namespace name 'OSCTransmitter' could not be found (are you missing a using directive or an assembly reference?)

    Assets\extOSC\Examples\4) Informers\Scripts\InformersExample.cs(125,35): error CS0246: The type or namespace name 'OSCMessage' could not be found (are you missing a using directive or an assembly reference?)

    etc. etc.
     
  5. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    This error probably appears because Windows Store platform is not selected in extOSC.dll, which you can find in Assets/extOSC/Plugins/Standalone/extOSC.dll (if you are using version with compiled code)

    I already tested compatibility of my asset with Windows Store and, unfortunately, at this moment my asset can't meet your requirments. In the future, I will probably add Hololens support as it’s becoming popular trend among developers.
     
  6. Partomo

    Partomo

    Joined:
    Oct 7, 2013
    Posts:
    17
    Hi ExT-rus,

    Many thanks for your quick reply. Would be great if you could add support. You would also be the first one since neither OSCSimpl nor UniOSC offer Windows Store support.
     
  7. dell

    dell

    Joined:
    Aug 12, 2008
    Posts:
    24
    Ready to buy your product as soon as you add Hololens support!
     
  8. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Version with Windows Store support in Pending Review. (extOSC - Open Sound Control)
     
    Last edited: Mar 13, 2017
  9. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.2 is Avaible:

    Release Notes:
    - Added Windows Store Support (Beta).
    - Added interface IOSCReceiverComponent.
    - Added interface IOSCTransmitterComponent.
    - Added class OSCPingClient and OSCPingServer.
    - Added class OSCComponent. (Contains functionality of both classes: OSCReceiverComponent and OSCTransmitterComponent)
    - OSCTransmitterComponent.Address changed to OSCTransmitterComponent.TransmitterAddress.
    - OSCReceiverComponent.Address changed to OSCReceiverComponent.ReceiverAddress.
    - Fixed some small things.

    Asset Store: https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
  10. jaraen

    jaraen

    Joined:
    Jul 28, 2016
    Posts:
    19
    Hi,

    I bought the compiled version a few weeks ago. I've just discovered that it has been deprecated, which I guess lets me out of any update and support. Seems that there's no option to upgrade to the full version.

    I think extOSC is a great asset and, with several similar assets appearing in the store during the last few months, I was really happy with the decision made buying extOSC. Is there any plan to continue the compiled version or any chance to upgrade to the full version?

    Thanks,
    Javier
     
  11. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello, it is my mistake. I remove the compiled version because of its unpopularity. And I’m ready to give you a free full version key in private conversation.
     
  12. kapor

    kapor

    Joined:
    Jan 20, 2015
    Posts:
    3
    Dear ExT_rus, thanks for creating this great asset, I purchased it in hope that it will be compatible with Microsoft HoloLens, but unfortunately I cannot deploy my app to HoloLens from VisualStudio when I use your asset. My project works without it. Is there a quick way or chance to fix it?
     
  13. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello, сan you send me error log?
     
  14. Ozone_ABN

    Ozone_ABN

    Joined:
    Jan 11, 2014
    Posts:
    12
    Hello ExT_rus,

    same here, I cannot build for HoloLens, Visual Studio throws following error (Sorry for german VS):

    2> System.Exception: Failed to generate networking code for Z:\XXX\Build\HoloLens\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Unprocessed\Assembly-CSharp.dll:
    2>EXEC : UNetWeaver error : Exception :Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Reflection.TypeExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    2> bei Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
    2> bei Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name)
    2> bei Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
    2> bei Mono.Cecil.TypeReference.Resolve()
    2> bei Mono.Cecil.Mixin.CheckedResolve(TypeReference self)
    2> bei Mono.Cecil.MetadataBuilder.GetConstantType(TypeReference constant_type, Object constant)
    2> bei Mono.Cecil.MetadataBuilder.AddConstant(IConstantProvider owner, TypeReference type)
    2> bei Mono.Cecil.MetadataBuilder.AddParameter(UInt16 sequence, ParameterDefinition parameter, ParamTable table)
    2> bei Mono.Cecil.MetadataBuilder.AddParameters(MethodDefinition method)
    2> bei Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
    2> bei Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
    2> bei Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
    2> bei Mono.Cecil.MetadataBuilder.AddTypeDefs()
    2> bei Mono.Cecil.MetadataBuilder.BuildTypes()
    2> bei Mono.Cecil.MetadataBuilder.BuildModule()
    2> bei Mono.Cecil.ModuleWriter.<>c.<BuildMetadata>b__1_0(MetadataBuilder builder, MetadataReader _)
    2> bei Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
    2> bei Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
    2> bei Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
    2> bei Unity.UNetWeaver.Weaver.Weave(String assName, IEnumerable`1 dependencies, IAssemblyResolver assemblyResolver, String unityEngineDLLPath, String unityUNetDLLPath, String outputDir)
    2> bei Unity.UNetWeaver.Weaver.WeaveAssemblies(IEnumerable`1 assemblies, IEnumerable`1 dependencies, IAssemblyResolver assemblyResolver, String outputDir, String unityEngineDLLPath, String unityUNetDLLPath)
    2>
    2> bei usw.Weaver.Weave()
    2> bei usw.Program.RunProgram(ConversionOptions options)
    2> bei usw.Program.Main(String[] args)
    2>Z:\XXX\HoloLens\GeneratedProjects\UWP\Assembly-CSharp\Assembly-CSharp.csproj(202,5): error MSB3073: Der Befehl ""Z:\XXX\Build\HoloLens\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "Z:\XXX\Build\HoloLens\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Unprocessed\Assembly-CSharp.dll" -pdb -verbose -unity-engine="Z:\XXX\Unprocessed\UnityEngine.dll" -unity-networking="Z:\XXX\Unprocessed\UnityEngine.Networking.dll" -additionalAssemblyPath="Z:\XXX\HoloLens\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x86\Release" "Z:\XXX\GeneratedProjects\UWP\Assembly-CSharp\obj\x86\Release\x86\Release"" wurde mit dem Code 1 beendet.
    3>------ Erstellen gestartet: Projekt:XXX, Konfiguration: Release x86 ------
    3>CSC : error CS0006: Metadatendatei "Z:\XXX\HoloLens\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll" wurde nicht gefunden.

    Hope this will help to fix the error fast.
     
  15. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Thanks for a logs. What Unity version you use?
     
  16. Ozone_ABN

    Ozone_ABN

    Joined:
    Jan 11, 2014
    Posts:
    12
    I'm using 5.6.0f3
     
  17. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Ok, I understood from where an error, but I can’t repeat it. As I understood: the error is that there are problems between as I make a code, and System.Reflection.TypeExtensions.

    Try to use older version of Unity.
     
  18. kapor

    kapor

    Joined:
    Jan 20, 2015
    Posts:
    3
    this is the error log in visual studio when i try to build the app for the HoloLens:

    Severity Code Description Project File Line Suppression State
    Error The command ""C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Unprocessed\Assembly-CSharp.dll" -pdb -verbose -unity-engine="C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\Origami\Unprocessed\UnityEngine.dll" -unity-networking="C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\Origami\Unprocessed\UnityEngine.Networking.dll" -additionalAssemblyPath="C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x86\Release" "C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\GeneratedProjects\UWP\Assembly-CSharp\obj\x86\Release\x86\Release"" exited with code 1. Assembly-CSharp C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\GeneratedProjects\UWP\Assembly-CSharp\Assembly-CSharp.csproj 186

    and two warnings:
    Severity Code Description Project File Line Suppression State
    Warning CS0169 The field 'OSCReceiverWindowsStoreBackend._localHost' is never used Assembly-CSharp C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\Origami\Assets\extOSC\Scripts\Core\Network\OSCReceiverWindowsStoreBackend.cs 44 Active

    Severity Code Description Project File Line Suppression State
    Warning CS0618 'ApplicationView.SuppressSystemOverlays.set' is obsolete: 'Use the TryEnterFullScreen method and IsFullScreenMode property instead of SuppressSystemOverlays. For more info, see MSDN.' Origami C:\Users\kapor\Documents\0_PROJECTS 2017\4D Sound\Unity\HolographicAcademy-Holograms-101\App3\Origami\App.cs 56 Active
     
  19. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Thanks, i start a conversation with you.
     
  20. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,337
    Great package.
    Are there plans to support Array and Midi?
     
  21. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Thanks for the feedback.
    Yes, I have plans for MIDI and Array. But how soon - I do not know.
     
  22. sebescudie

    sebescudie

    Joined:
    Jul 17, 2017
    Posts:
    3
    Hallo !

    Great plugin, scripting is clean and easy!
    Howcome you can't define a custom port for your receiver ? Even though I do

    Code (CSharp):
    1.  
    2.     private OSCReceiver receiever;
    3.     public string address = "/trig";
    4.     public int port;
    5.  
    6.     void Start ()
    7.     {
    8.         receiever = gameObject.AddComponent<OSCReceiver> ();
    9.         receiever.LocalPort = port;
    10.         receiever.Bind (address, SpawnPlayer);
    11.     }
    12.  
    When the receiver is created, it defaults to 7001.

    Any way to have a custom port without changing it at runtime ? Thanks !
     
    Last edited: Jul 18, 2017
    ExT_rus likes this.
  23. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello!

    Thanks for finding this error. It will be fixed in the next update.

    At the moment, you can fix this error localy by adding a line of code in setter in LocalPort property in the file: extOSC/Scripts/OSCReceiver.cs:
    Code (CSharp):
    1. localPort = value;
    Like this:



    Thanks for the feedback.
     
    Last edited: Jul 21, 2017
  24. sebescudie

    sebescudie

    Joined:
    Jul 17, 2017
    Posts:
    3
    Thanks for the quick update !
     
  25. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.3 is Avaible:

    Release Notes:
    - Added context menu in OSCConsole.
    - Added «Generate Sharp Code» buttons in OSCDebug.
    - Fixed Editor UI in OSCPanelMapping class.
    - Fixed LocalPort setter in OSCReceiver class;
    - Fixed some small things.

    Asset Store: https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
    elbows likes this.
  26. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.3.1 is Avaible:
    - Added simple MIDI support (only like structure).
    - Added OSCMidi structure.
    - Added MIDI support in editor (OSC Debug and OSC Console).
    - Added StructToByte and ByteToStruct methods in OSCUtilities.
    - Fixed OSCPanelPacketEditor class.
    - Moved «Generate Sharp Code» methods in a separate class.
    - Removed «Collapse» in OSCConsole.

    Asset Store: https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
  27. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.4 is Avaible:
    - Added Array support.
    - Added Array support in editor (OSC Debug and OSC Console).
    - Added OSCReceiverEventMidi class.
    - Added OSCReceiverEventArray class.
    - Added OSCTransmitterInformerMidi class.
    - Added OSCTransmitterInformerArray class.
    - Added OSCEventMidi class.
    - Added OSCEventArray class.
    - Added OSCMidi type packer in Serialization.
    - Added OSCValue.GetType(OSCValueType) method (Get Type by OSCValueType).
    - Added OSCValue.GetValueType(Type) method (Get OSCValueType by Type).
    - Added OSCValue.AddValue(OSCPacket) method.
    - Added Example 11 (Array).
    - Updated Example 2 (Value Types). Added Midi.
    - Removed OSCReceiver.FakeReceive(OSCPacket) method.
    - Renamed OSCPacketArray to OSCPackerArray.



    Asset Store: https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
    elbows likes this.
  28. jamessimpsonlx

    jamessimpsonlx

    Joined:
    Jan 4, 2017
    Posts:
    7
    I managed to get this to talk to Hololens, i'm using port 9001 to send and most importantly I turned on internet client in player settings/publishing settings.
    Works a treat :)
     
    ExT_rus likes this.
  29. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hm, my project shall activate these parameters automatically. I'l try to fix this in next update.

    Thanks for the feedback!
     
  30. jamessimpsonlx

    jamessimpsonlx

    Joined:
    Jan 4, 2017
    Posts:
    7
    I read somewhere that the port range had to be between 9000 and 9100. Not sure if that is true, i haven't checked it since i got it working, but maybe that could be the "default" port for you too?
     
    ExT_rus likes this.
  31. jamessimpsonlx

    jamessimpsonlx

    Joined:
    Jan 4, 2017
    Posts:
    7
    Hi, I want to assign an incoming float message to a variable, how should i do that? So far i have only been able to trigger actions using incoming events but i'd like to try controlling individual parameters and my plan was to assign individual OSC messages to a float variable which i can then assign to the objects parameters.
    Thanks
     
  32. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello, in this version, you can assign values only to methods or properties (public float Value {get; set;}) without code. In future versions will be possible to apply specific message values to any types of class variables (properties and fields).
     
  33. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.5 is Avaible:
    - Added OSCReceiverReflection class and other (This classes has more functionality then OSCReceiverEvent classes).
    - Added OSCReflection.GetMembers method.
    - Added OSCReflection.GetMembersByType method.
    - Updated saving format for OSC Debug.
    - Updated OSCReflection system.
    - Renamed OSCConsoleMessage to OSCConsolePacket.
    - Renamed ConsoleMessageType to OSCConsolePacketType.
    - Removed OSCTransmitterInformer.SetProperty (is obsolete).
    - Removed OSCReflection.GetMethodsInfo.
    - Removed OSCReflectionMember.Flags.
    - Removed OSCReflectionMember.GetMethod.
    - Removed OSCDebugPacket.

    Asset Store:
    https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
  34. CeylonMilktea

    CeylonMilktea

    Joined:
    Sep 20, 2017
    Posts:
    1
    hi, ExT_rus
    Would extOSC support unity 2017.2.0b9 and Universal Windows Platform?
     
  35. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Technically, extOSC must support 2017.2.0b9 and UWP. But in the nearest future I have only macOS computer and I cannot check as UWP works at this version.
    And as soon as I will have a normal PC, I will check support of UWP on 2017.2.0b9.
     
  36. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.6 is Avaible:
    - Added OSCReceiverEvent.ReceiverType property.
    - Fixed UWP support in OSCUtilities.
    - Fixed OSCConsole production code.
    - Updated OSCReceiverReflection editor.

    Asset Store:
    https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
  37. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Okay, i checked support of UWP on 2017.2.0b9, and make new update (v1.6).

    You can use v1.5, but you need make some fixes in code:
    1. File: Scripts/Core/Console/OSCConsole.cs:


    2. File: Scripts/Core/Reflection/OSCReflection.cs:


    3. File: Scripts/Core/OSCUtilities.cs:
    Remove three methods: «StructToByte», «ByteToStruct», «ByteToStruct<T>».

    Or wait new version (v1.6).
     
  38. dbracht

    dbracht

    Joined:
    Nov 8, 2017
    Posts:
    1
    Hi,

    can I use the MIDI output to control my DAW (e.g. via LoopBe1)?

    Thanks and regards,
    Daniel
     
  39. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello,
    My asset only supports the transfer of MIDI structures (byte Channel, byte Status, byte Data1, byte Data2) through the OSC, to fully work with MIDI you need to have some other asset working with MIDI.
     
  40. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.7 is Avaible:
    - Added new mapping types (Int, FloatToBool, IntToBool, BoolToFloat, BoolToInt).
    - Added two new examples (Marshalling and Match Pattern).
    - Fixed some bugs in OSCReflection.GetMembersByType method.
    - Updated OSCReceiverBackend and OSCTransmitterBackend instance creation.
    - Updated OSCWindow and OSCPanel.



    Asset Store:
    https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
  41. adellelin

    adellelin

    Joined:
    Mar 30, 2013
    Posts:
    1
    Im using this on mac, windows, and hololens with great affect. thanks!

    Im curious about your multicast handling... how do i choose which interface to send on?

    i've built into a mac app that sends multicast over wifi. i want it over my ethernet. when i start the app with wifi off, i don't see it on the ethernet either??
     
  42. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello,
    Now there is no such function in extOSC. Since I did not know how much it would be relevant. In future versions I will definitely make this functionality.
    Thanks for the feedback.
     
  43. Pointcloud

    Pointcloud

    Joined:
    Nov 24, 2014
    Posts:
    37
    Hi, thanks for this package, its really great! Quick question- is there an easy way to turn the collider as trigger of game object in unity an OSC message event? Like if I have a character collide with a trigger object it sends a trigger message via OSC?
     
  44. Pointcloud

    Pointcloud

    Joined:
    Nov 24, 2014
    Posts:
    37
    Oh and how would I transmit the transform values of a game object?
     
  45. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello,
    There are no simple solutions for collide events, you will have resort to writing code, for example:
    Code (CSharp):
    1. protected void OnTriggerEnter(Collider collider)
    2. {
    3.     // Create message
    4.     var message = new OSCMessage(transmitterAddress);
    5.     message.AddValue(OSCValue.String("Hello, world!"));
    6.  
    7.     // Send message
    8.     transmitter.Send(message);
    9. }
    Full code: https://gist.github.com/Iam1337/96913283f94a8dc381265a520396749e

    You can use three components:
    • 2x Vector3 Informer (OSCTransmitterInformerVector3) for position and lossyScale (readony)
    • 1x Quaternion Informer (OSCTransmitterInformerQuaternion) for rotation
     
  46. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    extOSC - Open Sound Control Ver. 1.8 is Avaible:
    - Added Close On Pause parameter in OSCTransmitter and OSCReceiver.
    - Fixed some Examples.

    extOSC - Open Sound Control Ver. 1.8.1 is Avaible:
    - Fixed OSCReceiver.LocalPort, OSCTransmitter.RemoteHost and OSCTransmitter.RemotePort setter bug.

    Asset Store: https://www.assetstore.unity3d.com/#!/content/72005 - FREE
     
    Last edited: Jul 13, 2018
  47. Al95

    Al95

    Joined:
    Nov 8, 2016
    Posts:
    2
    Hello there!

    First, please forgive me if my question sounds silly.
    I am sadly not expert in Unity and new to Hololens dev.
    I've been trying to implement osc for the hololens (by looking at OSC for Unity example projects such as this one, this one, or this one) which I managed to make them work on PC but unfortunately not on hololens.

    I'm interested in trying this Asset as it seems to supports UWP, so I'd like to check with those who've tried if there's any limitation to what it can do.

    Does extOSC enables us to control game parameters (e.g. Light Intensity, Video Playback, Animator Controllers..) in a Unity game playing on the Hololens, using OSC messages sent from a computer on the same network (i.e TouchDesigner, Resolume, MaxMSP...)? And do you encounter any lag?

    Thank you so much for your help!
     
  48. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Hello

    extOSC on Hololens has no limitations, excluding the functionality of the OSCSerialization class (this is an additional tool that simplifies work with a large amount of data). But, I’m not sure how well it works on Hololens, without changing the settings in «Player Settings». (Sometimes it does not set the capability - InternetClientServer, but i’m work on it)

    You can write me an e-mail (you can find it on my publisher page), and there we will decide how I can give you with an asset for the test.

    In extOSC, there are no ready-made components to work specifically with light and animation, but there are many other components that facilitate development, for example, components that allow you to fill certain component fields with the received data. In addition, extOSC is made in such a way that it will be easy enough to process received messages or write your own components.
     
  49. Al95

    Al95

    Joined:
    Nov 8, 2016
    Posts:
    2
    Hi,

    I'm getting some warnings and these errors when trying to build for Hololens?

    Assets\extOSC\Scripts\OSCUtilities.cs(502,21): error CS0103: The name 'firstType' does not exist in the current context
    Assets\extOSC\Scripts\OSCUtilities.cs(502,58): error CS0103: The name 'secondType' does not exist in the current context
    Assets\extOSC\Scripts\OSCUtilities.cs(502,73): error CS0103: The name 'firstType' does not exist in the current context
    Assets\extOSC\Scripts\OSCUtilities.cs(502,86): error CS0103: The name 'secondType' does not exist in the current context​


    I'm using
    Unity 2017.2.1f1
    UWP SDK 10.0.16299.0
    HoloToolkit 2017.2.11
     

    Attached Files:

  50. ExT_rus

    ExT_rus

    Joined:
    Apr 8, 2014
    Posts:
    88
    Thanks, you can fix this just replace this code in OSCUtilities.cs:

    Code (CSharp):
    1. return (firstType.GetTypeInfo().IsSubclassOf(secondType) || firstType == secondType);
    To:
    Code (CSharp):
    1. return (subType.GetTypeInfo().IsSubclassOf(baseType) || subType == baseType);
    I will make an update as soon as possible.
     
unityunity