You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with a method that does not recurse into the children.
Can anyone clarify why this is done? Doesn't that break things when the world matrices of the child nodes should be updated, e.g. after changing the model matrix of the whole point cloud?
For me it does break things, it looks like most parts of the point cloud move to the new position but some points are left behind. I'm calling updateMatrixWorld(true) on the point cloud object. Inspecting the child nodes, I see that their matrixWorld has not been updated.
The method
Object3d.updateMatrixWorld()
(https://github.com/mrdoob/three.js/blob/400acd3c78c8e631087322eb1e0e9fc00a16b375/src/core/Object3D.js#L560) is overridden inthree-loader/src/point-cloud-octree.ts
Line 160 in 7db6366
Can anyone clarify why this is done? Doesn't that break things when the world matrices of the child nodes should be updated, e.g. after changing the model matrix of the whole point cloud?
For me it does break things, it looks like most parts of the point cloud move to the new position but some points are left behind. I'm calling
updateMatrixWorld(true)
on the point cloud object. Inspecting the child nodes, I see that theirmatrixWorld
has not been updated.When I use the related method
updateWorldMatrix(false, true)
instead (https://github.com/mrdoob/three.js/blob/400acd3c78c8e631087322eb1e0e9fc00a16b375/src/core/Object3D.js#L594), which is not overridden, my code works as expected.The text was updated successfully, but these errors were encountered: