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

Update samples to gltf2.0 specification #15

Closed
jtorresfabra opened this issue Mar 28, 2017 · 13 comments · Fixed by #29
Closed

Update samples to gltf2.0 specification #15

jtorresfabra opened this issue Mar 28, 2017 · 13 comments · Fixed by #29

Comments

@jtorresfabra
Copy link

jtorresfabra commented Mar 28, 2017

We are trying to integrate 3D tiles in http://osgjs.org. Unfortunately we can't support all versions of glTF so it would be nice if the samples can be upgraded to glTF 2.0. Thanks!

@lilleyse
Copy link
Contributor

Yes definitely, the 3D Tiles spec will ultimately be written against gltf 2.0. These samples should be updated relatively soon.

@pjcozzi
Copy link
Contributor

pjcozzi commented Mar 28, 2017

@jtorresfabra in the meantime, there is a glTF 1.0 to 2.0 stage here: CesiumGS/gltf-pipeline#191

Also, see CesiumGS/3d-tiles#94

@jtorresfabra
Copy link
Author

Hi @lilleyse @pjcozzi Any news on this?

@lilleyse
Copy link
Contributor

lilleyse commented Oct 2, 2017

Sorry, no update yet. Since glTF 2.0 is now stabilized in Cesium we should be able to safely work on this.

@jtorresfabra
Copy link
Author

Thanks, I will wait for it :).

@PrincessGod
Copy link

Hi, @lilleyse.
I am using Cesium, and I want to convert my models to b3dm, but the spec using batchId with glTF 1.0,
so I am wondering if it possible to update both the 3d-tiles spec and Cesium support glTF 2.0 ?
thanks.

@lilleyse
Copy link
Contributor

lilleyse commented Oct 13, 2017

You can start to write b3dm tiles with glTF 2.0 already. Just ignore the notes in the spec for now that are relevant to glTF 1.0. As long as the glTF primitive has a _BATCHID vertex attribute, it should work.

Check out https://github.com/AnalyticalGraphicsInc/cesium/tree/master/Specs/Data/Cesium3DTiles/Batched/BatchedWithKHRMaterialsCommon. While that tileset is not glTF 2.0, the idea is similar because that tile does not have shaders/techniques built-in.

We plan on updating the spec soon.

@PrincessGod
Copy link

@lilleyse Thank you very mach! It is really helpful.

@PrincessGod
Copy link

PrincessGod commented Oct 24, 2017

@lilleyse Sorry to bother you again.

I have a standard glTF 2.0 model with _BATCHID now, but how can I convert to .glb? Cause I need convert it to .b3dm now. Seems like the gltf-pipeline only used to glTF 1.0 . Thanks.

@lilleyse
Copy link
Contributor

Keep an eye on the 2.0 branch in gltf-pipeline. The code is all there for converting glTF to glb but the CLI is not yet ready. I hope to update that soon and will get back to you when it's ready.

https://github.com/AnalyticalGraphicsInc/gltf-pipeline/tree/2.0

@PrincessGod
Copy link

@lilleyse Actually I found your obj2gltf, and my job is finished based on that, because it is glTF 2.0.
When I got .glb with _BATCHID build in, the 3d-tiles formats all work out now!

Thakns again, wishing you and Cesium having a great success.

@jucamal
Copy link

jucamal commented Feb 16, 2018

Hello, do you update the sample models to gltf 2.0??
I have been tried to convert using [https://github.com/AnalyticalGraphicsInc/3d-tiles-tools] but the model still on gltf 1.0.
I tested with TilesetWithDiscreteLOD

@lilleyse
Copy link
Contributor

Sorry, the sample models have not been updated yet.

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 a pull request may close this issue.

5 participants