Closed Pourfex closed 7 months ago
I'll investigate this issue.
Hi and thanks for your detailed bug report, I managed to easily reproduce this issue on the master
branch!
Since we are using an orthographic camera, the position of the camera never changes while zooming, only the zoom
property changes. This property factor the top, bottom, right and left planes of the frustrum (but only updates the projection matrix, not the corresponding properties).
Since the point cloud implementation was never used on an orthographic camera context, we will need to:
I have started a branch which "fixes" both issue and I'll soon open a PR, I will tag you for testing! =)
Fix with #2242 ! Thanks @Desplandis
Orthographic camera usage on itowns makes any point cloud added in the scene not updating.
Your Environment
Context
Point cloud layer is not updating if we use orthographic camera (perspective camera work). Don't know if anyone has this use case before. We think it's because of the orthographic camera position which never moves but only "zoom" so point cloud layer has the same position of camera whatever the orthographic camera zoom has.
Steps to Reproduce (for bugs)
Check exemples, zoom on point cloud with orthographic camera view
Expected Behavior
Point cloud layer should update based on zoom.
Actual Behavior
Point cloud layer does not update based on zoom.
Possible Cause/Fix/Solution
We think it's because of the orthographic camera position which never moves but only "zoom" so point cloud layer has the same position of camera whatever the orthographic camera zoom has.