when creating objects for HTC, keep in mind that the space is in meters, so the cylinder in the example is 7 meters tall and 10 meters wide. You'll most likely be looking at it from the inside.
(also, the Y axis is up)
The blue lines inside the head mounted display probably come from the blue circle that the HTC compositor places, so it seems to me there may be an issue with the tracking. Is the demo room app working correctly for you?
Carlos, thanks for the answer!
I also forgot to mention that i reduced the cylinder's radius and height to
0.1, so it should not be inside the cylinder. I adjusted the tracking and
now there are no more blue lines, just the blue circle the HTC compositor
places. However, the cylinder is still not rendering in the scene. Here is
the example with OpenVR classes:
int main(int, char *argv)
// Create a sphere
vtkSmartPointer<vtkCylinderSource> cylinderSource =
cylinderSource->SetCenter(0.0, 0.0, 0.0);
// Create a mapper and actor
vtkSmartPointer<vtkPolyDataMapper> mapper =
vtkSmartPointer<vtkActor> actor =
vtkSmartPointer< vtkOpenVRCamera > camera =
//Create a renderer, render window, and interactor
vtkSmartPointer<vtkOpenVRRenderer> renderer =