Skip to content

Conversation

@HectorArellanoDev
Copy link
Collaborator

Decouple the harmonics loading from the mobile mode, so the splats can be loaded without harmonics in desktop.

pcoGeometry: PCOGeometry,
material?: PointCloudMaterial,
loadHarmonics: boolean = false,
splatsMobile: boolean = false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we start to have too many parameters here. In a separate PR we should convert it to one object parameter.

Please add JSDOC comment that explains the option.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new version does not need JSDOC, parameter name is self explanatory

pcoGeometry: PCOGeometry,
material?: PointCloudMaterial,
loadHarmonics: boolean = false,
splatsMobile: boolean = false,
Copy link
Collaborator

@turien-pix4d turien-pix4d Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be more straightforward to have a maximumSplatRendered parameter?
I feel splatMobile parameter have the potential to evolve like this:

constructor(
    potree: IPotree,
    pcoGeometry: PCOGeometry,
    material?: PointCloudMaterial,
    loadHarmonics: boolean = false,
    splatsMobile: boolean = false,
    isSlowMobile: boolean = true,
    isFastMobile: boolean = false,
    isReallyAMobile: boolean = false, 
    // we have some code that set splat mobile to true on some desktop for historical reason.
  ){}

@HectorArellanoDev HectorArellanoDev merged commit 6904b8b into master Jul 24, 2025
7 checks passed
@HectorArellanoDev HectorArellanoDev deleted the feature-decouple-harmonics-mobile branch July 24, 2025 08:14
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

Successfully merging this pull request may close these issues.

4 participants