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

change camera position #35

Open
pascalisfort opened this issue Apr 14, 2020 · 1 comment
Open

change camera position #35

pascalisfort opened this issue Apr 14, 2020 · 1 comment

Comments

@pascalisfort
Copy link

Hi, I begining to use PPTK for point coud viewer.

But I need help: when I opening a new point cloud. I use this code to open xyz point cloud
v = pptk.viewer(xyz)

Every thing works fine, but when I try to change the camera position
v.set(lookat=(1.8, 8.3, 6.67) )

The camera is moving,but when I begining to use mouse to navigate, the camera position come back to the original position (same as when I open the point cloud)

Do you have an idea how to set camera position and staying there

Thank you
Pascal

@ramkam
Copy link

ramkam commented Jan 3, 2021

Same if we use the (undocumented ;) ) load function

My intent was to use pptk to show kinect collected data, so lots of refreshes
And eventually make icp registrations :-)

Stuff that could help:

  • make the viewpoint persistent
  • create the viewer empty, silently set the view pos, then load the points
  • unloading / reloading the points (by index is fine)
  • unload & reload the points then refresh afterwards (avoid the ugly blink effect)
  • after a few hundred of load operations, pptk crashes / wont load points anymore. I guess there's memalloc issues?

Anyway, would be really nice if you fix it

Meanwwhile, i'm back to my axonometric view that i dirty coded with opencv :D

btw, from the docs the get roll yaw pitch is float 64 and the set if float 32
not really a problem, but makes it awkward

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