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

Improved visual quality of zebra stripes #974

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Conversation

rainman110
Copy link
Collaborator

@rainman110 rainman110 commented Nov 7, 2023

This improves the visual quality of the zebra stripe plot in case of low triangulation resolution.

Description

Before, the stripes were computed based on the normal vector of the vertex, not on the fragment. This lead to
visual distortions. Now, we use the normal vector from the fragment shader as offered by the occt api.

How Has This Been Tested?

See screenshots

Screenshots, that help to understand the changes(if applicable):

Before:
Zebra-Before

After fix:
Zebra-After

Checklist:

  • A test for the new functionality was added.
  • All tests run without failure.
  • The new code complies with the TiGL style guide.
  • New classes have been added to the Python interface.
  • API changes were documented properly in tigl.h.

The stripes were computed based on the normal vector
of the vertex, not on the fragment. This lead to
visual distortions. Now, we use the normal
vector from the fragment shader as offered by the occt api.
@joergbrech
Copy link
Contributor

Thanks @rainman110! This really looks so much better

@joergbrech joergbrech merged commit 7b8fa3d into master Nov 21, 2023
@joergbrech joergbrech deleted the improved_zebra_plots branch November 21, 2023 07:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants