Giter Club home page Giter Club logo

klaksyphon's Introduction

KlakSyphon

screenshot

KlakSyphon is a Syphon plugin for Unity that allows sharing frames between applications with minimum CPU/GPU cost.

System Requirements

  • Unity 2022.3
  • Metal graphics API
  • MacOS 12.1 Monterey

KlakSyphon only supports Metal; It doesn't support the OpenGL (GL Core) mode.

How to install

Follow those instructions to set up the scoped registry. Then, you can install the Duotone package via Package Manager.

klaksyphon's People

Contributors

keijiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

klaksyphon's Issues

Test Project?

I'm possibly being dumb but I cannot find the Test Project, without which I have no idea where to start with this excellent looking plugin.
I imported the latest Unity Assets bundle but the Test project didn't come with it and I can't find it to download elsewhere.

Not working when deploying to the AppStore

I tested your plugin successfully on my Macbook Air M1 in the editor and also standalone OS X build. I start a server inside of my application and stream a RenderTexture. I'm able to receive the videostream using Syphon Client in the build as well as in the editor.
I just deployed to the AppStore and when I'm downloading my app through the AppStore, Syphon is not working. The Syphon Client app don't find the Syphon server of my application anymore.

Any idea what could cause it?
I would assume it's a problem about the network permission.
I also added the entitlements "server" and "client" to my app in XCode before uploading the build.
Screenshot 2023-03-30 at 21 10 39

[Question] How to get it to work with OpenGL core?

Hi,

I realise this is a bit of a weird question, but the problem I'm having is that Unity seems to only work with a single display on Metal API as of now. With the OpenGL API I can use multiple displays...
Do you have any idea for a workaround to get syphon and multiple displays at the same time? Or could you share some insight in how to make syphon work for OpenGL ?

Thanks!

Does not work in RT Mode (Unity 2019.3.2f1)

Works in Camera Capture mode, but when switching to RT mode, Syphon Server sends empty image. RT looks good on Unity side.

Running Unity 2019.3.2f1 on Mac OSX 10.14.5. Player is set to Metal.

Syphon Client freezes on M1 Mac

Hello and thanks as always for the latest update and your prolific work!! The server list functionality and silicon servers are working flawlessly for me!

I do still have an issue when connecting a client to a server from Resolume Arena This is a very popular application in the live visuals world, but still currently runs under Rosetta. If i build a client for silicon target it will crash when connected to Resolume (sometimes immediately, sometimes after a few minutes) If I switch build to Intel everything works as expected

This can be re-created by just adding a SyphonClient and overriding an object texture (no external scripts)

software for testing this can be acquired here https://resolume.com/download/ (smaller "no footage" download is at the bottom left of the page)

let me know if I can help any further to recreate or debug this ssue

Thanks Again!

syphonclient crashes unity 2018.1.0b11

Hi,
the Syphon client script coming with the release is crashing unity on osx 10.13.2.
I tried on fresh project, same behavior.

I am using a master version prior to the release with no crashes

Step by step instructions

HI,
I can't get this to work and would need some help.
I would like to send syphon from Resolume and map it's output onto a 3d object in unity.

Steps so far:

  • open Resolume Avenue and select texture sharing (syphon) as an output
  • open Unity 2021.2.5f1
  • create a new 3d scene
  • Assets > Import Package > Custom Package : Select and import all from KlakSyphon.unitypackage
  • Window > Klak > Syphon Server List : 1 server(s) found. Avenue / Composition
  • Then what?

Thanks!

Does this work with URP?

Hi,

I tried this plugin in my MacBook Pro (Retina, Mid 2012 - OS Catalina 10.15.5) with Unity 2020.3.4 and it works fine. However, it stopped working when using Universal RP. As soon as i set up a profile in PlayerSetting > Graphics it stopped working.

@keijiro Do you know if it would work with other Render Pipelines apart from the standard (built-in) one? Any ideas why it wouldn't work with URP?

Thanks in advance!
D

Syphon outputs empty frames

OS: MacOS 12.6.1
Unity Version: 2021.3.16f
Klak Syphon version: 0.0.4
Project settings: HDRP, Metal renderer

Issue: When attempting to use Klak Syphon clients only receive blank ("black") frames.

Steps to reproduce:
1: Create a new project with Unity 2021.3.16 from the HDRP core examples.
2: Add Keijiro to the scoped registry and add Klak Syphon from the package manager.
3: Assign the "Syphon Server" script to the main camera
4: Open a Syphon client app (such as Simple Client) and connect to the Unity syphon stream

Expected Result: Client viewer should display frames matching the Unity camera view

Actual Result: Client viewer displays only black frames

Screen Shot 2022-12-16 at 11 58 48 AM

red screen when switching to High Definition Render Pipeline

Dear Keijiro,

I'm using the recent version of Klak Syphon with Unity 2018.3.4f1 Metal on OSX 10.14

The Klak Syphon Server works fine on a standard render pipeline, but the moment I swith to either High Definition or Lightweight Render pipeline - the Klak output video stream goes red and generally not much more happens.

Is there any setting I'm unaware of or the sriptable render pipeline is just not supported?

Kind Regards

Version for Apple silicon (M1) and latest macOS?

Any chance of an updated version?

MacOS Monterey wants to throw the current versions plugin bundle in the bin. I've tried building it myself in xcode, building an apple silicon version so I can use it with silicon version of Unity editor, but I havent succeeded in making a version that works rather than giving me missing dll errors in recent Unity versions.

Thanks.

Receiver (Syphon > Unity)

Hey Keijiro,
I wonder about the Receiver (like KlakSpout SpoutReceiver) ?
Is there any roadmap for that ?

