Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: A3DStudio on May 12, 2013, 06:02:25 PM
-
Webcam support actions for Playmaker.
Supports multiple cameras and works also on Mobile phones. (tested on android samsung galaxy s3)
There are 3 actions: Check For Webcam, Get Webcam Name and Set Webcam Material
CheckForWebcam.cs
This action check your computer or mobile phone for a camera and send a appropriate event.
GetWebcamName.cs
Store the camera name as a string. If the system has multiple cameras (mobile), you can store the names to several strings. You can also store the camera count to a integer.
SetWebcamMaterial.cs
Set here the camera name and a empty material to stream the video.
Screenshots:
(http://a3ds.files.wordpress.com/2013/05/webcam_0.jpg)
(http://a3ds.files.wordpress.com/2013/05/webcam_1.jpg)
(http://a3ds.files.wordpress.com/2013/05/webcam_2.jpg)
(http://a3ds.files.wordpress.com/2013/05/webcam_3.jpg)
-
Cool! Can't wait to try these out! :)
-
tested by ipad3 - works fine. thank you!!
-
I used an external camera on my mac and it works simultaneously with 2 cams.
On my win7pc it just turn on one cam only at a time why ?
can I use a TVs tunner as a webcam ?
-
I purchased playmaker but dont have webcam option in action browser, why is that? :(
-
Hi these are custom actions that you can get on the forum and most of them on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)
-
Hi,
i will check them out tonight and add them to the Ecosystem.
-
Hi,
These Actions Are now Available on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)
-
WOW! THANK YOU SO MUCH! @djaydino
-
Hi there!
Only the built in rear camera is currently supported. How about external or usb camera? Please help. Thanks!
-
Hi,
you get a list of what Unity sees as web cameras being registered by the Operating system.
so if you only see a Rear cam, it's your OS/Unity that only sees this one. if you plug a Usb cam, make sure you refresh, I know on windows for example, plugin a joystick while the app is running won't register it, you'll have to restart. it may be the same for webcams.
Bye,
Jean
-
Hello Jean!
Sorry i forgot to mention, im working on android. In pc, there's no problem in getting the list of webcams, but on android, the only thing in the list is the internal camera of my tablet (rear and front cam). All i want is to see the usb camera attached on it. What should i do? Thanks in advance.
-
Hi,
it's unfortunatly nothing you can do about it then, as the list of webcam comes from what Unity gives us...
Bye,
Jean
-
Resurrecting a really old thread, but super thankful I found it!
Can any of you smart people help me understand the object setup portion of this?
I made and posted a 30 second video to show you my current setup.
https://youtu.be/ql8v2RAFwiI (https://youtu.be/ql8v2RAFwiI)
I've made a empty material and applied that to an image. All I get is a black screen. I can confirm the camera works and it's not in a totally dark room. :)
-
Hi,
I can see that there is a Mesh Renderer component.
That should be removed.
But that is not the main issues.
You need to change the shader to for example Unlit/Texture
-
And boom goes the dynamite. That did the trick!
Thank you! :)
-
is this still working in unity 2020 ? not working here ?
does it need a render texture or ?
all seem to work finds my camera etc but nothing appears on the material ?