[SOLVED] Point Cloud jumping around

I have a camera that generates PCD files that I load in the browser.
So to create a sort kind of live stream I replace the current mesh.
But I noticed that he jumps around.
See the image and test case.

This is the boundingsbox max and min values of 2 PCD I load.
jump

I don’t know if the problem is the bounding box?
Is there a way I can lock my mesh to a certain position in x y z-direction so it won’t jump around.

I have made a test case so you can try to simulate it.

(Make sure you’re in the JumpingMesh branch)

You need to run a server that is located in the folder node
You can run it by npm start

The web app is located in the folder WebApp
You can run it by npm run serve

The standard ThreeJs library files are located in the following folder:
WebApp/src/assets/js/Vue/Live/ThreeJs/Libs

That happens because of the following line of code in Init.js:

PerrinePCD.geometry.center();

Since the geometries of your point clouds vary, a different center point is calculated.

1 Like

Thank you very much!!

1 Like