Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Pass Instancedを有効にすると右目にエフェクトの描画が行われない (Effects on the right eye screen was not rendered when rendering in Single Pass Instanced) #54

Closed
amamagi opened this issue Mar 31, 2021 · 3 comments

Comments

@amamagi
Copy link

amamagi commented Mar 31, 2021

概要

XR設定を有効にして Stereo Rendering Mode を Single Pass Instanced にすると、右目の画面にエフェクトがレンダリングされません。
image

再現方法

  1. 新規Unityプロジェクトに SteamVR と EffekseerForUnity をインポートする
  2. [Edit] > [ProjectSettngs] より ProjectSettings ダイアログを開き、左ペインから[XR Plug-in Management]>[OpenVR]を選択し、[Stereo Rendering Mode] のドロップダウンメニューから [Single Pass Instanced] を選択する
  3. EfkBasic シーンを再生する

再現環境

  • OS: Windows 10 Pro 20H2 64bit
  • Unity: 2020.3.1f1(with XR Plugin), 2019.4.23f1(with built-in XR)
  • XR Platform: SteamVR(OpenVR)
  • EffekseerFroUnity: 1.60beta2
@amamagi amamagi changed the title Single Pass Instancing Stereo Rendering Mode を Single Pass Instancing にすると右目にエフェクトの描画が行われない Mar 31, 2021
@amamagi amamagi changed the title Stereo Rendering Mode を Single Pass Instancing にすると右目にエフェクトの描画が行われない Single Pass Instancedを有効にすると右目にエフェクトの描画が行われない (Effects on the right eye screen was not rendered when rendering in Single Pass Instanced) Mar 31, 2021
@durswd
Copy link
Collaborator

durswd commented Mar 31, 2021

確認します。
回避策ではありますが、RendererをUnityに変更すると表示されるかもしれません。

@amamagi
Copy link
Author

amamagi commented Apr 1, 2021

よろしくお願いします。
RendererをUnityに変更して確認しましたが、状況は改善しませんでした。

@durswd
Copy link
Collaborator

durswd commented Apr 1, 2021

了解しました。UnityRendererのほうは、ネイティブでなくUnityのCommandBufferから描画命令を呼んでいるのですが、ただUnityの描画命令を使用するだけでは対応できないようです。

時間がかかるかもしれませんが調査はしてみます。

durswd pushed a commit that referenced this issue Apr 26, 2021
…was not rendered when rendering in Single Pass Instanced) (#57)

* Fix bug that standard shader isn't work on Single Pass(Instanced)

* Fix other shaders

* Fix indent
@durswd durswd closed this as completed May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants