DLR-SC / tigl

The TiGL Geometry Library to process aircraft geometries in pre-design.
https://dlr-sc.github.io/tigl/
Apache License 2.0
235 stars 60 forks source link

Improved visual quality of zebra stripes #974

Closed rainman110 closed 10 months ago

rainman110 commented 11 months ago

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:

joergbrech commented 10 months ago

Thanks @rainman110! This really looks so much better