-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
The textureInfo is not linked from pbrMetallicRoughness #1013
Comments
@javagl bump for if/when you have bandwidth. |
Yesterday I was looking at the diffs between what wetzel puts out and what's embedded in the current 2.0 README. The biggest differences appeared to be:
This is the commandline I was using:
|
@emackey The capitalization of the titles was done in the schema. Unfortunately, this caused some ambiguities and quirks in wetzel: Before this change, the However, I tried to handle this in this wetzel commit: javagl/wetzel@0f7eb03 The result of running this over the current spec is shown here: https://github.com/javagl/glTF/tree/master/specification/2.0#objects The links seem to work, and the formatting seems to be OK. I'm a bit hesitant to create the PRs:
|
@javagl |
Someone should probably still review the wetzel commit in javagl/wetzel@0f7eb03 , and iff it is merged, I'd re-run the generation based on the current state. It has been a while since the output from the link above has been generated, and I think there is no point in merging a "volatile" or "preliminary" state into the main repo. This should only be done with a state that can reliably and easily be reproduced. |
@javagl To get that reviewed, please sign the CLA (can be done via email) and submit a Pull Request for it. Thanks! |
@javagl could you open a PR to wetzel for your changes. Thanks |
@sbtron This CLA thing is/was an impediment here. There are waaay to many lawyers out there. But I just noticed that it says "Sign by typing your full name." - does that really mean that I do not have to print, sign and scan the whole thing, but just write an email with a TEXT file attached? (If so, I'd do it. There is no way that has any legal meaning anyhow...) |
@javagl Yes, for AGI's CLA you can just send an email with a text file attached, no scanning required.
I'm not a lawyer, but I certainly hope your assessment of that is incorrect. The CLA isn't there just to protect AGI's interests, it protects individual contributors by allowing them to keep their own copyrights while contributing code, and protecting contributors from legal action from users. It also protects end users, by ensuring that all contributions were explicitly made with the intention of being provided to users under the project's licence terms. The CLA we use comes from the Apache Foundation and is fairly standard practice in the open source industry. Signing it once allows contributions to all AGI projects, including Wetzel, Cesium, the glTF-VSCode extension, and many others. |
The PR for wetzel is at CesiumGS/wetzel#33 The output with the latest schema is shown at https://github.com/javagl/glTF/tree/reference_links_update/specification/2.0#objects |
The PR for wetzel has been merged, but for the reasons mentioned in CesiumGS/wetzel#33 and the comment in CesiumGS/wetzel#33 (review) I hesitate to create a PR for the actual update of the README. The fact that the order of some properties has changed in the output is technically not an issue, but makes a 1:1 comparison difficult. Beyond that, some of the Therefore, a link to the the comparison here: master...javagl:reference_links_update for others to have another look at it. Beyond that: One could probably automate some processes here, but I'm not a big fan of establishing certain infrastructures that are hard to maintain - particularly when they'd be triggered only rarely (in the case of changes to the JSON spec). But maybe we could establish some "guideline"/"rule of thumb": Whenever there is a change to the JSON schema, the corresponding output of wetzel should be part of the PR. (Possibly even with a tagged version/state of wetzel?). Otherwise, there's always the danger that the JSON schema, the wetzel output and the final README diverge. |
I'd suggest moving forward with a more automated approach:
This workflow would increase documentation quality without adding extra maintenance burden on contributors. |
@javagl what's the latest here? Should we close this issue and open a new one about automating spec updates? |
I have opened the related issue about possibly using jsonschema2md at #1607 I'm not sure in how far the outcome there will affect the setup of an automatic spec generation. (In both cases, it's just a node application that is run). One of the latest outputs of wetzel is currently shown at https://github.com/javagl/glTF/tree/update-properties-from-schema/specification/2.0#properties-reference (note that the links there still have the wrong anchors, but that should already be fixed - I can check this again if the discussion in 1607 converges towards wetzel) I'd still leave this one open until a decision is made and the |
The new AsciiDoc spec is using wetzel and GitHub CI for auto-generation. The texture objects mentioned in the original issue here are correctly linked now. |
The
pbrMetallicRoughness
currently refers tobaseColorTexture
andmetallicRoughnessTexture
as being of typeobject
. In fact, they are of typetextureInfo
.Is this just a minor glitch in the generator? It would be nice if the type could be defined to be
textureInfo
, including the appropriate link. (There is a section for thetextureInfo
, but it is not really used (i.e. linked to) right now...)The text was updated successfully, but these errors were encountered: