{"id":28799396,"url":"https://github.com/historia-inc/windowtransparency","last_synced_at":"2025-09-04T06:39:30.565Z","repository":{"id":294990068,"uuid":"988319898","full_name":"historia-Inc/WindowTransparency","owner":"historia-Inc","description":"UE5 plugin for creating transparent window backgrounds on Windows (DX11), with dynamic click-through.","archived":false,"fork":false,"pushed_at":"2025-06-16T06:24:19.000Z","size":406,"stargazers_count":6,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T06:06:25.224Z","etag":null,"topics":["cpp","desktop","desktop-pet","ue5","ue5-plugin","unreal-engine","unreal-engine-5","winapi"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/historia-Inc.png","metadata":{"files":{"readme":"Docs/README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-22T11:27:11.000Z","updated_at":"2025-06-16T06:24:23.000Z","dependencies_parsed_at":"2025-05-26T06:04:14.155Z","dependency_job_id":null,"html_url":"https://github.com/historia-Inc/WindowTransparency","commit_stats":null,"previous_names":["historia-inc/windowtransparency"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/historia-Inc/WindowTransparency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/historia-Inc%2FWindowTransparency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/historia-Inc%2FWindowTransparency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/historia-Inc%2FWindowTransparency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/historia-Inc%2FWindowTransparency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/historia-Inc","download_url":"https://codeload.github.com/historia-Inc/WindowTransparency/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/historia-Inc%2FWindowTransparency/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260499357,"owners_count":23018292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","desktop","desktop-pet","ue5","ue5-plugin","unreal-engine","unreal-engine-5","winapi"],"created_at":"2025-06-18T06:06:28.390Z","updated_at":"2025-09-04T06:39:30.549Z","avatar_url":"https://github.com/historia-Inc.png","language":"C++","readme":"# WindowTransparency\n[![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![UE Version](https://img.shields.io/badge/UE-5.5+-blue.svg)](https://www.unrealengine.com/)\n[![Platform](https://img.shields.io/badge/Platform-Windows-lightgrey.svg)](#supported-environments)\n\n\n![windowtranspercency2](https://github.com/user-attachments/assets/b6d375cc-7b6d-4801-8afa-19195b8180e7)\n\nUE5でウィンドウの背景を透過表示するためのプラグインです。\n\n技術ブログによる解説はこちら：[https://historia.co.jp/archives/50391/](https://historia.co.jp/archives/50391/)\n\n## 主な機能\n\n*   **ウィンドウ透過 (DWM Alpha Transparency):**\n    *   レンダリング結果のアルファチャンネルに基づいてウィンドウを透過させ、背後のデスクトップや他のウィンドウが見えるようにします。\n*   **クリックスルー:**\n    *   **OSレベルクリックスルー:** ウィンドウ全体のマウス入力を無視し、背後のウィンドウにイベントを渡します。\n    *   **ピクセルベースクリックスルー (ヒットテスト):** マウスカーソル下のUEコンテンツ（3DオブジェクトやUIウィジェット）の有無をリアルタイムに判定し、UEコンテンツがない透明な領域のみクリックスルーさせます。\n        *   `GameRaycast` : 指定したトレースチャンネルで3DシーンやUIウィジェットへのレイキャストを行い、ヒットの有無で不透明/透明を判定します。\n*   **最前面表示:**\n    *   ウィンドウを常に他のウィンドウより手前に表示します。\n*   **デスクトップの壁紙:**\n    *   UEウィンドウをデスクトップの壁紙のように表示します (Windows の `WorkerW` ウィンドウにペアレントします)。\n*   **外部ウィンドウ情報取得:**\n    *   システム上で表示されている他のウィンドウのタイトル、位置、サイズなどの情報を取得します。\n\n## 要件\n\n*   Unreal Engine: **UE5.5, UE5.6**\n*   オペレーティングシステム: **Windows** (Windows 11 で動作確認済み)\n*   レンダリング API: **DirectX 11**\n\n## インストール\n\n1.  [リリースページ](https://github.com/historia-Inc/WindowTransparency/releases)から最新バージョンのプラグイン (Zipファイル) をダウンロードします。\n2.  Unreal Engine プロジェクトのルートフォルダに `Plugins` フォルダを作成します (まだ存在しない場合)。\n3.  ダウンロードした Zip ファイルを展開し、`WindowTransparency` フォルダをプロジェクトの `Plugins` フォルダにコピーします。\n    (例: `YourProject/Plugins/WindowTransparency`)\n4.  Unreal Engine エディタを起動します。\n5.  メインメニューから `編集 (Edit) \u003e プラグイン (Plugins)` を選択します。\n6.  `WindowTransparency` プラグインを検索し、`有効 (Enabled)` チェックボックスをオンにします。\n7.  エディタの再起動を求められたら、指示に従って再起動します。\n\n##  セットアップ\n\n以下の設定をプロジェクトに適用してください。\n\n1.  **アルファチャンネルサポート:**\n    *   `プロジェクト設定 (Project Settings)` \u003e `エンジン (Engine)` \u003e `レンダリング (Rendering)` を開きます。\n    *   `Default Settings` セクションにある `AlphaOutput` を `True` に設定します。\n\n2.  **Default RHIの設定:**\n    * `プロジェクト設定 (Project Settings)` \u003e `プラットフォーム(Platforms)` \u003e `Windows`を開きます。\n    * `Targeted RHIs`セクションにある`Default RHI`をDirectX 11に変更します。\n\n3.  **r.D3D11.UseAllowTearing=0 の設定:**\n    *   プロジェクトの `Config/DefaultEngine.ini` ファイルを開きます。\n    *   以下のセクションと行を追加または確認してください。これが最も重要です。\n        ```ini\n        [/Script/Engine.RendererSettings]\n        r.D3D11.UseAllowTearing=0\n        ```\n\n4.  **カスタムステンシルパス (任意):**\n    *   ステンシルバッファを使用してウィンドウの一部をマスクする場合（デモ `StencilMask_Demo` のようなケース）は、以下の設定が必要です。\n    *   `プロジェクト設定 (Project Settings) \u003e エンジン (Engine) \u003e レンダリング (Rendering)` を開きます。\n    *   `ポストプロセス (Postprocessing)` カテゴリ内の `カスタム深度ステンシルパス (Custom Depth-Stencil Pass)` 設定を `ステンシル付きで有効 (Enabled with Stencil)` にします。\n\n## 注意事項\n\n*   **動作確認:** このプラグインの機能は、Unreal EngineエディタのPIE (Play In Editor) モードでは正しく動作しません。動作確認はスタンドアローンゲームとして実行するか、パッケージ化したビルドで行ってください。\n\n\n## デモ\n\nプラグインの機能を具体的に示すデモレベルが `/WindowTransparency/` フォルダ以下に用意されています。\n\n*   **`/WindowTransparency/Demo`**\n    *   背景が透明になり、背後のデスクトップが見えます。\n\n*   **`/WindowTransparency/Maps/StencilMask_Demo`**\n    *   ポストプロセスマテリアルとステンシルバッファを使用して、特定のオブジェクトだけを表示し、それ以外の領域を透過させるデモです。\n\nhttps://github.com/user-attachments/assets/d159b4a2-6507-403f-870f-85d53877cdb2\n\n---\n      \n*   **`/WindowTransparency/Maps/WindowInteraction_Demo`**\n    *   外部ウィンドウに当たり判定や遮蔽などインタラクションできます。\n\nhttps://github.com/user-attachments/assets/3acb76e1-5139-447d-b1b2-dcc7fb73eb90\n\n---\n\n*   **`/WindowTransparency/Maps/MouseInteraction_Demo`**\n    *   ピクセルベースのヒットテスト機能を使用したクリックスルーのデモです。UEの3DオブジェクトやUIウィジェット上ではマウス操作が可能で、それ以外の透明な部分ではマウスイベントが背後のウィンドウに通過します。\n   \n\nhttps://github.com/user-attachments/assets/bbb4a8f5-cda0-4e9b-88c7-754510af0269\n\n---\n\n*   **`/WindowTransparency/Maps/ShadowMask_Demo`**\n    *   シーン内のオブジェクトとその影を描画し、それ以外の部分を透過させるデモです。\n\n\nhttps://github.com/user-attachments/assets/4c42b417-7555-4ccd-b9af-b8ebc8eab072\n\n---\n      \n*   **`/WindowTransparency/Maps/Wallpaper_Demo`**\n    *   `SetWindowAsDesktopBackground` 機能を使用して、UEアプリケーションをライブ壁紙のように動作させるデモです。\n\n\n\nhttps://github.com/user-attachments/assets/899f7d18-9379-440a-8438-dcc43ece1ea4\n\n---\n\n## ライセンス\n\nこのプラグインは [MITライセンス](LICENSE) の下で公開されています。\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhistoria-inc%2Fwindowtransparency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhistoria-inc%2Fwindowtransparency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhistoria-inc%2Fwindowtransparency/lists"}