GithubHelp home page GithubHelp logo

mrayy / unitycam Goto Github PK

View Code? Open in Web Editor NEW
487.0 487.0 147.0 6.69 MB

Unity3D Virtual webcam plugin, streams unity viewport contents to other applications as virtual camera

License: MIT License

Batchfile 0.19% C# 2.91% C++ 92.36% C 3.97% Objective-C 0.33% ShaderLab 0.24%

unitycam's People

Contributors

mrayy avatar twilightwings 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unitycam's Issues

Streams only black

Even in the example project, all I can get is black out of the webcam device in whatever app I tested it in (browser and OBS so far). Any idea why this might be? I'm using this for Unity

UnityCam doesn't show up as a webcam in Unity

When running a scene / compile app using UnityCam, I can see its output in some programs like Skype, but not in others like OBS and most importantly, Unity itself! Is it using a different method than the kind Unity is looking for?

Audio support?

Hi just wondering if audio is supported as a passthrough to a virtual microphone/audio device?
Thanks.

UnityCam in Windows 10 UWP App not working

Hi,

i can't get UnityCam to work in a Windows 10 UWP Application.
It works in the Editor, but in the UWP-Build the streamed image remains black.
Do I have to migrate the UnityWebcam VS Project to an Universal Windows Project?

Do you have any suggestions?

I tried it in Unity 2018.4.4f1 and 2019.1.10f1 with the following Build Settings:

Target Device: Any device
Architecture: x64
Build Type: D3D Project
Target SDK Version: Latest installed
Minimum Platform Version: 10.0.10240.0
Visual Studio Version: Latest installed (2017)
Build and run on: Local Machine
Build configuration: Release
Copy References: No
Copy PDB Files: No
Development Build: No

I attached a small Testproject, so you can reproduce the problem:

UnityCamUWPTest.zip

Thanks in advance!

Stream available only on Zoom & Teams Web

I'm trying to get the feed to work on apps like zoom and teams, but those apps do not see the UnityCam, They do see it on the browser version. But not the app.

Any ideas?

Thanks

Can't see camera in Microsoft Teams

Have been able to get camera working in Skype for Business (x32) and can see the test project great.

Camera does not appear in Microsoft Teams as an option, have tried the x32 & x64 bit DLL versions as well as x32 and x64 versions of Teams - Teams only lists the physical camera attached to windows 10 as the video input.

Any suggestions on how to get teams to accept input from UnityCam ?

No 1:1 output option

Hi, I'd like an option to output at a resolution of 2048x2048 to simulate a fisheye camera.

I found the list of resolutions in UnityCaptureFilter.cpp but am unable to build it - can you share what dependencies are required? Thanks.

Can't Detect Camera

After running the scene successfully, camera is not detected neither in the Camera of Windows nor in SharpCap Software. Kindly Help!

Does not work on Windows 10

On Windows 10 does not create a webcam device which Zoom (or other camera apps) can use. Does not show in Device Manager under Imaging Devices.

Steps to reproduce on Windows 10:

  1. Ran RunMeFirst/x64/Register.bat, got a message that the DLL was registered successfully.
  2. Opened CubesScene scene from UnitySample/Assets/UnityCam/Example under Unity2019.2.9f1.
  3. Ran the scene, got no errors.
  4. While running tried to connect to this as a webcam through Zoom, and Windows Camera app. This does not show up as a new webcam, so can't access it.

Please advise, and thanks.

Unresolved external symbols in Visual Studio 2019

Hello. I have been trying to compile UnityWebcam.sln in Visual Studio 2019 but I get some unresolved external symbols. Any clue on that lib I am missing?

I am trying Release x64 with Visual Studio 2019 Platform Toolset v142 and the Win 10 SDK version.

image

UnrealWebcam.dll is missing

Referred in UE4 example UnrealWebcam.dll is missing.
How can i find it or compile it?
Is it same as UnityWbcam.dll? Can I just rename it?

Can i run UnityCam in background?

Is it possible to run UnityCam in the background, when the image is not rendered to the Game view?
It would be nice to have that option on the script.

Application window not responding

When running a build, the application sometimes whites out and shows "(Not Responding)" in the title bar, as if it's locked up, but the game keeps running, with the scene rendering and video output not being interrupted.
This happens in Unity 2019.3.7f1, but does not happen in 2019.1.14f1.
Appears to happen for all users on different hardware.

