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

Seems not support camera changements #37

Open
jean-noelp opened this issue Mar 29, 2019 · 4 comments
Open

Seems not support camera changements #37

jean-noelp opened this issue Mar 29, 2019 · 4 comments

Comments

@jean-noelp
Copy link

Hi,

I'm trying to dynamically change the camera from Perspective to Orthographic.
As a consequence, I use the good camera when I'm calling:

potree.updatePointClouds([ptCloud], cam, gl);

The problem is that even if the view is effectively changed, the point cloud seems to get stuck at the minimum LOD.
Is there an other operation to properly do this camera switch ?

Regards,

@rhuitl
Copy link
Contributor

rhuitl commented Apr 1, 2019

Hi @jean-noelp, can you please check if that problem still exists with version 0.0.19 which includes a fix related to orthographic cameras (7609be2).

@jean-noelp
Copy link
Author

Thanks for reply.
I updated the library with this commit, and now I have this behavior:

With PerspectiveCamera, before changing camera, the point cloud is full:
Capture d’écran 2019-04-02 à 14 47 11

Then, I switch into Ortho, and the point cloud stop loading but partially:
Capture d’écran 2019-04-02 à 14 47 39

And to finish, when I come back into perpective, the point cloud definitively stop the point cloud loading partially:
Capture d’écran 2019-04-02 à 14 47 56

So it seems that the pb is partially resolved!

@rhuitl
Copy link
Contributor

rhuitl commented Apr 5, 2019

Which point size mode do you use? If you use adaptive mode, please try attenuated or fixed.

@jean-noelp
Copy link
Author

I tried all modes with no differences for the moment.. I'm continuing researches...

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