Mirrors: Difference between revisions

From VRChat Wiki
(reworked Mirror Types section)
(fixed a typo)
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Noticebox/official}}
<!-- simplified chinese translation from 19th Nov. 2024 - https://wiki.vrchat.com/index.php?title=Mirrors&oldid=14938 -->
{{stub|Calibration Mirror and Resources headings are empty. Proofread according to [[VRCWiki:Manual of Style|Manual of Style]].}}
{{Noticebox/Official}}
[[File:Mirror.webp|alt=People socializing in front of a Mirror in VRChat|thumb|People socializing in front of a Mirror in VRChat]]
{{stub|Resources heading is empty. Proofread according to [[Special:MyLanguage/VRCWiki:Manual of Style|Manual of Style]].}}
Mirrors are reflective surfaces that allow users to view a mirrored reflection of their avatar, alongside other users and/or the world they're in. Many worlds contain mirrors intended for users to sit in front of as they socialize, often referred to as "mirror dwelling". Users may also choose to summon a mirror of their own, only visible to them.  
[[File:Mirrors.webp|thumb|A group of people socializing in front of a mirror.]]
'''Mirrors''' are reflective surfaces that allow users to view a mirrored reflection of their avatar, alongside other users and/or the world they're in, depending on the settings of the world. Many worlds contain mirrors intended for users to sit in front of as they socialize. This activity is colloquially referred to as "mirror dwelling". Users may also choose to summon a mirror of their own though only visible to them.  


== Types of mirrors ==
=== World prefab ===
The [[Special:MyLanguage/VRChat SDK|VRChat SDK]] contains a prefab for a ready-to-use mirror that can be dragged into a scene. This prefab is found at the following path:<br>
<code>Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VRCMirror.prefab</code>


=== Mirrors found in worlds ===
=== Types of mirror ===
The [[VRChat SDK]] contains a prefab for a ready-to-use mirror that can be dragged into a scene. This prefab is found at the following path:<br>
<code>Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VRCMirror.prefab</code>


=== Personal Mirror ===
==== Personal Mirror ====
A personal mirror is a type of mirror that can be summoned and moved by a user that can only be viewed by them.  
A personal mirror is a type of mirror that can be summoned and moved by a user that can only be viewed by them.  


The personal mirror can be enabled and configured via the [[Action Menu]] or the [[Main Menu]]'s [[Settings]] page.
It can be enabled and configured via the [[Special:MyLanguage/Action Menu|Action Menu]] or the [[Special:MyLanguage/Main Menu|Main Menu]]'s [[Special:MyLanguage/Settings|Settings]] page.


=== Face Mirror ===
==== Face Mirror ====
A face mirror is a type of mirror that displays the face of a user's avatar in their HUD. Face mirrors are designed to help a user stay aware of their avatar's facial expressions, especially if they're controlled by gestures. Unlike a traditional mirror, the face mirror does not portray depth.
A face mirror is a type of mirror that displays the face of a user's avatar in their [[HUD]]. Face mirrors are designed to help a user stay aware of their avatar's facial expressions, especially if they're controlled by gestures. Unlike a traditional mirror, the face mirror does not portray depth.


The face mirror can be enabled and configured via the [[Action Menu]] or the [[Main Menu]]'s [[Settings]] page.
It can be enabled and configured via the [[Special:MyLanguage/Action Menu|Action Menu]] or the [[Special:MyLanguage/Main Menu|Main Menu]]'s [[Special:MyLanguage/Settings|Settings]] page.


=== Calibration Mirror ===
==== Calibration Mirror ====
A Calibration mirror is a type of mirror that activates automatically when the user presses the "Calibrate FBT" button. It is visible only to the user who is calibrating and disappears once they are done. The Calibration mirror displays only the user's avatar, controllers, and FBT tracker model, which can be set in the Main Menu's Settings. If "Display Calibration Visuals" is enabled under Tracking and IK, the Calibration mirror will also reflect these, showing which tracking points the trackers will track when calibration is done.
A calibration mirror is a type of mirror that activates automatically when the user presses the "Calibrate FBT" button. It is visible only to the user who is calibrating and disappears once they are done. The calibration mirror displays only the user's avatar, controllers, and FBT tracker model, which can be set in the Main Menu's Settings. If "Display Calibration Visuals" is enabled under Tracking and IK, the calibration mirror will also reflect these, showing which tracking points the trackers will track when calibration is done.


