Thanks to visit codestin.com
Credit goes to github.com

Skip to content

linestrip-3d.py #58

@straitsboy

Description

@straitsboy

Hi,

In linestrip-3d.py, when I changed n=2048 to n=3, that is, two jointed segments spinning in 3D space, I get the following "faded", tapered ends.
Peek 2021-03-23 16-04

Looking at the code, I suspect it is because linelength was calculated in model space but it is used like a screen space quantity in the shader.

For example, in the vertex shader, the code:
"v_uv.x = linelength+w;"
sums together a model space and a screen space quantity (w). As a result, v_uv.x doesn't interpolate exactly to the start/end of the polyline.

Any suggestion on how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions