Open stukowski opened 2 months ago
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.
(0,0,0)
(x,0,0)
x
The issue occurs for any cylinder radius, cylinder axis, camera direction, and projection type:
The cylinder is rendered using the curve geometry type:
curve
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.
Related to https://github.com/RenderKit/ospray/issues/274, but now OSPRay does not use its own intersection computation anymore but defers to Embree's curves: needs to be fixed there (I'll look into that).
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)
withx
varying from 0 to 30,000.The issue occurs for any cylinder radius, cylinder axis, camera direction, and projection type:
The cylinder is rendered using the
curve
geometry type:We have noticed this problem only now, because in our application (OVITO), scenes are typically smaller than 10,000 length units.