Skip to content

Gizmos line strip for non solid line style has noticable gaps #25726

Description

@JasmineLowen

It looks like the animation has noticeable breaks between line segments, is that fixable using line_fraction in the fragment shader to make the segments agree on dot/dash positions?

I've also noticed this already back in the day when I was still working on the last two attempts at this PR. This has nothing to do with the animation. It is a fundamental issue with the shader used to render the gizmos and the more complex gizmo shape methods.

Currently most of the gizmo render methods are based on the line method as a fundamental building block. So line strings are basically just a bunch of lines unaware of each other. This is also reflected in the shader code which always just draws a single line and makes no connection between them.

I will spin an issue out of this comment so we have a better place to discuss this.

Originally posted by @JasmineLowen in #25655 (comment)

Here's a screenshot:

Image

It is especially visible with the animated gizmos from the linked issue

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions