|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| {{Noticebox/Official}} | | {{Noticebox/Official}} |
| {{stub|Resources heading is empty. Proofread according to [[Special:MyLanguage/VRCWiki:Manual of Style|Manual of Style]].}} | | {{stub|Resources heading is empty. Proofread according to [[Special:MyLanguage/VRCWiki:Manual of Style|Manual of Style]].}} |
| [[File:Mirror.webp|alt=People socializing in front of a Mirror in VRChat|thumb|People socializing in front of a mirror.]] | | [[File:Mirrors.webp|thumb|图例 一些玩家在镜子附近进行社交。]] |
| '''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. | | '''镜子'''是一种反射的表面,可以让玩家查看自己人物的镜像,以及其他玩家以及所处的世界。许多世界都包含镜子,供用户在社交时坐在镜子前,通常被称为“mirror dwelling”。用户还可以在轮盘菜单选择召唤一面只有他们自己才能看到的镜子。 |
|
| |
|
| == Types == | | ==类型== |
|
| |
|
| === 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>
| | [[Special:MyLanguage/VRChat SDK|VRChat SDK]] 包含一个可直接使用的镜子预制件,可将其拖入场景。此预制件位于以下路径:<br> |
| <code>Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VRCMirror.prefab</code> | | <code>Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VRCMirror.prefab</code> |
|
| |
|
| === User feature === | | ===用户功能=== |
|
| |
|
| ==== 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 [[Special:MyLanguage/Action Menu|Action Menu]] or the [[Special:MyLanguage/Main Menu|Main Menu]]'s [[Special:MyLanguage/Settings|Settings]] page.
| | 可以通过以下方式打开和调整 [[Special:MyLanguage/Action Menu|Action Menu]] 或者 [[Special:MyLanguage/Main Menu|主菜单]]的 [[Special:MyLanguage/Settings|设置]] 页面。 |
|
| |
|
| ==== 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.
| | 脸部镜子是一种可以在屏幕上显示玩家模型的脸部的镜子。 [[HUD]]. 脸部镜子旨在帮助用户了解其虚拟形象的面部表情, 尤其是当通过手势控制时. 与传统镜子不同,脸部镜不会呈现深度。 |
|
| |
|
| 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.
| | 可以通过以下方式打开和调整 [[Special:MyLanguage/Action Menu|Action Menu]] 或者是 [[Special:MyLanguage/Main Menu|主菜单]]的 [[Special:MyLanguage/Settings|设置]] 页面。 |
|
| |
|
| ==== 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.
| | 校准镜是一种当用户按下“校准 FBT”(全身追踪)按钮时自动激活的镜子。它仅对正在校准的用户可见,校准完成后会消失。校准镜仅显示用户的人物模型、控制器和 FBT 跟踪器模型,可在主菜单的设置中设置。如果在跟踪和 IK 下启用了“显示校准视觉效果”,校准镜也会反映这些效果,显示校准完成后跟踪器将跟踪哪些跟踪点。 |
|
| |
|
| 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.
| | 可以通过以下方式打开 [[Special:MyLanguage/Action Menu|Action Menu]] 或者是 [[Special:MyLanguage/Main Menu|主菜单]]的 [[Special:MyLanguage/Settings|设置]] 页面, 但没有校准镜的配置选项。 |
| [[Category:Features]] | | [[Category:Features]] |
|
| |
|
| == 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.
| | 镜子预制件允许设置要在反射中显示哪些层。因此,一个世界通常会设置多个不同的镜子以供切换。一方面是考虑到部分性能优化,一部分是考虑到玩家可能只想看见玩家而不需要背景,这就是为什么它通常分为 3 个选项:高质量、低质量和透明镜子。有些世界甚至提供比这些更专业的设置。 |
|
| |
|
| === 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 [[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. | | *修改在镜子反射里的 [[Special:MyLanguage/Layers|图层]] 。让镜子仅渲染选择的图层上的对象 ,比如, 如果你有一个很大的户外世界,中间有一所房子, 镜子里又看不到户外的内容,您可以将室外环境对象设置为一个环境层,然后禁用房屋内镜子上的环境层。这将阻止镜子尝试渲染它们看不到的环境。 |
| 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 [[Settings#Graphics|Graphics Settings]]. | | *去 [[Settings#Graphics|图像质量设置]] 里调整镜子的清晰度。 |
|
| |
|
| == Resources == | | ==相关内容== |
| [https://creators.vrchat.com/worlds/components/vrc_mirrorreflection/ VRChat Creator Documentation - VRC Mirror Reflection] | | [https://creators.vrchat.com/worlds/components/vrc_mirrorreflection/ VRChat 创作者文档 VRChat镜面反射] |
This is an official VRChat information page!
It is written and maintained by VRCWiki Team.
镜子是一种反射的表面,可以让玩家查看自己人物的镜像,以及其他玩家以及所处的世界。许多世界都包含镜子,供用户在社交时坐在镜子前,通常被称为“mirror dwelling”。用户还可以在轮盘菜单选择召唤一面只有他们自己才能看到的镜子。
类型
世界预制件
VRChat SDK 包含一个可直接使用的镜子预制件,可将其拖入场景。此预制件位于以下路径:
Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VRCMirror.prefab
用户功能
个人镜子
个人镜子是一种可以被玩家自己召唤和移动的镜子,只有玩家自己才能看到。
可以通过以下方式打开和调整 Action Menu 或者 主菜单的 设置 页面。
脸部镜子
脸部镜子是一种可以在屏幕上显示玩家模型的脸部的镜子。 HUD. 脸部镜子旨在帮助用户了解其虚拟形象的面部表情, 尤其是当通过手势控制时. 与传统镜子不同,脸部镜不会呈现深度。
可以通过以下方式打开和调整 Action Menu 或者是 主菜单的 设置 页面。
校准镜
校准镜是一种当用户按下“校准 FBT”(全身追踪)按钮时自动激活的镜子。它仅对正在校准的用户可见,校准完成后会消失。校准镜仅显示用户的人物模型、控制器和 FBT 跟踪器模型,可在主菜单的设置中设置。如果在跟踪和 IK 下启用了“显示校准视觉效果”,校准镜也会反映这些效果,显示校准完成后跟踪器将跟踪哪些跟踪点。
可以通过以下方式打开 Action Menu 或者是 主菜单的 设置 页面, 但没有校准镜的配置选项。
常见设置
镜子预制件允许设置要在反射中显示哪些层。因此,一个世界通常会设置多个不同的镜子以供切换。一方面是考虑到部分性能优化,一部分是考虑到玩家可能只想看见玩家而不需要背景,这就是为什么它通常分为 3 个选项:高质量、低质量和透明镜子。有些世界甚至提供比这些更专业的设置。
高质量
高品质镜子的作用就如同现实生活中的镜子一样,从镜子的角度反射周围的世界和玩家。
低质量
低质量镜子通常以较低的分辨率镜像周围的虚拟角色,并用天空盒代替世界的反射,以天空盒做背景并显示玩家。
透明镜(仅玩家)
透明镜子通常会反射周围的玩家,同时可用来充当窗户,显示镜子后面的内容,并从镜子的角度隐约反射世界。它需要特殊设置,或者从社区中的透明镜子预制件获得。
关于优化
镜子中反射的每个物体都会被再次渲染,与玩家在可玩世界中看到的内容无关。反射整个世界的镜子将使渲染世界的性能成本翻倍。遮挡剔除在镜面反射中不起作用,因此面向墙壁的镜子仍会尝试渲染墙壁后面的所有东西。
世界创建者可以通过一些方式降低镜像的性能成本,例如:
- 默认关闭所有镜子。只有当玩家按下按钮或者移动到镜子边才打开镜子。
- 当玩家离开该区域时关闭镜子。这将减少玩家不使用镜子时的渲染成本。玩家要走远大概率懒得关镜子,或许使用脚本实现自动关闭会好点。
- 考虑镜子的放置位置。背对世界中心的镜子渲染的面积要小于朝内的镜子,因为前面提到遮挡剔除在镜子里失效。
- 修改在镜子反射里的 图层 。让镜子仅渲染选择的图层上的对象 ,比如, 如果你有一个很大的户外世界,中间有一所房子, 镜子里又看不到户外的内容,您可以将室外环境对象设置为一个环境层,然后禁用房屋内镜子上的环境层。这将阻止镜子尝试渲染它们看不到的环境。
当与世界中的镜子互动,用户也能通过一些方法来节省性能,例如:
- 一次仅可以打开一面镜子。
- 如果有的选,请选择质量较低的镜子。
- 或者,用世界的镜子就关掉你的个人镜子。
- 去 图像质量设置 里调整镜子的清晰度。
相关内容
VRChat 创作者文档 VRChat镜面反射