Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Draco PNTS proposal alternative #329

Merged
merged 9 commits into from
May 12, 2023
Merged

Conversation

gkjohnson
Copy link
Contributor

@gkjohnson gkjohnson commented May 11, 2023

Related to #326

@Gmadges What do you think of this? I've based this off your previous commit and changed it a bit to consolidate all the decoding logic in the PNTS class.

I haven't tested it, though, so I'll need your help with that.

@Gmadges
Copy link
Contributor

Gmadges commented May 11, 2023

@gkjohnson Looks good to me! A bit cleaner than my PNTSFeatureTable refactor.

I'll give it a test, and let you know how it goes

src/three/PNTSLoader.js Outdated Show resolved Hide resolved
src/three/PNTSLoader.js Outdated Show resolved Hide resolved
Copy link
Contributor

@Gmadges Gmadges left a comment

Choose a reason for hiding this comment

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

Tested, Requires a few tweaks and then should work 👍

@gkjohnson
Copy link
Contributor Author

Tested, Requires a few tweaks and then should work 👍

Thanks! Just made the changes. Can you give it another test to make sure it looks right and then we can get this merged!

useUniqueIDs: true,
};

const buffer = featureTable.getDracoBuffer( byteOffset, byteLength );
Copy link
Contributor

Choose a reason for hiding this comment

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

getDracoBuffer -> getBuffer


const buffer = featureTable.getDracoBuffer( byteOffset, byteLength );
geometry = await dracoLoader.decodeGeometry( buffer, taskConfig );
geometry.copy( dracoGeometry );
Copy link
Contributor

Choose a reason for hiding this comment

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

This copy isn't required anymore

Copy link
Contributor

@Gmadges Gmadges left a comment

Choose a reason for hiding this comment

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

Sorry, some minor items, and it works 👍

@gkjohnson
Copy link
Contributor Author

Sorry, some minor items, and it works 👍

Just made another update. If there are more issues do you mind making a PR into this "draco-pnts-proposal" branch?

Copy link
Contributor

@Gmadges Gmadges left a comment

Choose a reason for hiding this comment

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

Tested, and all works 👍

@gkjohnson gkjohnson merged commit dbc3c20 into master May 12, 2023
@gkjohnson gkjohnson deleted the draco-pnts-proposal branch May 12, 2023 15:34
@gkjohnson
Copy link
Contributor Author

@Gmadges Thanks again for your work on this!

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