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

Wrap render method in case of spectator camera to render spectator view after vrDisplay.submitFrame (fix #3541) #3577

Merged
merged 1 commit into from
May 10, 2018

Conversation

dmarcos
Copy link
Member

@dmarcos dmarcos commented May 10, 2018

We moved the tock call to the THREE onAfterRender callback breaking spectator camera. the tock methods are now invoked between the render call and vrDisplay.submitFrame. The spectator camera has to render on the 2D view after the frame submission. This patch wraps the render method of the renderer to ensure the correct order in case a spectator camera is present.

@dmarcos dmarcos changed the title Wrap render method in case of spectator camera to render spectator view before vrDisplay.submitFrame (fix #3541) Wrap render method in case of spectator camera to render spectator view after vrDisplay.submitFrame (fix #3541) May 10, 2018
@ngokevin ngokevin merged commit 5f9418f into aframevr:master May 10, 2018
@donmccurdy donmccurdy added this to the 0.9.0 milestone Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants