Skip to content

Curve (cylinder) rendering bug #600

@stukowski

Description

@stukowski

We observe a cylinder rendering issue in OSPRay 3.2.0, which seems to occur whenever the length of the cylinder exceeds a certain threshold.

This is an animation showing a cylinder that extends from (0,0,0) to (x,0,0) with x varying from 0 to 30,000.
cylinder_rendering_bug

The issue occurs for any cylinder radius, cylinder axis, camera direction, and projection type:
cylinder_rendering_bug_thin
cylinder_rendering_bug_perspective

The cylinder is rendered using the curve geometry type:

geometry = ospray::cpp::Geometry("curve");
geometry.setParam("type", OSP_DISJOINT);
geometry.setParam("basis", OSP_LINEAR);
geometry.setParam("vertex.position_radius", ...); // Two vertices (vec4f)
geometry.setParam("index", ...);  // uint32 indices[1] = {0}
geometry.commit();

We have noticed this problem only now, because in our application (OVITO), scenes are typically smaller than 10,000 length units.

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