mrayy / UnityCam

Unity3D Virtual webcam plugin, streams unity viewport contents to other applications as virtual camera
MIT License
506 stars 150 forks source link

Resolution problem #18

Open hahaCrazy opened 4 years ago

hahaCrazy commented 4 years ago

I used this plug-in in the video conference, and after UnityCam was turned on, the resolution was relatively low I would like to ask what is the solution

mrayy commented 4 years ago

The default resolution is 1280x720, however, the browser or client app might have adaptive resolution and scales down the image. This unfortunately can't be handled from the plugin

Oneiros90 commented 3 years ago

Is it possible to override the default resolution?

Oneiros90 commented 3 years ago

I eventually changed resolution to 1920x1080. To do so:

  1. Change default width and default height
  2. Change also max width and max height
  3. Change the GetMediaType() function as shown in this screenshot. I really can't understand why but the resolution was forced to 720p here... immagine
  4. Compile the solution to get the new dlls. See my comment here if you have errors during build.
mp075496706 commented 1 year ago

I eventually changed resolution to 1920x1080. To do so:

  1. Change default width and default height
  2. Change also max width and max height
  3. Change the GetMediaType() function as shown in this screenshot. I really can't understand why but the resolution was forced to 720p here... immagine
  4. Compile the solution to get the new dlls. See my comment here if you have errors during build.

I encountered many errors when compiling using source engineering. I am not very familiar with C++and do not know how to handle it. Do you have a compiled 1920x1080 resolution DLL.