VRCPlayersOnlyMirror (背景なし No background)
- 無料 Free¥ 0
- 無料と同じ Donate¥ 200
!!! バージョン 0.1.4+ では、SDK3 のバージョンが VRCSDK3-WORLD-2022.08.29.20.48_Public 以降であることを確認してください。!!! !!! For version 0.1.4+, please make sure you are using SDK3 version VRCSDK3-WORLD-2022.08.29.20.48_Public or newer !!! VRCMirrorがカスタムカメラクリアフラグをサポートするようになったため、このバージョンでは "TransparentBackground "マスクが不要になりました。このサポートを追加したバージョンを使用していることを確認するために、SDK3をアップデートしてください。 This version no longer needs the "TransparentBackground" mask, as VRCMirror now supports custom camera clear flags. Please make sure you update your SDK3 to ensure you are using the version that added support for this. 「VRC Mirror Reflection」コンポーネントは、ミラーに背景が残っている場合、次のように表示されることを確認してください。 Please make sure your "VRC Mirror Reflection" component looks like this if the background is still visible in the mirror https://cdn.nyanpa.su/i/PiMX2EB0.jpg ----- 素敵な地図で景色を眺めるか、自分の反射を見つめるかを選択するのにうんざりしていませんか? 今、あなたは両方を同時に行うことができます! VRCPlayersOnlyMirrorは、背景のないプレーヤーのみを表示するシンプルなミラーprefabです。 これは切り抜かれた2Dカメラではなく、完全な3Dミラーです。 - 背景のない鏡でのプレイヤーの反射 - 調整可能なミラーの透明度 - 単純な距離フェード - PCとQuestの両方の世界で動作します - LQミラーとほぼ同等の性能コスト Tired of having to choose between admiring the scenery in a nice map or staring at your own reflection? Now you can do both at the same time! VRCPlayersOnlyMirror is a simple mirror prefab that shows players only without any background. This is NOT a 2D camera cut out, it is a full 3D mirror. - Player reflections in mirrors without any background - Adjustable mirror transparency - Simple distance fade function - Works on both PC and Quest worlds - Performance cost more or less the same as a LQ mirror
要件 Requirements
- VRChat SDK2 or SDK3
方法 How to
- プロジェクトに応じて、SDK2またはSDK3のunitypackageをインポートします - サンプルシーンとprefabが提供されています - 必要に応じてサイズを変更します。 - Import either the SDK2 or SDK3 unitypackage depending on your project - Example scene is provided as well as a prefab - Resize as needed.
シェーダの種類 Shader Types
- PlayersOnlyMirror - 透明度と距離フェード付きの通常バージョン - PlayersOnlyMirrorCutout - カットアウトのみのバリエーションで、透明度や距離フェードはありません。 - PlayersOnlyMirror - Regular version with transparency and distance fade - PlayersOnlyMirrorCutout - Variant with just cutout, no transparency or distance fade.
シェーダー設定 Shader settings
- Base (RBG) - デフォルトのミラーシェーダーと同じ動作で、テクスチャを反射にオーバーレイします - Hide Background - 背景を非表示にします。これを機能させるには、ミラーの偽の背景として機能する - Ignore Effects - パーティクルやレンズフレアなどの効果を無視しようとします。ただし、キャラクターの前にいる場合は表示されます。 TransparentBackgroundシェーダーが必要です。 - Transparency - ミラーの透明度を調整します - Transparency Mask - ミラーの透明度を調整するテクスチャマスクは、完全に不透明な白から、黒で完全に透明になります。 SDK2のミラーマテリアルプロパティをアニメーション化できないため、主にSDK2のミラー全体の透明度をリアルタイムで調整するために使用されます。 詳細については、次のセクションを参照してください。 - Distance Fade - ミラーがゼロアルファにフェードし始めるまでの距離。0で無効になります。 - Distance Fade Length - 距離フェード長-ゼロアルファにフェードするために必要な移動距離の長さ。 - Smooth Edge- エッジをよりスムーズにし、半透明オブジェクトが不透明になる現象を軽減します。 - Alpha Tweak Level- Smooth Edgeの影響度を調整します - Base (RBG) - Overlays a texture onto the reflection, same behavior as the default mirror shader - Hide Background - Hides the background, requires the TransparentBackground shader acting as a fake background for the mirror for this to work - Ignore Effects - Attempts to Ignore effects like particles, lens flare. Will still show up if they are in front of your character however. - Transparency - Adjust transparency of the mirror - Transparency Mask - Texture mask that adjusts the transparency of the mirror, goes from white for fully opauque, to fully transparent with black. Mainly used to adjust the transparency of the entire mirror in real time for SDK2 as you can't animate mirror material properties on SDK2. See Next section for more details. - Distance Fade - Distance before the mirror starts fading to zero alpha. Disabled at 0. - Distance Fade Length - The length of distance traveled needed to fade to zero alpha. - Smooth Edge - Makes edges smoother, transparent objects are not opaque. - Alpha Tweak Level- Adjust smooth edge power.
SDK2
- ミラーが正しく機能するには「TransparentBackground」が必要ですが、VRCPlayersOnlyMirrorを使用していない他のミラーがシーンにある場合は、別のレイヤーに配置して、VRCPlayersOnlyMirrorのレイヤーにのみ表示することを検討してください。 それ以外の場合は、VRCPlayersOnlyMirrorもオンになっている場合は、フルミラーなど、他のミラーに表示されます。 - sdk2でミラーのマテリアルプロパティをアニメーション化することはできないため、カメラとレンダリングテクスチャは、UIスライダーを介してミラーの透明度を制御するために使用されます。 - 複数のミラーがあり、独立した透明度スライダーが必要な場合は、個別のマテリアルを作成し、それぞれにテクスチャとカメラをレンダリングする必要があります。 - The "TransparentBackground" is required for the mirror to work properly, however if you have other mirrors in your scene that are not using VRCPlayersOnlyMirror, consider putting it on a different layer and show it on VRCPlayersOnlyMirror's layers only. Other wise it will show up in other mirrors, such as a full mirror if VRCPlayersOnlyMirror is also on. - The camera and render texture is used to control the transparency of the mirror via a ui slider, as its not possible to animate mirror material properties on sdk2. - If you have multiple mirrors and want independent transparency sliders, you will need to make separate materials, render textures and camera's for each of them
欠点 Caveats
- Smooth Edgeをオンにした場合。 ** 使用するシェーダによっては、アバターの透明マテリアルの一部が正しく透明化されない場合があります。(UTSではこの問題があります) - Smooth Edgeを利用しない場合、 ** ほとんどの透明な素材は鏡の中では不透明に見えます ** 粒子、添加剤などは黒い輪郭になります - ミラーの後ろまたは前にある透明なマテリアルは、ミラーによって上書きまたは上書きされる可能性があります。レンダリングキューを調整すると、ステンシルを使用した最後の手段として役立ちます。 - If you turn on Smooth Edge, ** Depending on shader used, transparent materials on avatars may cause certain parts of your avatar to be transparent incorrectly. (UTS has this problem) - If you turn off Smooth Edge, ** Most transparent materials will appear opaque in the mirror ** Particles, additive materials etc will have black outlines - Transparent materials behind or in front of the mirror may overwrite or be overwritten by the mirror, adjusting the render queue can help, or as a last resort using stencils.
デモ Demo
このミラーの動作を確認したい場合は、私の公開マップWinterSolaceで見つけることができます。 If you'd like to see this mirror in action you can find it in one of my public maps, Winter Solace. https://vrchat.com/home/world/wrld_8899947f-8e19-4981-b327-a63be233706a
Releases
12/09/2022 - v 0.1.5 - Smooth Edgeトグルを追加(xiphia氏に感謝します) - Added Smooth Edge Toggle (Thanks to xiphia) 31/08/2022 - v 0.1.4 - VRCSDK3-WORLD-2022.08.29.20.48_Public では、VRCMirror でカスタム カメラ クリア フラグを設定できるため、「TransparentBackground」マスクは不要になりました。 - SDK3のみ - As of VRCSDK3-WORLD-2022.08.29.20.48_Public, "TransparentBackground" mask is no longer needed, as VRCMirror allows setting of custom camera clear flags - For SDK3 only 16/05/2021 - v 0.1.3 - シェーダーでToggleからToggleUIに変更し、使用するシェーダーキーワードを減らしました。 - Switched from Toggle to ToggleUI in shaders to reduce shader keywords used 6/02/2021 - v 0.1.2 - Cutoutバリアントを追加しました。このバージョンでは、ミラーの前後にある透過オブジェクトの問題は発生しないはずで、透過を必要としない場合に使用してください。 - 効果を無視するトグルを追加しました。パーティクル効果、レンズフレア、鏡面反射レンダリングテクスチャからゼロアルファとして読み込まれる特定の透明効果を無視しようとします。 - Added Cutout variant. This version shouldn't have issues with transparent objects behind/infront of the mirror and should be used if you don't need transparency. - Added Ignore Effects toggle. Tries to ignore particle effects, lens flare and certain transparent effects which are read as zero alpha from mirror reflection render texture. 31/01/2021 - v 0.1.1 - デフォルトのレンダリングキューがTransparent + 1になりました - シンプルなディスタンスフェード機能を追加 - Default render queue now Transparent+1 - Added simple distance fade function 18/01/2021 - Release
License
MIT License Copyright (c) 2021 Temporal
Contact
https://twitter.com/acertainbluecat https://github.com/acertainbluecat/VRCPlayersOnlyMirror 私の日本語が下手なのですみません。