Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by headart · Jun 03, 2012 at 08:51 AM · androidwebcamtexturewebcam

How to get webcam to work with UnityAndroid?

Hi All,

I know that some people have been having some issues with getting the webcamTexture to display correctly on some Android device (Just shows a black texture). I have also been having these problems and have tested it on the following devices;

HTC One X (v4.0.3) = Not working

HTC Desire S (v3.3.5) = Working

ASUS Transformer Pad300 (v4.0.3) = Not Working

Samsung Galaxy Nexus (v4.0.0) = Not Working

Samsung Galaxy S (v2.3.5) = Working

I have submitted an error report to Unity and awaiting response. But in the meantime i was wondering if there is an alternative method of using the camera on an android device?

Thanks in advance.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image casimps1 · Jul 28, 2012 at 02:48 AM 0
Share

I'd like to bump this because I'm running into the same problem. WebCamTexture seems to work fine on my laptop webcam, but I get solid black when running on my $$anonymous$$otorola Droid 2 (running Android 2.3.4)

avatar image JoshS · Sep 04, 2012 at 09:15 AM 0
Share

I'm also having the same issue on half the Android devices I check the webCamTexture on.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by casimps1 · Sep 04, 2012 at 02:31 PM

I've managed to find a workaround for this until Unity gets the WebCamTexture working properly with all Android devices.

There's a free Augmented Reality SDK called Vuforia (previously QCAR - Qualcomm Augmented Reality). They offer a Vuforia package designed to plugin to Unity complete with some example Unity scenes. It was actually a very painless setup.

One of the scenes is called BackgroundTextureAccess. It shows you how to create a Texture2D out of the camera feed (essentially replicating WebCamTexture functionality).

So, this doesn't use WebCamTexture at all, and the SDK includes a ton of AR features beyond just getting the cam to work, but it does seem to get the job done. WebCamTexture didn't work on my Motorola Droid 2, but Vuforia did.

It may be worth a try.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Lanre · Mar 17, 2016 at 06:24 PM

Try the NatCam API. It's new, and packs a lot of features that WebCamTexture doesn't have (like flash, focus, and so on).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I enable the Android lock screen in developer mode? 1 Answer

WebCamTexture.devices.Length returning 0 in Unity 2020.3.8f1 0 Answers

Webcam Texture and Flashlite (Android) 3 Answers

How to simultaneously render multiple (web)cam streams in Android 1 Answer

Webcam texture not rendering on iOs URP 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges