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

Fix sample models #579

Merged
merged 3 commits into from
Apr 26, 2016
Merged

Fix sample models #579

merged 3 commits into from
Apr 26, 2016

Conversation

lasalvavida
Copy link
Contributor

@lasalvavida lasalvavida commented Apr 25, 2016

This should resolve #556, #571, #524, and #517.

[partial] Rename some of the models

Updated README

Made naming convention uniform

Fixed a few more names

Updated internal texture references

Replaced brainsteam screenshot with animated gif

Updated readme

Updated screenshot

Replaced BoxAnimated screenshot with animated gif

Added VC screenshot

Updated README

Replaced CesiumMilkTruck screenshot with animated gif

Replaced monster screenshow with animated gif

Replaced CesiumMan screenshot with animated gif

Replaced RiggedSimple screenshot with animated gif

Replaced RiggedFigure screenshot with animated gif

Regenerated sample models with converter fixes

Added VC embedded

Fixed name

Fixed name

Fix for empty camera node

Updated binary gltf files
@pjcozzi
Copy link
Member

pjcozzi commented Apr 26, 2016

Replaces #564.

@pjcozzi
Copy link
Member

pjcozzi commented Apr 26, 2016

@TomPed would you like to test this by dragging and dropping each model (including each format variation in the sub-directories) onto http://cesiumjs.org/convertmodel.html. I think the ones with separate resource files (.bin, images, shaders) will need to be tested explicitly in Sandcastle.

Also validate each one with http://lexaknyazev.github.io/gltf-demo/

@@ -1,4 +1,4 @@
Sample models are provided in as many of the following formats as possible:
bSample models are provided in as many of the following formats as possible:
Copy link
Member

Choose a reason for hiding this comment

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

"bSample" should be "Sample"

Copy link
Member

Choose a reason for hiding this comment

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

Also, up to you, but it would not be a bad idea to replace each README.txt with README.md for consistency:

See the README.txt in each model's directory for usage restrictions.

Maybe even include the thumbnail and short description here also in the README.md for each model.

Copy link
Member

Choose a reason for hiding this comment

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

Also update this .md:

A README.txt with any usage restrictions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. And I think that's a good idea for the READMEs, I'll add that when I get a chance.

@pjcozzi
Copy link
Member

pjcozzi commented Apr 26, 2016

I love the new animated gifs for the animated/skinned models!

@pjcozzi
Copy link
Member

pjcozzi commented Apr 26, 2016

The issues in #556 look like they have been addressed.

Just waiting on @TomPed's testing and any additional feedback from @lexaknyazev before merging.

@TomPed
Copy link
Contributor

TomPed commented Apr 26, 2016

each model (including each format variation in the sub-directories) onto http://cesiumjs.org/convertmodel.html.

@pjcozzi I only see one type of COLLADA file to send to the converter Never mind.

@TomPed
Copy link
Contributor

TomPed commented Apr 26, 2016

I am getting some warnings about Unexpected propertys when I send some .gltf files into the glTF Validator. Is this a problem?

@lasalvavida
Copy link
Contributor Author

@TomPed it depends which versions you're talking about. glTF and glTF-Embedded should be totally clean. glTF-MaterialsCommon has some warnings like:

[WARNING] glTF: materials/Effect-inner/extensions/KHR_materials_common: Unexpected property doubleSided

from the validator. These are issues with the validator (and the spec for the extension which needs some updating and clarification).

glTF-Binary has the following:

[SEVERE] glTF: buffers/binary_glTF/uri: Unsupported MIME type: text/plain

As best I can tell, this is also a validator issue.

@TomPed
Copy link
Contributor

TomPed commented Apr 26, 2016

Same. I see the same results. I've just ran all the models.

@lexaknyazev
Copy link
Member

KHR_materials_common files have 2 kinds of issues:

  1. Unexpected properties (doubleSided, jointCount and transparent) in the extension object. Schema says (maybe wrongly) they must be inside values.
  2. Textures for ambient property in VC.gltf. Schema permits only FLOAT_VEC4.

Those MIME errors come from "uri": "data:," fields because data: URI without explicit MIME type implies text/plain which is incorrect type for buffers or images.
I'll remove this validation on empty data URIs.

/ReciprocatingSaw/glTF-Embedded/ReciprocatingSaw.gltf is an empty file.

@lasalvavida
Copy link
Contributor Author

The KHR_materials_common spec hasn't been ratified, and does need some attention. I'm inclined to follow the implementation and update the spec to match, but that's probably up to @pjcozzi.

Thanks @lexaknyazev! Good catch on the empty file

@pjcozzi
Copy link
Member

pjcozzi commented Apr 26, 2016

@lasalvavida for KHR_materials_common, I agree, update the spec.

  • See Common Materials Extension #424 (comment)
    • It would be worth going through that entire issue and seeing if anything else in the extension spec needs to be updated.
  • Are both COLLADA2GLTF and Cesium in-sync?

@TomPed
Copy link
Contributor

TomPed commented Apr 26, 2016

I think the ones with separate resource files (.bin, images, shaders) will need to be tested explicitly in Sandcastle.

You are right. I've tested all other models and they work. I will now be testing these types of models.

@lexaknyazev
Copy link
Member

Validator's MIME type checks fixed.

@TomPed
Copy link
Contributor

TomPed commented Apr 26, 2016

Alright so I've tested everything. All looks good but a few issues.

  1. sampleModels/BoxSemantics/glTF-MaterialsCommon/CesiumLogoFlat.jpg is missing
    • The file names in sampleModels/BoxSemantics/glTF-MaterialsCommon/ should also be changed to start with a capital letter for consistency
  2. Origin of GearboxAssy is off (for all types of models)
  3. Origin of Monster is off (for all types of models)

@lasalvavida
Copy link
Contributor Author

@TomPed

  1. Good catch! Names are fixed and the missing image is added
    2/3. I think that's just how the models are. Choosing the origin for a model is a somewhat subjective topic, and as far as I'm aware, there's not a really a correct choice.

@pjcozzi
Copy link
Member

pjcozzi commented Apr 26, 2016

@lasalvavida @TomPed is anything else needed before merging this?

@TomPed
Copy link
Contributor

TomPed commented Apr 26, 2016

From me no, all formats worked.

@pjcozzi
Copy link
Member

pjcozzi commented Apr 26, 2016

Thanks so much @lasalvavida @TomPed @lexaknyazev! This is a great contribution.

@pjcozzi pjcozzi merged commit 0dd42b0 into KhronosGroup:master Apr 26, 2016
@lasalvavida lasalvavida deleted the fix-sample-models branch September 13, 2016 13:32
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.

Invalid fields in sample models
4 participants