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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
1
Question by smeagols · Oct 14, 2013 at 10:31 AM · resolutionwebcamtexturewebcam

How can i find max resolution for WebCamTexture

Hi,

I'm having problems with créate a webCamTexture.

How can i find the resolution of a webcam before to créate the "new WebCamTexture(Width, Heigth, FPS) ??

thanks!

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Graham-Dunnett · Oct 14, 2013 at 10:57 AM

Create the WebCam texture using the resolution you want. If that is bigger than the webcam supports, then the size you get will be the size the webcam supports.

Comment
Add comment · Show 3 · 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 smeagols · Oct 14, 2013 at 12:33 PM 0
Share

thanks Works fine!

avatar image CgShady · May 06, 2014 at 10:04 AM 0
Share

Well, I'm using 4.3.4 right now, and I'm trying to set my WebCamTexture at a 4096 x 4096 size, and it results in a 4k texture that is extremely slow, but not the real size of my iSight... Furthermore, when I use Debug.Log (webcamtexture.width), I get 16 no matter the size it really is. I can check the size of generated texture in the inspector.

avatar image nmcconnell · May 06, 2014 at 10:09 AM 0
Share

if the width is 16, that may mean that your webcam texture is not playing yet. (you need to call Play to start the camera)

avatar image
1

Answer by RDC · Jun 24, 2014 at 09:10 AM

You may try set 1280X720P , exact what Unity supporting. Below is the code snip I am using, and working fine with me.

 webcamTexture = new WebCamTexture (WebCamTexture.devices [0].name, 1280, 720, 30);            
 guiTexture.texture = webcamTexture;    
 webcamTexture.Play ();

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

18 People are following this question.

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

Related Questions

Projector with WebCamTexture as texture 0 Answers

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

WebCamTexture IOS crashing? 1 Answer

Creating Snapshots or Images with WebCamTexture? 2 Answers

Video record in Unity (Android/IOS) 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