Announcement

Collapse
No announcement yet.

Web camera plugin

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [PLUGIN] Web camera plugin

    Hello!

    I had to access the web camera in-engine for one of my projects, so I though I would share it with the community!

    https://github.com/Temaran/UE4Webcamera

    I implemented it using directshow, so only windows support for now.

    Hopefully it's useful to someone
    And if you would like to contribute, please do! It still needs multiplatform support, Easy BP support etc.

    Best regards,
    Temaran

    -------------------------------------------------------------
    Some of my projects related to UE4:

    https://github.com/Temaran/UE4Webcamera
    https://github.com/Temaran/UE4RenderDocPlugin
    https://github.com/Temaran/UE4ShaderPluginDemo
    https://github.com/Temaran/EyeXforUE4 (Forked from Tobii. It was moved there from my github )
    Last edited by Temaran; 01-28-2016, 03:50 PM.
    Some of my projects related to UE4:

    https://github.com/Temaran/UE4Webcamera
    https://github.com/Temaran/UE4RenderDocPlugin
    https://github.com/Temaran/UE4ShaderPluginDemo
    https://github.com/Temaran/EyeXforUE4 (Forked from Tobii. It was moved there from my github though )

  • #2
    Very nice! Thank you for sharing your work!

    Comment


    • #3
      Np ^^

      /Temaran
      Some of my projects related to UE4:

      https://github.com/Temaran/UE4Webcamera
      https://github.com/Temaran/UE4RenderDocPlugin
      https://github.com/Temaran/UE4ShaderPluginDemo
      https://github.com/Temaran/EyeXforUE4 (Forked from Tobii. It was moved there from my github though )

      Comment


      • #4
        Temaran, many thanks for camera plugin!

        Comment


        • #5
          Thanks a lot for sharing this. I realy would love to implement this in my project for typing in VR like here: https://www.youtube.com/watch?v=SKPYx4CEIlM

          When I try to open your project file I get this:
          Click image for larger version

Name:	Error.png
Views:	1
Size:	16.6 KB
ID:	1101280

          I'm using 4.10.4 at the moment. In your installation instructions you point out not to forget to run UE4's Generate Project Files. Does this mean it has to be a C++ project and that I have to recompile it with visual studio? Or do I have to install the engine from source code?

          Sorry for these noob questions but I'm unfamiliar with C++ and really need this plugin up and running. The last plugin I used (ocean plugin) worked without any C++ so I am unsure if this is even necessary here.

          Thanks a lot for your help!
          Last edited by andtheand; 02-26-2016, 08:47 AM.

          Comment


          • #6
            Originally posted by andtheand View Post
            Thanks a lot for sharing this. I realy would love to implement this in my project for typing in VR like here: https://www.youtube.com/watch?v=SKPYx4CEIlM

            When I try to open your project file I get this:
            [ATTACH=CONFIG]80634[/ATTACH]

            I'm using 4.10.4 at the moment. In your installation instructions you point out not to forget to run UE4's Generate Project Files. Does this mean it has to be a C++ project and that I have to recompile it with visual studio? Or do I have to install the engine from source code?

            Sorry for these noob questions but I'm unfamiliar with C++ and really need this plugin up and running. The last plugin I used (ocean plugin) worked without any C++ so I am unsure if this is even necessary here.

            Thanks a lot for your help!
            Do you have Visual Studio 2015 installed? If you do, then you might not have the right features installed. UE4 requires the C++ part of the install. Click modify on your install and choose to install that optional feature. I can't remember what it's called exactly.

            Metahusk: A 501(c)(3) Creative Development Cooperative
            Projects | Forums | Repositories | Nonprofit | Donate

            Comment


            • #7
              This plugin is pretty cool, thanks!

              Metahusk: A 501(c)(3) Creative Development Cooperative
              Projects | Forums | Repositories | Nonprofit | Donate

              Comment


              • #8
                Cool, I got it working. It just had to be a C++ Project. Thanks for this awesome plugin!

                Comment


                • #9
                  Thanks for the plugin, got it compiled using version 4.11. Had to rename an override in WebcameraPluginHUD.h, is now ShowHUD (if I'm correct)
                  This shouldn't affect the plugin itself. Runs smoothly using x amount of registered webcams. Was able to catch an internet stream using a virtual cam spawned in vMix or magicCam

                  Thanks for sharing!

                  Comment


                  • #10
                    andtheand, how to install it? It`s not working for me. Click image for larger version

Name:	error.jpg
Views:	1
Size:	7.0 KB
ID:	1103563

                    Comment


                    • #11
                      please make simple tutorial how to add web camera video to texture!

                      Comment


                      • #12
                        [MENTION=60351]grifgont[/MENTION]: you need visiual studio installed with c++ libaries. If you then open the example project from the gitub download it will recompile. But I still have some problems integrating this in my own project which was blueprint only.

                        Comment


                        • #13
                          Glad to this plugin,but a problem appears in UE4.12

                          i am glad to find this plugin using directshow to show my web camera,before i hace used opencv plugin to show two web cameras but it can't show two same web camera at the same time,can show two differ web camera at the same time.
                          so i find your plugin using direct show,but when want to open ,it appears can't compile, i opened the project by visual studio ,see some problems i can't solve.could you help me?
                          the problems shows like the pic:
                          Click image for larger version

Name:	QQ图片20160812103109.png
Views:	1
Size:	33.4 KB
ID:	1113619
                          Click image for larger version

Name:	QQ图片20160812103203.png
Views:	1
Size:	80.4 KB
ID:	1113620

                          Comment


                          • #14
                            Alas! cannot compile for 4.12, deprecated functions

                            Comment


                            • #15
                              just comment the line with the error and it should compile.
                              This line is part of the demo, not the plugin, so it's not important

                              Comment

                              Working...
                              X