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
My starting point was the example in the repo. I'm setting the point budget in the initialize function like so:
initialize(targetEl: HTMLElement): void {
if (this.targetEl || !targetEl) {
throw new Error('Viewer already mounted or no target passed.');
}
this.targetEl = targetEl;
targetEl.appendChild(this.renderer.domElement);
this.potree.pointBudget = 3600000;
// camera
this.camera.position.set(91, 91, 91);
this.camera.lookAt(0, 0, 0);
this.cameraControls = new OrbitControls(this.camera, this.targetEl);
this.resize();
window.addEventListener('resize', this.resize);
this.targetEl.addEventListener('click', this.handleClick);
requestAnimationFrame(this.loop);
}
I have verified that if I set the budget under the threshold, say 200k, that the loader does respect that and limits the points accordingly. However with my desired 3.6M for this data set, I can't cross ~940k. I've spun up the same data set with the full Potree lib and it will render all 3.6M points if the budget is >=3.6M (both minNodeSize === 30). This is the only Object in the scene.
I'm not sure what other data I should provide so let me know
The text was updated successfully, but these errors were encountered:
One thing that came to my mind is that you might have to set the minNodePixelSize on the PointCloudOctree. The default is 50px and if nodes would end up being smaller than 50px on the screen, we don't load them.
I tried to set the material point size type to fixed in case that was telling potree to cull excess points. As far as I can tell I've matched the full potree lib's options as close as I can. Could you share what material and octree params you're using so I could investigate further? I am doing some things with the camera projection matrix but they aren't very drastic and I'm not sure how much of a bearing that has on point loading
It isn't critical at this time since the point cloud visually looks fine, I'm just concerned that it may lead to problems in the future
My starting point was the example in the repo. I'm setting the point budget in the
initialize
function like so:I have verified that if I set the budget under the threshold, say 200k, that the loader does respect that and limits the points accordingly. However with my desired 3.6M for this data set, I can't cross ~940k. I've spun up the same data set with the full Potree lib and it will render all 3.6M points if the budget is >=3.6M (both minNodeSize === 30). This is the only Object in the scene.
I'm not sure what other data I should provide so let me know
The text was updated successfully, but these errors were encountered: