-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
glTF 1.0 Changes #3039
glTF 1.0 Changes #3039
Conversation
For #3034 |
@@ -322,8 +322,16 @@ define([ | |||
|
|||
if (gltf instanceof Uint8Array) { | |||
// Binary glTF | |||
var result = parseBinaryGltfHeader(gltf); | |||
|
|||
// CESIUM_binary_glTF is from the beginning of the file but |
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.
We should mention KHR_binary_glTF
in the reference doc.
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.
Just a reminder:
We should mention KHR_binary_glTF in the reference doc.
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.
Where else do you want it mentioned? It is in the doc for the Model
constructor and the fromGltf
method.
Good start, thanks @tfili. |
…ly in the technique and not in the pass/instanceProgram.
@pjcozzi This is the PR I wanted you to look at. |
Conflicts: .gitignore
…nt and spot light.
How is test coverage?
|
Can we also add a model using |
I think I mentioned this before, but it will require some effort to merge this into the |
@pjcozzi I'll do this as soon as we merge my changes into the open source converter. I'm preparing the pull request now. |
Weird. It works on Windows. I'll look at it. |
Update this Sandcastle example: http://localhost:8080/Apps/Sandcastle/index.html?src=CZML%20Model.html&label=CZML |
@tfili that is all my comments. I will try to make a more detailed pass through |
@pjcozzi I fixed all of them besides the test failure.Looking at that now. |
@pjcozzi This should be good to go to look at again. All tests are done. The only thing I have left is the array of textures. |
Update the model path for this Sandcastle demo: http://localhost:8080/Apps/Sandcastle/index.html?src=Picking.html&label=All |
I fixed this. |
This is good! |
Let's merge into |
Don't merge yet
Fixes
mesh.primitive.primitive
->mesh.primitive.mode
mesh.primitive.indices
are now optionaltechnique.parameter.source
->technique.parameter.node
passes
fromtechnique
technique
optional. Render gray material if notechnique
or extensionbgltf
files toglb
except one for testingCESIUM_binary_glTF
KHR_materials_common
model to SandcastleKHR_materials_common
with coverage. Should include all lighting models.