-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
GLTFLoader: add KHR_animation_pointer and NEEDLE_progressive #32096
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please add the comments here as well:
three.js/examples/jsm/loaders/GLTFLoader.js
Lines 101 to 103 in ebc5849
The "old" docs will be replaced with a new one generated from the JSDoc.
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.
Oh sounds perfect! I just did
Uh oh!
There was an error while loading. Please reload this page.
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.
Is the code preview format intended like that?
Why not like this ?
- [KHR_animation_pointer](<url>)or
- [KHR_animation_pointer]({@link <url>})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.
Is JSDoc still able to parse
[KHR_animation_pointer](<url>)?You can test this by running
npm run build-docsand then open the doc page viahttp://localhost:8080/docs_new/#GLTFLoader.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.
Merging in the meanwhile. If we update the style of external links, we should do this everywhere.
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 style does not seem to work.
With this style, the links in the source code are not highlighted and clickable anymore since it's just text.
So none of the approaches is ideal.
Uh oh!
There was an error while loading. Please reload this page.
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.
How/where did you try the style that doesnt work?
I've just double checked the GLTFLoader page and this works for me in the docs HTML and code docs suggestion in vscode:
[NEEDLE_progressive](<url>).Links are clickable in both cases.
Tried with the CCD Algorithm that you showed above:
Let me know if I'm missing anything.
I can make a PR with all links replaced if it helps testing.
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.
What I meant was this:
With the current style, you can use cmd + click in VSCode to open the link. This does not work with the second style since the link is just text.
Uh oh!
There was an error while loading. Please reload this page.
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.
It does work for me holding CMD and clicking the same way as before
test.mp4
Uh oh!
There was an error while loading. Please reload this page.
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.
Oh, you are right! The code just looses the highlighting but the link is still clickable.
In this case, the
[title](<url>)seems the overall better approach.