The Calibration mirror can be enabled [[Action Menu]] or the [[Main Menu]]'s [[Settings]] page but there are no configuration options for the calibration mirror.
It can be enabled via the [[Special:MyLanguage/Action Menu|Action Menu]] or the [[Special:MyLanguage/Main Menu|Main Menu]]'s [[Special:MyLanguage/Settings|Settings]] page, but there are no configuration options for the calibration mirror.
[[Category:Features]]
[[Category:Features]]


== Common Setups for Mirrors ==
== Common setups ==
The Mirror Prefab allows for selection of which Layers are to be shown in the reflection. Therefore it is common that Worlds have set up multiple different mirrors to toggle between. Which is why it usually breaks down to 3 options: High Quality Mirror, Low Quality Mirror and Transparent Mirror. Some Worlds offer even more specialized setups beyond these.
The mirror prefab allows for selection of which layers are to be shown in the reflection. Therefore it is common that worlds have set up multiple different mirrors to toggle between. Which is why it usually breaks down to 3 options: high quality, low quality and transparent mirror. Some worlds offer even more specialized setups beyond these.
 
=== High quality ===
A high quality mirror acts as a mirror would in real life, reflecting the world and avatars around it from the perspective of the mirror.
 
=== Low quality ===
A low quality mirror usually mirrors the avatars around it at a lower resolution and replaces the reflection of the world with the skybox.
 
=== Transparent ===
A transparent mirror usually reflects the avatars around it while acting like a window, showing what appears behind the mirror, and also having a faint reflection of world from the mirror's perspective. It requires a special set up, which is also available through transparent mirror prefabs from the community.


=== High Quality Mirror ===
== Performance issues ==
The High Quality Mirror acts as a mirror would in real life, reflecting the world and avatars around it from the perspective of the mirror.
Every object reflected in a mirror has to be rendered again, separately from what the player sees in the playable world. A mirror reflecting the whole world will double the performance cost of rendering the world. Occlusion culling does not work in mirror reflections, so a mirror facing a wall will still try to render everything behind the wall too.


=== Low Quality Mirror ===
Creators can reduce the performance cost for mirrors in many ways, such as:
The Low Quality Mirror usually mirrors the avatars around it at a lower resolution and replaces the reflection of the world with the skybox.
* Disabling all mirrors by default. Only enable a mirror when the player pushes a button, or physically approaches them.
* Disabling mirrors when a player leaves the area. This will remove the rendering cost of a mirror when a player isn't using it. Players will often not do this themselves, so use a script to do it for them.
* Considering the placement of mirrors. A mirror facing away from the center of the world will have to render less than one facing inward.
* Changing the [[Special:MyLanguage/Layers|Layers]] a mirror reflects. A mirror only renders objects on the defined layers. For example, if you have a large outdoor world with a house in the middle, you could set the outdoor environment objects to the environment layer, and then disable the environment layer on the mirrors inside the house. This will stop the mirrors from trying to render the environment that they can't see.
When interacting with a Mirror in a world, users will be able to enable or toggle different options to save on performance, such as:


