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

feat(tile-converter): support attributes data from textures #2511

Merged
merged 10 commits into from Jun 26, 2023

Conversation

mspivak-actionengine
Copy link
Collaborator

No description provided.

@mspivak-actionengine mspivak-actionengine requested review from belom88 and ibgreen and removed request for belom88 May 30, 2023 20:00
@mspivak-actionengine
Copy link
Collaborator Author

@ibgreen Hi Ib, could you please review the PR?

Copy link
Collaborator

@belom88 belom88 left a comment

Choose a reason for hiding this comment

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

@ibgreen we need feedback for the change in parse-gltf.ts

@@ -50,12 +50,13 @@ export class GLTFScenegraph {
byteLength: number;

// TODO - why is this not GLTFWithBuffers - what happens to images?
constructor(gltf?: {json: GLTF; buffers?: any[]}) {
constructor(gltf?: {json: GLTF; buffers?: any[]; images?: any[]}) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
constructor(gltf?: {json: GLTF; buffers?: any[]; images?: any[]}) {
constructor(gltf?: GLTFWithBuffers) {

See comment above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Declined. The problem is that GLTFWithBuffers has REQUIRED field "buffers", which results in necessity to change many calls of the constructor, where "gltf" doesn't have "buffers" assigned.

* @param n
* @param m
*/
function emod(n: number): number {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ibgreen it looks like candidate to move to @math.gl . Probably we already have this function implemented in some place?

promises.push(promise);

// Parallelize image loading and buffer loading/extension decoding
await Promise.all(promises);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We are removing Promise.all, that is potential performance change. The reason is we need images loaded during decodeExtensions.
@ibgreen what do you think?

@@ -38,6 +38,32 @@ setLoaderOptions({
_worker: 'test'
});

test('tile-converter - Converters#texure attributes', async (t) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The idea was to remove this test because the testing the whole converter takes a lot of time and diminishes CI speed

Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

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

Have we described this extension in the documentation for the gltf module?

@@ -1083,6 +1084,8 @@ type FeatureTexture = {
extras?: any;
[key: string]: any;
};
export type {FeatureTexture as EXT_feature_metadata_feature_texture};
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • Can we have these exports at the bottom together with the other exports?
  • Can we minimize the arbitrary renaming of things? - why do these need to be renamed where as other extension exports do not?

@belom88
Copy link
Collaborator

belom88 commented Jun 26, 2023

Have we described this extension in the documentation for the gltf module?

I will check an finish other comments in a separate PR

@belom88 belom88 merged commit e176dfd into master Jun 26, 2023
2 checks passed
@belom88 belom88 deleted the ms/es-347-texture-attributes branch June 26, 2023 14:58
@dsavinov-actionengine dsavinov-actionengine added the ActionEngine The issue is on ActionEngine controll label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ActionEngine The issue is on ActionEngine controll
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants