GithubHelp home page GithubHelp logo

Comments (7)

robertos avatar robertos commented on July 23, 2024

Hi @Dharnidharka,

For the first issue, are all your GLBs valid? You can validate them with http://github.khronos.org/glTF-Validator/ .

About running from a non-Windows system, not right now, but we'd love to have that capability. The main limitation is the dependency on DirectXTex for texture processing, but it should be possible to abstract that if you want to try it.

from gltf-toolkit.

Dharnidharka avatar Dharnidharka commented on July 23, 2024

Hi @robertos,

I made the validation checks. All the files are valid. However I am getting a warning.

{
"uri": "T2H.glb",
"mimeType": "model/gltf-binary",
"validatorVersion": "2.0.0-dev.2.4",
"validatedAt": "2018-07-20T18:12:12.474Z",
"issues": {
"numErrors": 0,
"numWarnings": 1,
"numInfos": 2,
"numHints": 0,
"messages": [
{
"code": "UNSUPPORTED_EXTENSION",
"message": "Unsupported extension encountered: 'KHR_draco_mesh_compression'.",
"severity": 1,
"pointer": "/extensionsUsed/0"
},
{
"code": "UNUSED_OBJECT",
"message": "This object may be unused.",
"severity": 2,
"pointer": "/bufferViews/0"
},
{
"code": "UNUSED_OBJECT",
"message": "This object may be unused.",
"severity": 2,
"pointer": "/bufferViews/1"
}
],
"truncated": false
},
"info": {
"version": "2.0",
"generator": "COLLADA2GLTF",
"extensionsUsed": [
"KHR_draco_mesh_compression"
],
"extensionsRequired": [
"KHR_draco_mesh_compression"
],
"resources": [
{
"pointer": "/buffers/0",
"mimeType": "application/gltf-buffer",
"storage": "glb",
"byteLength": 1318752
},
{
"pointer": "/images/0",
"mimeType": "image/jpeg",
"storage": "bufferView",
"image": {
"width": 1024,
"height": 1024,
"format": "RGB",
"bits": 8
}
},
{
"pointer": "/images/1",
"mimeType": "image/jpeg",
"storage": "bufferView",
"image": {
"width": 1024,
"height": 1024,
"format": "RGB",
"bits": 8
}
}
],
"hasAnimations": false,
"hasMaterials": true,
"hasMorphTargets": false,
"hasSkins": false,
"hasTextures": true,
"hasDefaultScene": true,
"primitivesCount": 2,
"maxAttributesUsed": 3
}
}

from gltf-toolkit.

najadojo avatar najadojo commented on July 23, 2024

Ah that explains it... we can't use assets compressed with Draco as input at this time. Please file an issue if you need this capability.

from gltf-toolkit.

robertos avatar robertos commented on July 23, 2024

Closing this issue - see @najadojo 's comment and please log a new issue if you'd like to request Draco support for input (reading). Additionally, I think your exporter is likely creating invalid GLTF, since the Draco extension should be on extensionsRequired, not extensionsUsed, most likely.

from gltf-toolkit.

Dharnidharka avatar Dharnidharka commented on July 23, 2024

@robertos @najadojo Thank you for the prompt reply. I'll check if there is some issue with my exporter. Just out of curiosity, if I wanted to write a converter and create a PR, any resources that could help me get started, I'm relatively new to converters.

from gltf-toolkit.

najadojo avatar najadojo commented on July 23, 2024

PR #36 contains a change to allow compression of the output, I'd start from that. As for using them as input for this tool after #36 merges there probably won't be too much left to do just handling the accessors that don't have bufferViews (your error above). Everything else may just work.

from gltf-toolkit.

bghgary avatar bghgary commented on July 23, 2024

Additionally, I think your exporter is likely creating invalid GLTF, since the Draco extension should be on extensionsRequired, not extensionsUsed, most likely.

FYI, if an extension name is in extensionsRequired, it must also be in extensionsUsed. In this case, the asset requires Draco and the extension should be in both used and required lists.

From https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#specifying-extensions:

extensionsRequired is a subset of extensionsUsed. All values in extensionsRequired must also exist in extensionsUsed.

from gltf-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.