Forum Discussion
sh0v0r
12 years agoProtege
Lens flare problem
I'm currently developing a new demo and I have this odd problem where the scenes directional light lens flare will only show in the Right Eye after I have selected the OVRController in the Hierarchy list. By selecting it, something is causing it to update.
If I press Play with the OVRController Selected the Flare will show up in the Right Eye, if it is not selected on Start the flare only appears in the Left eye.
I vaguely recall some sort of similar issue to this some one else was having, any ideas?
If I press Play with the OVRController Selected the Flare will show up in the Right Eye, if it is not selected on Start the flare only appears in the Left eye.
I vaguely recall some sort of similar issue to this some one else was having, any ideas?
7 Replies
Replies have been turned off for this discussion
- ArowxExplorerCheck that both cameras have their Flare Layers enabled.
- sh0v0rProtege
"Arowx" wrote:
Check that both cameras have their Flare Layers enabled.
Yeah everything is set up correctly, all the right components, all the correct layer settings.
Incidentally clicking on the Right Camera object doesn't make the Flare appear but clicking on the parent OVRController does.
I should also mentioned that the Right Eye Flare is visible when the game is stopped, it only disappears when the game starts. - cyberealityGrand ChampionI am not seeing that problem here.
Can you give me exact steps necessary to reproduce, or supply a bare-bones example project? - sh0v0rProtege
"cybereality" wrote:
I am not seeing that problem here.
Can you give me exact steps necessary to reproduce, or supply a bare-bones example project?
[EDIT] Don't worry I worked it out, see below... :D
Sure thing, here's a Project setup that reproduces the problem. When you press Play the Right Flare should not be visible but if you select the OVRController it will become visible.
https://dl.dropboxusercontent.com/u/38593444/OVRFlareBug.rar - sh0v0rProtegeI just did a test myself and added another OVR Controller to the Scene and disabled the existing one and the problem didn't occur.
So I looked at the difference between the objects and it turns out the right eye had a different near clipping distance.
USER ERROR! :oops:
The interesting thing with this is that the OVRController sets the near clipping but the cameras had different initial values. - moltonExplorerI have had my OVRplayerController prefab stop functioning correctly after changing settings on the camera right and camera left settings in the unity editor while my game was running. From then on everytime I started the game the Rift head tracking stopped moving the cameras around. The OVRPlayercontroller.cs functions that used the Rifts input still received input, but that was it. I had to revert to a previous backup because I had no idea what exactly was wrong and it was really wrong.
from now on if I want to mess with the OVRPlayerController prefab at all, I'm backing up first. I don't know if this is a bug or more of a reaction to changes I have made, but it sucks. - LaneHonored GuestI'm getting some weird offset going on when I press play.
I have a lens flare on a directional light and aligned it with the sun on the skybox but when I press play the cameras shift and offset the flare in opposite directions for the eyes.
I suppose it could also be something with the skybox not aligning properly when the eyes offset... but either way it looks fine in the scene view.
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
- 7 months ago
- 2 years ago
- 12 years ago
- 12 months ago