GithubHelp home page GithubHelp logo

arimintzu / unitycam_hdrp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shinn716/unitycam_hdrp

0.0 0.0 0.0 6.98 MB

Unity3D Virtual webcam plugin, streams unity viewport contents to other applications as virtual camera. Support Build-in and HDRP pipline.

License: MIT License

C++ 91.91% C 4.28% C# 3.22% Batchfile 0.19% ShaderLab 0.40%

unitycam_hdrp's Introduction

UnityCam

UnityCam HDRP

Virtual webcamera for HDRP.

⚠️ Not support URP. ⚠️

If you want to use virtual camera in URP.
You need change OnRenderImage workflow to ScriptableRenderPass.

Reference here:
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnRenderImage.html

Live-streaming to OBS.

How to use: Drag camera into CustomPassVolume UnityCamHDRP.virtualcam.

UnityCam Build-in pipline

UnityCam

This plugin provides a way for unity3D applications and games to output the viewport to an external application and use the viewport as a webcamera for such applications.

For example: Recording viewport in a webcamera capture software (Sharpcap), or using it in browser applications (tested in Chrome).

Tested Platforms:

  • Tested on Windows 64 bits
  • Tested using Unity 32,64 bits

For Skype, please use x32 version of the service found in "RunMe First" folder, check instructions bellow for how to run it.

Usage

  1. Before using, access folder "RunMe First", access the target platform folder (x32,x64) which depends on the application you will use to view the virtual camera in. Right click on "Register.bat" and choose "Run as Administrator" to register UnityCam plugin in Windows. A window will appear to confirm that the plugin was successfully registered.

  2. Inside unity, attach to the main camera the following component: UnityCam\Scripts\UnityCam.cs

  3. Hit Play, now unity will stream whatever being rendered as a webcamera. You can use it in browser or any video capture program via the new camera UnityCam.

Check the included sample scene for a fully working example.

Build

Make sure to set Architecture to x86_64 in the Build Settings in order to get the plugin running when deployed.

UPDATE 2019/November

Thanks to @ArmainAP, this plugin now supports UE4. Plugin for UE4 is located under "UnrealCamDemo" folder.

License

Copyright (c) 2016 MHD Yamen Saraiji

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

unitycam_hdrp's People

Contributors

mrayy avatar shinn716 avatar twilightwings avatar

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.