【VRChat・汎用】V睡にやさしい光と Zzz を「寝息」(アバター用・PC)
- Digital500 JPY














みんなが見守る中で、すうっと眠りに落ちる。 「寝息」は、V睡(VR で寝ること)のための演出です。 寝る前にオンにすると、体のまわりがやわらかく暗い光に包まれて、Zzz と小さな星がゆっくり浮かびます。 自分の視界は、まぶたを閉じるようにだんだん暗く。ほかの人には、光と Zzz だけが見えます。 ■ ポイント ・ゆめか専用ではありません。Humanoid のアバターなら、どのアバターにも使える汎用品です ・寝転んでも体を包む光(胸・腰・ひざの骨についていく)。寝息のようにゆっくりふくらむ ・Zzz・星・三日月はシェーダーで形を描くので、テクスチャなしでくっきり ・自分の視界だけ暗く(ほかの人・ミラー・VRChat のカメラには写らない) ・プリセット:すやすや / 星空 / 月明かり ・オン・オフのアニメはボタン1つ。スクリプト(U#)なしで全員に同じ見え方 ↓ 動きは2枚目の GIF、くわしくは下へ。 ■ くわしく ・体のまわりのやわらかく暗い光(胸・腰・ひざの骨についていくので、寝転んでも体を包む)。寝息のようにゆっくりふくらむ ・Zzz が頭の上からゆっくり浮かぶ(数・色・ふち・大きさ・速さ) ・小さな星がまわりを漂い、またたく(数・色・大きさ)/三日月(オン・オフ) ・自分の視界だけ、まぶたが閉じるように暗く(暗さ・暗い所の色)。VRChat が本人の視点で頭を縮めている時だけ描くので、ほかの人・ミラー・VRChat のカメラには写りません ・Animator の _Amount でオン・オフ。前半で光と Zzz が出て、後半でまぶたが閉じる ・「オン・オフのアニメを作る」ボタン:On(設定した秒数でゆっくり暗くなる)・Off・Amount(Radial Puppet 用) ・非破壊:首の骨の子にオブジェクトを1つ足すだけ。アバターのメッシュ・マテリアルは変えません。「外す(元に戻す)」で外せます。付けるのも Ctrl+Z 1回で取り消せます ・VRChat の色空間(Linear)で明るさ・暗さを確認済みです 気をつけること ※一人称で頭を縮めない設定(VRCHeadChop で頭の大きさを 1 にする)だと、まぶたは暗くなりません。 ※Unity のエディタでは、目の位置の球の中から見ると暗くなります(シーンビューで確かめられます)。 ※ゆっくり暗くなるのは、Animator で _Amount を動かすアニメ(付属のボタンで作れます)によるものです。 ■ 動作環境 ・対応アバター:汎用。Humanoid のアバターならどれでも使えます(画像はゆめかで撮影。lilToon 2.3.4 で確認) ・Unity 2022.3(VRChat で使うバージョン)・ビルトイン レンダーパイプライン ・PC 専用(VRChat の仕様で、Quest・スマホのアバターではカスタムシェーダーが使えません) ・VRChat SDK3 Avatars(なくてもコンパイルできます。Modular Avatar も不要です) ■ 導入 1. unitypackage を Unity にドラッグ&ドロップしてインポート 2. メニューの Tools > lv1101 > Neiki (Sleep Effect) でウィンドウを開く 3. Hierarchy でアバターを選び、プリセットを選んで「寝息を付ける」を押す 4. 「調整」タブの「オン・オフのアニメを作る」で作ったアニメを、FX レイヤーと Expression メニューのトグルで使う 使い方は同梱の README_ja.txt に、設定画面の説明は商品画像の「設定画面ガイド」(日本語・英語)にあります。ウィンドウ右上で 日本語 / English を切り替えられます(Auto は PC の言語に合わせます)。 ■ 重さの目安 アバターの統計:Skinned Mesh +1、マテリアル +1、ポリゴン +53(小さな四角形 26 枚と三角形 1 枚)。描画は1回(1パス、影なし、ライトの影響なし)。 量(_Amount)が 0 の時は、頂点の計算だけで何も描きません。まぶたが閉じている時は、自分の画面全体を1回塗ります。 Bounds は体を包む 1.4 × 2.0 × 1.4 m(アバターの大きさに合わせる)で、首の骨と一緒に回ります。 ■ 内容物 ・Neiki_1.0.0.unitypackage(README_ja.txt / README_en.txt 入り) ・利用規約.txt / TermsOfUse_en.txt ※商品ページの画像の部屋・ベッド・布団は撮影用の見本です(商品に含みません)。眠っている場面では、アバターの羽としっぽの飾りを外して撮っています。 ※画像のアバター:ゆめか Yumeka(©Arka_X / https://booth.pm/ja/items/8672657 )。商品には含みません。 ※背景の素材:Poly Haven(CC0)。商品には含みません。 ■ 利用規約(概要) ・VRChat のアバター(Public/商用・有料イベントでの使用を含む)で使えます ・改変できます ・シェーダー・スクリプトの再配布、転売はできません(改変したものも含む) ・クレジット表記は任意です(書いていただけると嬉しいです) 詳しくは同梱の 利用規約.txt をご覧ください。 ■ English Works with any avatar (universal, Humanoid avatars) - the images just use Yumeka. Neiki (Sleep Effect) is a sleep effect for VRChat avatars, for sleeping in VR (PC only, Built-in RP, Unity 2022.3). A soft, dim glow wraps around you, and Zzz and small stars (and a crescent moon in Moonlight) rise slowly. Only your own view darkens, like closing eyelids. Other players see the glow, Zzz and stars only: the eyelids are drawn only while VRChat shrinks your own head, so other players, mirrors and VRChat's camera never show them. The Zzz, stars and moon are drawn as shapes by the shader (no textures). Checked in VRChat's Linear colour space. No Udon / U# needed; everyone sees the same. Select your avatar in the dedicated window, choose a preset (Sleepy / Starry / Moonlight) and press one button. It is non-destructive: one object is added under the Neck bone; your meshes and materials are not changed. "Remove" takes it off. The glow follows your chest, hip and knee bones, so it wraps your body when you lie down. Animate _Amount to switch it on and off: the "Make the On / Off clips" button makes an On clip that fades in slowly, an Off clip and an Amount clip for a Radial Puppet. Limits: with the head not shrunk in first person (VRCHeadChop head scale 1) the eyelids do not darken; in the Unity editor they show from inside the sphere at the eyes. PC avatars only: VRChat does not allow custom shaders on Quest / mobile avatars. Performance: Skinned Mesh +1, Material +1, Polygons +53, one draw (one pass, no shadows). Nothing is drawn at Amount 0; with the eyelids closing, your own screen is filled once. Install: import the unitypackage, open Tools > lv1101 > Neiki (Sleep Effect), select your avatar, choose a preset and press "Add Neiki". Full English UI (Auto / 日本語 / English at the top right), English README (README_en.txt), Terms of Use (TermsOfUse_en.txt) and English settings guide images. Avatar in the images: Yumeka (©Arka_X), not included (her wing and tail accessories are switched off in the sleeping scenes). Room, bed and duvet: showcase only; background assets: Poly Haven (CC0), not included. Terms (summary): usable on VRChat avatars, including public use, commercial use and paid events; modification allowed; redistribution or resale of the shader / scripts (including modified versions) is not allowed; credit is optional. ■ 更新履歴 / Version history 1.0.0 最初の版 / First release