contrast

Hi!
I have been using your asset successfuly on osx 10.13.2 unity 2018.1.0b11
tho i noticed that the stream was way much more contrasted on the syphon client side than the original stream. Is it something you experience too on your side ?

thanks!
screen shot 2018-04-26 at 8 26 07 pm

It doesn't work. I want to help.

I ran it according to the contents you uploaded
I got the following error message.
I can't find a solution, so I'm posting content to get help.

DllNotFoundException: KlakSyphon
Klak.Syphon.SyphonServer.Update () (at Assets/Klak/Syphon/Runtime/SyphonServer.cs:99)

Unity2018.2.2f1 can't work?

I'm using VDMX5 syphon output. I've tested with QC, and VDMX5 is sending successfully.

Then I open the Test Scene (Software already set to VDMX5), do nothing, Hit play, but nothing happened.

Do I need to do some more setup in unity? Or KlakSyphon just can't work with Unity2018.2.2f1?

Get Server Names

I am wondering if there is any implementation in this plugin to get the names of all available servers. I am able to select specific servers by name, but I am wanting to make a GUI that is populated by all available servers. If this is already available I'm not sure how to use it. Is there any tool that can work similar to SpoutManager.GetSourceNames() from your Unity Spout plugin?

Thanks for all your great work on these!

ParticleSystem and alpha problem

Hi and thanks for this great package.
I encountered an issue. Steps to reproduce: Create new project, add particle system and add a cube, put syphon server on camera and enable alpha. Open Syphon Recorder (or another app that supports syphon with transparency e.g. madmapper) and there is a blank screen. Particle system does not show up but other game object displays fine.

I am on latest klaksyphon and latest unity

What can this be and is there a workaraound?

Klaksyphon send blank image

Hi,
I added klak to the main camera but the syphon signal its sends its blank. Tryied on Arena and also to simpleclient from Syphon website...same results
using Unity 2018..

Any advice is much apreciatted

Thnks!

Can this package work in HDRP?

Hi, I'm new to Unity and VJ.
I use Syphon in HDRP scene but it only showed up black result.
I'm wondering if this package have any possible work in HDRP?
Thanks a lot!

Fuzzy or blurry TextMeshPro content.

I notice al UI TextMeshPro elements are broadcasted blurry.
Changing the texture size when creating a new SDF font seems to affect how Syphon sees it, but no matter what size I try none looks sharp.

Any suggestions appreciated.
Thank you

Red screen problem with RenderTextureFormat.ARGB32

Hi, I got the similar problem with other issue. #12

When I send a RenderTexture in the format of RenderTextureFormat.ARGB32, RenderTextureFormat.ARGBHalf or RenderTextureFormat.ARGBFloat, the receiver shows red texture.
RenderTextureFormat.Default is working here.

metal:::g_Device error

Hello,

thank You for this super useful package...

In Unity 2018.2.11f1 on Mac Os 10.13.2 High Sierra - when I try to use Klak Syphon by putting Syphon Server (Script) from the RUntime folder onto a Main Camera object I get the following errors:

Assertion failed on expression: 'metal::g_Device'
Klak.Syphon.SyphonServer:Plugin_CreateServer(String, Int32, Int32)
Klak.Syphon.SyphonServer:Update() (at Assets/Klak/Syphon/Runtime/SyphonServer.cs:105)

ArgumentException: nativeTex can not be null
UnityEngine.Texture2D.CreateExternalTexture (Int32 width, Int32 height, TextureFormat format, Boolean mipChain, Boolean linear, IntPtr nativeTex) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Texture.cs:347)
Klak.Syphon.SyphonServer.Update () (at Assets/Klak/Syphon/Runtime/SyphonServer.cs:108)

I can see the server is working in the client app (Millumin) but it shows a black screen with a red rectangle inside upon hitting "Play" in Unity and nothing else happens (Unity does render its graphics in the Game window properly...).

Is this due to Unity version newer than 2018.1 ?

EDIT: Just checked and the same situation happens in Unity 2018.1.8f1 on MacOs High SIerra 10.13.2

Thank You and kind regards

not working when built

Is it normal that my app is not working when built?
Can't see the stream on mad mapper

Not connecting to server

I've used your Unity Spout plugin with AfterEffects as server sending to Unity on Windows 10 which works so well!
I've now been asked to do the same thing on MacOS so I'm using this KlakSyphon in Unity instead, but Unity is not connecting to the server (AfterEffects).

MacOS 12.1 M1 chip
Unity 2021.3.3f1
AfterEffects 2021
Im using this AE plugin: https://tobiasebsen.gumroad.com/l/aesyphon

I've tried running AE with and without Rosetta but Unity Script still can't connect to server.

I can give you a copy of the AE plugin if that would help?

Any ideas why Unity script can't connect?
Any suggestions on what I could try next?

'SyphonClient._targetMaterialProperty' is never assigned to ERROR 2018.3.0f2 <Metal>

Dear Keijiro,

Thank You for Your continous support of KlaK Syphon.

I wonder if You could help me with this situation:

I'm running a fresh Scene in Unity 2018.3.0f2 , on OSX 10.14. I previously had no problems with running Klak Syphon.

When I place the SYphon Server on My Main Camera I get the following error:

Assets/Klak/Syphon/Runtime/SyphonClient.cs(75,34): warning CS0649: Field 'SyphonClient._nullTexture' is never assigned to, and will always have its default value null

The camera screen output of Klak Syphon is blank - however the Syphon input is detected in third party software working as Syphon Clients.

The same problem persists after I build the application.

Please find the LOG file attached

Any Help would be very appreciated.

Kind Regards

Editor.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.