-
Notifications
You must be signed in to change notification settings - Fork 113
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
viewer as cloud player #15
Comments
+1 |
2 similar comments
+1 |
+1 |
I got it to work by commenting the following lines in qDebug() << "Viewer: received positions";
_points->loadPoints(positions);
// Comment the 3 following lines
//_camera = QtCamera(_points->getBox());
//_camera.setAspectRatio((float)width() / height());
//_floor_grid->setFloorLevel(_points->getFloor());
renderPoints();
renderPointsFine();
break; I am not sure whether there are situations where it is necessary to reset the camera position after loading a new pointcloud. But this solution suits my use case. After re-compiling, the following snippet will render a sequence of random pointclouds while maintaining the camera position: import pptk
import numpy as np
import time
pointclouds = np.random.random([200, 1000, 3])
v = pptk.viewer(pointclouds[0])
for pc in pointclouds[1:]:
time.sleep(0.1)
v.load(pc) (I share this as a workaround, not as a solution to the current issue) |
Hi
is it possible to make the viewer play successive point cloud frames ?
Thanks
The text was updated successfully, but these errors were encountered: