Adds support for web cameras in Unreal Engine 4
C++ C# C
Switch branches/tags
Nothing to show
Clone or download
Latest commit b30315c Jan 28, 2016
Permalink
Failed to load latest commit information.
Build/Receipts Initial commit Jan 28, 2016
Config Initial commit Jan 28, 2016
Content Initial commit Jan 28, 2016
Plugins/Webcamera Initial commit Jan 28, 2016
Source Initial commit Jan 28, 2016
.gitignore Initial commit Jan 28, 2016
README.md Added thank you Jan 28, 2016
WebcameraPlugin.uproject Initial commit Jan 28, 2016

README.md

UE4Webcamera

A plugin that lets you use your web camera in Unreal Engine 4! Currently implemented using DirectShow.

How to use

  1. This was latest tested on 4.10.2

  2. Copy the plugins folder to your <Game>/Plugins/ folder; alternatively, you can copy to the Engine/Plugins/ if you wish to make the plugin available to all of your projects.

    Do not forget to run UE4's Generate Project Files to account for these changes!

  3. Hook up the Texture you get from running Connect(cameraIndex) to a UPROPERTY to prevent it from being garbage collected in your cpp somewhere (begin play might be a good place). Then check out the M_Webcamera material and the character blueprints event graphs to see an example of how you can hook up the texture to a mesh.

  4. Have fun!

Thanks

I was inspired a lot by this directshow project by a guy called "Limitz": http://www.rohitab.com/discuss/topic/34389-directshow-webcam-capture-class-c/