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

Updates to allow Draco mesh decoding to be viewable (in ThreeJS and BabylonJS) and navigable (#89). #90

Merged
merged 3 commits into from
Mar 20, 2018

Conversation

najadojo
Copy link
Contributor

No description provided.

@najadojo
Copy link
Contributor Author

#89

@emackey
Copy link
Member

emackey commented Mar 20, 2018

Awesome, thanks! I'll try to get this reviewed soon.

@@ -124,6 +125,7 @@ export class GltfPreviewDocumentContentProvider implements TextDocumentContentPr

// Note that with the file: protocol, we must manually specify the UTF-8 charset.
const content = this._mainHtml.replace('{assets}',
`<script type="text/x-draco-decoder" src="${this.getFilePath('engines/Draco/draco_decoder.js')}"></script>` +
Copy link
Member

Choose a reason for hiding this comment

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

I'd like to replace this with a new string in the existing map. I'll push a change here.

Copy link
Member

@emackey emackey left a comment

Choose a reason for hiding this comment

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

This is completely amazing. Draco decompression right in the editor itself, among other wonders. Could be a challenge just to describe the awesomeness to the glTF community.

@emackey emackey merged commit dab86a4 into AnalyticalGraphicsInc:master Mar 20, 2018
@emackey
Copy link
Member

emackey commented Mar 20, 2018

Just pushed a Cesium update to master here, so all 3 preview engines support Draco now.

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.

None yet

2 participants