Comments (7)
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.
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.
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.
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.
@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.
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.
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 ofextensionsUsed
. All values inextensionsRequired
must also exist inextensionsUsed
.
from gltf-toolkit.
Related Issues (20)
- crash HOT 3
- Packing crashes if the packed textures don't have the same size
- WindowsMRAsset Converter -replace-textures flag causes conversion to fail HOT 2
- Cant work with GLTF HOT 2
- NDEBUG missing from Release configuration? HOT 1
- LOD merge with tangents fails
- -replace-textures flag does not work
- Redundant textures in output after specular gloss -> metal rough conversion HOT 1
- NormalRoughnessMetallic packing needs to renormalize normals and compute roughness from normal variance
- Basic models from Pain3D: Can't place hologram HOT 1
- We couldn't load the selected model, Please try agian later HOT 1
- Project does not build in VS 2019
- Sample glTF files fail to load in Microsoft's own software HOT 1
- Existing mesh serializing
- "Cannot read the magic number"
- Need help with MSFT_LOD generation for Threejs HOT 4
- Need help with creating draco mesh straight from gltf-sdk
- Link to documentation dead
- This repo is missing important files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gltf-toolkit.