Skip to content

Opacity/alpha transparency not applied in primitive actors #1119

@faris-agour

Description

@faris-agour

When passing RGBA colors (alpha < 1.0) or using the opacity parameter
in primitive actors (e.g., sphere, arrow), the actor renders incorrectly.

sphere_actor = sphere(
    np.zeros((1, 3)),
    colors=(1, 0, 1, 0.3),
    radii=1.0,
)

Expected: semi-transparent sphere
Actual: sphere renders incorrectly, with visible depth artifacts and non-smooth transparency

This happens because transparency-related properties are not forwarded
to the mesh material inside actor_from_primitive.

Screenshot (before fix):

Image

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