=== Transparent mirror ===
* Using only one mirror at a time.
The Transparent mirror usually reflects the avatars around it while acting like a window, showing what appears behind the mirror, and also having a faint reflection of world from the mirror's perspective. It requires a special set up, which is also available through transparent mirror prefabs from the Community.
* Choosing a lower quality option for a mirror, if available.
* Alternatively, substituting a world's mirror for your Personal Mirror.
* Adjust your mirror resolution under [[Settings#Graphics|Graphics Settings]].


== Resources ==
== Resources ==
[https://creators.vrchat.com/worlds/components/vrc_mirrorreflection/ VRChat Creator Documentation - VRC Mirror Reflection]

Latest revision as of 15:24, 19 November 2024

VRLogo.png
V · EThis is an official VRChat information page!
It is written and maintained by VRCWiki Team.
Vrrat posed-right.png
V · EThis page is a stub.
You can help the VRChat Wiki by improving it.
[Reason: Resources heading is empty. Proofread according to Manual of Style.]
A group of people socializing in front of a mirror.

Mirrors are reflective surfaces that allow users to view a mirrored reflection of their avatar, alongside other users and/or the world they're in, depending on the settings of the world. Many worlds contain mirrors intended for users to sit in front of as they socialize. This activity is colloquially referred to as "mirror dwelling". Users may also choose to summon a mirror of their own though only visible to them.

World prefab

The VRChat SDK contains a prefab for a ready-to-use mirror that can be dragged into a scene. This prefab is found at the following path:
Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VRCMirror.prefab

Types of mirror

Personal Mirror

A personal mirror is a type of mirror that can be summoned and moved by a user that can only be viewed by them.

It can be enabled and configured via the Action Menu or the Main Menu's Settings page.

Face Mirror

A face mirror is a type of mirror that displays the face of a user's avatar in their HUD. Face mirrors are designed to help a user stay aware of their avatar's facial expressions, especially if they're controlled by gestures. Unlike a traditional mirror, the face mirror does not portray depth.

It can be enabled and configured via the Action Menu or the Main Menu's Settings page.

Calibration Mirror

A calibration mirror is a type of mirror that activates automatically when the user presses the "Calibrate FBT" button. It is visible only to the user who is calibrating and disappears once they are done. The calibration mirror displays only the user's avatar, controllers, and FBT tracker model, which can be set in the Main Menu's Settings. If "Display Calibration Visuals" is enabled under Tracking and IK, the calibration mirror will also reflect these, showing which tracking points the trackers will track when calibration is done.

It can be enabled via the Action Menu or the Main Menu's Settings page, but there are no configuration options for the calibration mirror.

Common setups

The mirror prefab allows for selection of which layers are to be shown in the reflection. Therefore it is common that worlds have set up multiple different mirrors to toggle between. Which is why it usually breaks down to 3 options: high quality, low quality and transparent mirror. Some worlds offer even more specialized setups beyond these.

High quality

A high quality mirror acts as a mirror would in real life, reflecting the world and avatars around it from the perspective of the mirror.

Low quality

A low quality mirror usually mirrors the avatars around it at a lower resolution and replaces the reflection of the world with the skybox.

Transparent

A transparent mirror usually reflects the avatars around it while acting like a window, showing what appears behind the mirror, and also having a faint reflection of world from the mirror's perspective. It requires a special set up, which is also available through transparent mirror prefabs from the community.

Performance issues

Every object reflected in a mirror has to be rendered again, separately from what the player sees in the playable world. A mirror reflecting the whole world will double the performance cost of rendering the world. Occlusion culling does not work in mirror reflections, so a mirror facing a wall will still try to render everything behind the wall too.

Creators can reduce the performance cost for mirrors in many ways, such as:

  • Disabling all mirrors by default. Only enable a mirror when the player pushes a button, or physically approaches them.
  • Disabling mirrors when a player leaves the area. This will remove the rendering cost of a mirror when a player isn't using it. Players will often not do this themselves, so use a script to do it for them.
  • Considering the placement of mirrors. A mirror facing away from the center of the world will have to render less than one facing inward.
  • Changing the Layers a mirror reflects. A mirror only renders objects on the defined layers. For example, if you have a large outdoor world with a house in the middle, you could set the outdoor environment objects to the environment layer, and then disable the environment layer on the mirrors inside the house. This will stop the mirrors from trying to render the environment that they can't see.

When interacting with a Mirror in a world, users will be able to enable or toggle different options to save on performance, such as:

  • Using only one mirror at a time.
  • Choosing a lower quality option for a mirror, if available.
  • Alternatively, substituting a world's mirror for your Personal Mirror.
  • Adjust your mirror resolution under Graphics Settings.

Resources

VRChat Creator Documentation - VRC Mirror Reflection