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

Ocean flickers when using in VR #6

Closed
unknownMarty opened this issue Aug 8, 2018 · 7 comments
Closed

Ocean flickers when using in VR #6

unknownMarty opened this issue Aug 8, 2018 · 7 comments

Comments

@unknownMarty
Copy link
Contributor

Hi,

I'm using the ocean in VR. When I enable reflection the ocean starts to flicker during runtime and editor is more visible. It's related to the skybox. When I upped the refresh frame.

@ghost
Copy link

ghost commented Aug 8, 2018 via email

@unknownMarty
Copy link
Contributor Author

Here's an video of the issue: https://vimeo.com/284125469

@unknownMarty
Copy link
Contributor Author

unknownMarty commented Aug 9, 2018

Solved it by changing Camera cam = Camera.current to Camera cam = Camera.main in function RenderReflectionAndRefraction() . I saw that the fieldOfView where set of the editor camera (65 degrees) and not the VR camera (110.0266 degrees)

@eliasts
Copy link
Owner

eliasts commented Aug 11, 2018

ok good to know!

@eliasts eliasts closed this as completed Aug 11, 2018
@unknownMarty
Copy link
Contributor Author

Shall i create a pull request with the fix?

@ShadowTeolog
Copy link

reflection texture render not every frame,this result flicker than reflection textures from different cameras is exchanging. this kind of trouble can be fixed by set reflection to generate every frame. At least for my 3 cameras.

@minusplusminus
Copy link

True, but that has an performance impact.

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

4 participants