Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curve (cylinder) rendering bug #600

Open
stukowski opened this issue Sep 27, 2024 · 1 comment
Open

Curve (cylinder) rendering bug #600

stukowski opened this issue Sep 27, 2024 · 1 comment

Comments

@stukowski
Copy link
Contributor

stukowski commented Sep 27, 2024

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.

@johguenther
Copy link
Contributor

Related to #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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants