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
Version 2.0.0-dev.3.3 #148
Conversation
Unfortunately it'll be 1-2 weeks before I'm able to review this — if others have time to review in the meantime, please feel free to merge this without me.
Because |
I like this idea. Basically if the external data can be validated (either because it's GLB or because a function was supplied), then there's no reason to skip validation of it. If such validation doesn't happen, perhaps there could even be a warning, that the model wasn't completely submitted to the validator? |
I think there were some reasons initially. The main was the assumption that binary data validation could be too slow but it looks like even with all the extra checks added in the previous update it's still fast enough.
How should such warning be reported? Since it doesn't apply to the asset itself, we'd need to adjust the report schema to have an extra flag, like it has |
I'm flexible on this. We do have some warnings that are not asset-related, primarily I'm thinking of the "extension not supported by the validator" warning. But yes, this could be a case for a new "truncated" type of warning. Basically my thinking is, if a user has gone to the trouble to run the validator, they should be warned if it wasn't a completely successful validation of all parts of the glTF, including the external resources. I'm open to ideas though. |
Fair point. We could attribute the lack of |
Ah, we could apply this warning using JSON pointers for each of the external resource(s) affected, that sounds good to me. |
@donmccurdy Are you OK with where this conversation ended? |
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.
Small suggestion here, but this all looks great. I tested some of the new warnings and messages in VSCode.
@emackey |
Yes, thanks!
|
Added |
A warning on external resources that couldn't be validated sounds good to me, yes. 👍 |
Let's add the UX3D extension prefix here and call this one done. ✅ |
@emackey |
Anything I can do to help this along? Do we just need a tighter range on the SDK listed in |
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.
Travis has been running for almost 2 hours, is it stuck?
Published to npm. |
Drag-n-drop tool updated. |
How could I have tracked the development of SKIN_IBM_ACCESSOR_WITH_BYTESTRIDE from when it was a concept to implementation to release? Our GLB assets are currently running into this newly added error & I would like to be able to track progress of any new errors being added to the validation tool before they make it into release. My github skills are basic at best. Thanks! |
@hypnosnhendricks As for that particular validation message, its omission before this release was a bug because the spec defines |
2.0.0-dev.3.3
New Features
Added support for new PBR extensions:
KHR_materials_clearcoat
,KHR_materials_transmission
, andKHR_materials_sheen
.Added
CAMERA_YFOV_GEQUAL_PI
validation warning (Camera perspective yfov has no upper limit. #140).Added new
SKIN_IBM_ACCESSOR_WITH_BYTESTRIDE
error for IBM accessors using buffer views with definedbyteStride
.Added new
IMAGE_BUFFER_VIEW_WITH_BYTESTRIDE
error for images using buffer views with definedbyteStride
.Added new vendor prefixes:
ANIMECH
,GRIFFEL
,MAXAR
,MPEG
,PANDA3D
,PTC
,SEIN
,SPECTRUM
,TRYON
, andVRMC
.Changes
Modified
MULTIPLE_EXTENSIONS
warning. It is now reported only for explicitly standalone extensions (No explicit warning when using unlit and pbrSpecularGlossiness #145 and Multiple Extensions warning #146).Added missing check for morph target accessors overriding buffer view usage.
Bugfixes
Fixed an endless loop on assets with a node loop within a scene (Validator gets stuck in endless loop #141).
Fixed building all targets at once (
pub run grinder
with no args).Fixed missing JS API error messages when the validator is compiled in debug mode.
Web drag-n-drop tool now shows a correct message when no glTF assets were provided.
Integration updates
npm tool no longer re-defines
require
(Warning when running within Angular #139).npm tool no longer requires
options.externalResourceFunction
for GLB or assets with embedded data (Bug: Different result in Web view than CLI and node module #138).options.validateAccessorData
npm tool flag is removed, accessors' data validation is always enabled.npm tool now reports
IO_ERROR
for external resources whenoptions.externalResourceFunction
is not provided.CLI tool now supports
--stdout
flag for writing a single validation report to STDOUT instead of a new file.CLI tool validates binary data by default (Bug: Different result in Web view than CLI and node module #138).