-
Notifications
You must be signed in to change notification settings - Fork 289
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
Conversation
@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 |
There was a problem hiding this 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 👍
Thanks! Just made the changes. Can you give it another test to make sure it looks right and then we can get this merged! |
src/three/PNTSLoader.js
Outdated
useUniqueIDs: true, | ||
}; | ||
|
||
const buffer = featureTable.getDracoBuffer( byteOffset, byteLength ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getDracoBuffer
-> getBuffer
src/three/PNTSLoader.js
Outdated
|
||
const buffer = featureTable.getDracoBuffer( byteOffset, byteLength ); | ||
geometry = await dracoLoader.decodeGeometry( buffer, taskConfig ); | ||
geometry.copy( dracoGeometry ); |
There was a problem hiding this comment.
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
There was a problem hiding this 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 👍
Just made another update. If there are more issues do you mind making a PR into this "draco-pnts-proposal" branch? |
There was a problem hiding this 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 👍
@Gmadges Thanks again for your work on this! |
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.