Unwanted artifact appears in the saved picture under specific conditions
tracked
phi16
Summary:
- When using FHD full screen mode and FHD camera settings, and viewing the mirror, taking a picture results in strange artifacts appearing only in the saved picture.
- This issue may be resolved by completely clearing the RenderTexture that is used internally in the camera.
Steps to Reproduce:
- Go to the "The Avatar Studio | Avatown" world. (https://vrchat.com/home/world/wrld_96460268-8c89-438f-b8f2-2ea2f1ed1ce7) (Desktop or VR)
- Set the VRChat application to full screen. (1920x1080)
- Set the handheld camera as FHD mode.
- Stand facing the mirror and make sure the mirror frame is in your view.
- Take a picture of anything.
- You may observe a strange artifact in the saved picture, which coincides with the mirror frame displayed on the application screen.
Speculated Cause:
- RenderTexture.GetTemporary seems to be used to obtain an intermediate screen buffer when taking a picture.
- However, the render texture might not be completely cleared, resulting in its depth buffer contents from the previous use remaining. The buffer seems to be accidentally used for the inside-mirror image by VRCMirrorReflection.
- This leads to some areas being obscured (by depth testing) in the picture and producing an image with strange artifacts.
Attached Images:
- 2560x1440 screenshot, no issue.
- 1920x1080 screenshot, contains a strange artifact.
Log In
StormRel
tracked