Skip to content

PCDLoader: Implement data type dependent binary parsing.#31061

Merged
Mugen87 merged 5 commits into
mrdoob:devfrom
stardustai:feat/pcd-view-reader
May 8, 2025
Merged

PCDLoader: Implement data type dependent binary parsing.#31061
Mugen87 merged 5 commits into
mrdoob:devfrom
stardustai:feat/pcd-view-reader

Conversation

@F-loat

@F-loat F-loat commented May 8, 2025

Copy link
Copy Markdown
Contributor

Related issue: Unable to properly parse the 8-bit size of the pcd coordinate information.

Description

Obtain the data type of the FIELDS field by combining SIZE and TYPE.

@Mugen87

Mugen87 commented May 8, 2025

Copy link
Copy Markdown
Collaborator

Do you mind sharing a PCD file that can't be loaded with the current implementation? In this way, we have a test asset so it's possible to verify your changes.

Comment thread examples/jsm/loaders/PCDLoader.js Outdated
@F-loat

F-loat commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

@Mugen87 I don't have a suitable pcd file for public use, but I can convert the previous Zaghetto to 8bit to verify it. What do you think?

before after
image image

@Mugen87

Mugen87 commented May 8, 2025

Copy link
Copy Markdown
Collaborator

That sounds good. However, I would not replace the existing asset. Just add an additional 8-bit version Zaghetto_8bit.pcd so we have both.

Comment thread examples/jsm/loaders/PCDLoader.js Outdated
@Mugen87 Mugen87 added this to the r177 milestone May 8, 2025
@F-loat

F-loat commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

@Mugen87 Yes, as you expected, I kept the original files.

@F-loat

F-loat commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

And a file switching option is added to the example.

image

Comment thread examples/webgl_loader_pcd.html
@Mugen87 Mugen87 merged commit 3a21dee into mrdoob:dev May 8, 2025
11 checks passed
@Mugen87 Mugen87 changed the title PCDLoader: implement binary PCD data type parsing PCDLoader: Implement data type dependent binary parsing. May 8, 2025
@F-loat F-loat deleted the feat/pcd-view-reader branch May 8, 2025 15:12
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* feat: implement binary PCD data type parsing

* chore: code format

* chore: add verification file

* chore: add file select widget

* fix: destroy gui
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* feat: implement binary PCD data type parsing

* chore: code format

* chore: add verification file

* chore: add file select widget

* fix: destroy gui
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.

2 participants