Repro steps:
Create a minimal scene with the unity cam component
Build the application and run it in a window
Click outside the application so it is not the active window and wait ~10 seconds
Observe the window stops responding for several minutes, sometimes recovering eventually

Does not work with Universal Render Pipeline

To Reproduce:

  • Install the "Universal RP" asset using the Package Manager
  • Create a "Pipeline Asset (Forward Renderer)"
  • In Player Settings > Graphics assign the Pipeline Asset
  • Play.

There is no longer a webcam output.
There are also no errors.

Issues with install

I am having an issue with installing this, I ran the batch script and I am unsure as to where I would find the component. It didn't show up within Unity. I am having a hard time understanding what needs to be done. Do I need to copy and paste anything into any of the folders, or am I missing something else?Could someone walk me through it one step at a time?

Thank you in advance!

Missing .meta files?

Hi there, and thanks for the great project.
The project seems to be missing the meta files, so the examples scene has missing scripts.

Compilation error

I saw that this issue mentioned modifying the resolution of the virtual camera(#18 ). When I followed the steps mentioned in it and compiled it, there were some errors:

  1. Severity code description: Project file line suppression status
    Error C2733 'SendTexture': Second C link of overloaded function not allowed UnityWebcam c: users administrator downloads unitycam master unitywebcam unitywebcam unityapi. h 12
  2. Severity Code Description Project File Line Suppress Display Status
    Error C2143 syntax error: Missing ';' (before '*') UnityWebcam c: users administrator downloads unitycam master unitywebcam unitywebcam unityapi. h 13
  3. Severity Code Description Project File Line Suppress Display Status
    Error C4430 missing type descriptor - assumed to be int. Note: C++does not support default int UnityWebcam c: users administrator downloads unitycam master unitywebcam unitywebcam unityapi. h 13
  4. Severity Code Description Project File Line Suppress Display Status
    Error C2872 'SharedImageWrapper': Ambiguous symbol UnityWebcam c: users administrator downloads unitycam master unitywebcam unitywebcam unityapi.cpp 36
  5. Severity Code Description Project File Line Suppress Display Status
    Error C2061 syntax error: identifier 'SharedImageWrapper' UnityWebcam c: users administrator downloads unitycam master unitywebcam unitywebcam unityapi.cpp 36
    I don't know how to handle these errors. Has anyone encountered them?

support for directShow

would it be possible to add support for DirectShow so it can be used with stuff like FFMPEG or VLC. or is there another way to achieve this?

UnityWebcam DLL Compilation problems?

I want to change some virtual camera attributes from the source code, such as camera name, resolution, etc.

I downloaded the source code and tried to compile the DLL. Unitycamservice can be compiled successfully. Another unitywebam DLL keeps reporting errors. Prompt sharedimagewrapper this does not recognize and syntax error. Which version of vs do you compile with and how to solve this problem? There are also virtual cameras in Tencent meeting without pictures. Do you have the latest version of DLL source code, can you send a copy?

Looking forward to your reply

macOS version ... will donate to support

Not an issue exactly ... but I'd love to see a version of this that works on a macOS Unity project (especially on Apple Silicon) for an education project that I'm working on right now. Happy to donate some funds towards achieving this. If anyone reading this is keen to attempt the project, please contact me at [email protected]

Resolution problem

I used this plug-in in the video conference, and after UnityCam was turned on, the resolution was relatively low
I would like to ask what is the solution

Example gets the error "video failed" in Zoom, Google Meet

I installed the two "run me first" .bats as administrator, got the verification window, restarted. Then I loaded the example in Unity 2019.3.6f1 and made sure the build was set to x86_64. There app runs full screen, but there is no camera option in Skype. Zoom and Google Meet show the UnityCam as an option but when selected do not show the animation and report the error "video failed" Any suggestions?

How to place this Plugin into my project?

Hello,

I have tried to include this as part of my project by putting it in the Assets folder.
However, now I am getting a lot of errors, for example "The type or namespace could not be found", or "Multiple plugins with the same name", "you are trying to import an asset which contains a global game manager. This is not allowed".

What to do? Am I doing this right?

I am using Windows 10, Unity 2019.4. Btw, are you aware of any OS-independent solution?

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.