Forum Discussion
Fiore
13 years agoHonored Guest
Different geometry rendered to each eye
Is it possible to have 2 pieces of geometry in Unity, and have each one only viewable from a single eye? I do not have a rift to test, but am looking at ways to use one billboard for each eye, each ...
judiva
11 years agoHonored Guest
I tried to "OnPreRender" approach without success.
I am using Unity 5.1.1f1 with a pre 0.6.0.1 SDK (the one just before, can't remember the number). I'm not using the latest SDK because I can't get it to display the dual view inside the Unity editor.
Anyway, I'm seeing that the onPreRender callbacks are called, but they have no effect on the rendering.
I have set it up so that the geometry is rendered in red on left eye and blue on right eye (using a material shader parameter).
Anyway, what I am seeing in the GearVR is that both cameras render the scene in blue (meaning that only the shader settings from the right eye are taken into account). Since right eye is rendered after left eye, I'm guessing my callback is overwriting the shader's value, so both eyes get the same value.
Has anyone been successful with this approach?
I'm considering trying this out with sdk 0.6.0.1, but the fact that I can't get OVR initialized in the editor and get no dual view is a real pain...
I am using Unity 5.1.1f1 with a pre 0.6.0.1 SDK (the one just before, can't remember the number). I'm not using the latest SDK because I can't get it to display the dual view inside the Unity editor.
Anyway, I'm seeing that the onPreRender callbacks are called, but they have no effect on the rendering.
I have set it up so that the geometry is rendered in red on left eye and blue on right eye (using a material shader parameter).
Anyway, what I am seeing in the GearVR is that both cameras render the scene in blue (meaning that only the shader settings from the right eye are taken into account). Since right eye is rendered after left eye, I'm guessing my callback is overwriting the shader's value, so both eyes get the same value.
Has anyone been successful with this approach?
I'm considering trying this out with sdk 0.6.0.1, but the fact that I can't get OVR initialized in the editor and get no dual view is a real pain...
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 12 months ago
- 6 months ago
- 3 years ago