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

Add option to toggle frustum culling in replay renderer. #2199

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

0mdc
Copy link
Contributor

@0mdc 0mdc commented Sep 7, 2023

Motivation and Context

This changeset adds a config option to disable culling for replay renderers.

The classic replay renderer currently has an issue related to frustum culling. This allows to work-around the issue for immediate needs.

How Has This Been Tested

Tested locally in Python viewer.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 7, 2023
@0mdc 0mdc requested a review from aclegg3 September 7, 2023 16:38
Copy link
Contributor

@eundersander eundersander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but Mikael and John should reach consensus before merging.

src/esp/bindings/SimBindings.cpp Show resolved Hide resolved
src/esp/sim/ClassicReplayRenderer.cpp Show resolved Hide resolved
@jturner65
Copy link
Contributor

jturner65 commented Sep 8, 2023

LGTM but Mikael and John should reach consensus before merging.
Yeah, we spoke about it last night. I was just leaving some suggestions at his request :) .

If this works how it is needed, then I'm fine with it. It just seems kind of confusing to me.

If the purpose of this new flag to enable frustum culling (dependent on SimConfig's setting) in replay then I think the naming and structure is fine
If the purpose of the new flag is to disable culling in replay regardless of simConfig setting then I would rename it.
If the purpose is to provide independent Replay control of culling, on or off, then the name is also fine but then SimConfig's setting should be ignored.

@jturner65
Copy link
Contributor

After discussing with Mikael, I see that SimConfig's role in this process with ReplayRenderer is not as relevant as I had initially thought (not relevant at all, in fact :) ), so many of my suggestions are equally irrelevant :)

@0mdc 0mdc merged commit 94789b6 into main Sep 8, 2023
1 check passed
@0mdc 0mdc deleted the replay-renderer-culling-option branch September 8, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants