ExtendRealityLtd / VRTK

An example of how to use the Tilia packages to create great content with VRTK v4.
https://www.vrtk.io/
MIT License
3.69k stars 993 forks source link

Outline shader on Oculus Quest #2043

Closed yannoid closed 5 years ago

yannoid commented 5 years ago

Environment

Steps to reproduce

Open the farm scene, build on Oculus (with academy's lessons on Oculus avatar and velocity integration)

Gaze at an outlined object, like the tools

Expected behavior

A yellow outline shoud be seen

Current behavior

The screen turns black as soon as the yellow instancied material loads the outline shader Even force close my app on a custom scene

settings 2 1

MyAlpaca5 commented 5 years ago

I had similar problem with Oculus Go using unity 2018.3.11f. When you assign an outline shader to a cube, it will turn that cube to black and only highlight the 8 corner of that cube.

SiriusA7 commented 5 years ago

Had this issue with my quest as well. @DirtyOleg did you end up finding a solution?

MyAlpaca5 commented 5 years ago

@SiriusA7 Have not looked into the problem yet. My guess is that the VRTK outline shader is not optimized for Android device. However, I may be wrong, since I have limited knowledge about shader.

thehen commented 5 years ago

Having the same issue here

MyAlpaca5 commented 5 years ago

I do not know how, but when I remove VRTK from my project and reimport it, the outline is working fine again. Edit: I pinpoint the problem, set color space to Gamma, it will work, set color space to Linear, the whole scene will turn into black.

Corysia commented 5 years ago

Oculus recommends mobile to use linear, too. Unity Settings for Mobile VR

thestonefox commented 5 years ago

The farm example is just a basic example shader. I'd recommend using better outline shaders from the Unity Asset Store