[FEEDBACK] Provide built-in camera states as animator parameters
logi_9
There are some camera extension prefabs provided by the user community to complement the lack of camera functionality.
They capture a scene with photo quality for all frames because there is no way to detect whether high-resolution capturing is required for the current frame or not in the animator.
Of course, it requires too many computations for a 4K/8K camera. Using preview quality for non-shooting frames can reduce this cost.
This proposal introduces some animator parameters that represent the states of the built-in camera for the current frame.
They will make it possible to optimize rendering quality for photo shooting.
CameraState
: is an integer that represents the state of the built-in camera for the current frame.- 0: Built-in camera is disabled.
- 1: Photo camera is enabled and previewing.
- 2: Photo camera is capturing for saving photos.
- 3: Stream camera is enabled.
CameraResolutionX
and CameraResolutionY
: are integers that represent camera resolution for the photo camera or screen resolution for the stream camera.Log In
Adeon Writer
Concern: This would seemingly allow the creation of content that cannot be taken with photographs, or is dramatically altered for photographs. This may create issues with reporting content.
logi_9
Adeon Writer: I think that you worry too much because similar hacks can be implemented by shader tricks, without this feature.
If the problem is this feature makes it a snap to implement a camera-avoider, we can avoid the problem by not updating these parameters for remote players' avatars.
bd_
One issue I can see with this is timing - the avatar animator will need to run for at least one frame in order to enable the high overhead rendering before the vrc camera can capture safely. This means that the VR camera capture will need to be delayed for one frame at a minimum.
GotoFinal
Canny for camera resolution options: https://feedback.vrchat.com/feature-requests/p/high-resolution-camera-pictures-better-compression-and-less-lag
logi_9
Remarks: I am a developer of VirtualLens2. I will implement optimization with these parameters for it if this proposal is approved.