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

Opengles3 异常 #2

Open
Justin-sky opened this issue Apr 20, 2023 · 4 comments
Open

Opengles3 异常 #2

Justin-sky opened this issue Apr 20, 2023 · 4 comments

Comments

@Justin-sky
Copy link

image

@syminomega
Copy link
Owner

我会检查一下,你用的urp版本是多少?

@BPO-CJ
Copy link

BPO-CJ commented Jul 5, 2023

我会检查一下,你用的urp版本是多少?

Hope you speak English! xD

Well, I can confirm that something weird happens with the foam when using OpenGL3.x.
But first of all, thank you! You are the guy who fixed Unity's WaterSystem to actually work in URP!

Okay, now to the problem: Not sure if it's related, but we are working on a VR project. Everything works fine in the editor & on the PC, but as soon as we use a Meta Quest (2 or Pro), the shading breaks (but not in the Editor):

image

We get color problems and strange reflection behavior. Again, this only happens when using a Meta Quest device via Oculus Link (the project is not deployed to the device so it's always PC platform).

  • I can reduce the issues by going from Planar Reflection to Skybox or Reflection Probes.
  • I can reduce the color issue by just using on instead of gradients.

Unity: 2022.3
URP: 14.0.8

(This reflection issue is also on the original: Unity-Technologies/boat-attack-water#5)

@BPO-CJ
Copy link

BPO-CJ commented Jul 5, 2023

Alright, I was able to solve almost everything by switching XR from Single Instanced to Multi Pass. Also, the WaterSystem can't be used with the URP Decal System. Decal system is responsible for causing the color, reflection & foam issues.

Now there is only one thing to fix: The Water Reflection. But for this, there is already an open issue on the main Boat Attack WaterSystem project: Unity-Technologies/boat-attack-water#5

@syminomega
Copy link
Owner

Alright, I was able to solve almost everything by switching XR from Single Instanced to Multi Pass. Also, the WaterSystem can't be used with the URP Decal System. Decal system is responsible for causing the color, reflection & foam issues.

Now there is only one thing to fix: The Water Reflection. But for this, there is already an open issue on the main Boat Attack WaterSystem project: Unity-Technologies/boat-attack-water#5

I'm not sure whether this problem only happens on VR devices. According to your description, this problem may be related to multi-renderer or multi-render feature. The reflection and foam effect requires secondary renderer support.

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

3 participants