Comments (1)
Sorry for delayed response. I'm just getting back to my feet after COVID.
-
You need to have both
scene.gltf
andscene.bin
present in the same directory. That is, download http://www.kshell.com/pages/gltfassets/toomuchcoffee/scene.gltf and http://www.kshell.com/pages/gltfassets/toomuchcoffee/scene.bin and place them in the same directory. View3dscene (as any other glTF reader) needs the.bin
data, it contains all the per-vertex data (like positions and texture coordinates), without it is impossible to display the 3D content.I see the model also uses a texture. Create subdirectory
textures
and place there https://www.kshell.com/pages/gltfassets/toomuchcoffee/textures/material_0mat_baseColor.jpeg .That is how the glTF (from http://www.kshell.com/pages/gltfassets/toomuchcoffee/scene.gltf ) works. In the
scene.gltf
file, there are links (just trivial relative URLs) that point toscene.bin
andtextures/material_0mat_baseColor.jpeg
. Any glTF reader has to expect these files at respective locations.Opening the
scene.gltf
in view3dscene will now work. I can open it and play the dancing animation happily :)Converting to X3D
tovrmlx3d scene.gltf > new.x3d
also works. But be warned: resulting X3D is huge. X3D file size just sucks, with textual encoding, and the way CGE "expands" animation data makes the issue much worse (we add a hugeCoordinateInterpolator
inside). Resulting X3D in XML encoding is 1.3 GB! (from a few MB of gltf + bin file). For practical purpose, I would not save it to X3D. Fixing this relies on 1. CGE handling skinned animation from glTF better (this will happen definitely soon), 2. X3D having binary encoding like glTF (unknown when it will happen). -
As an author, alternatively you could have prepared glTF "embedded" (the per-vertex data from .bin, and the texture data, could be embedded within a single .gltf file). That would make it easier to copy the file / open it anywhere. But your
scene.gltf
wasn't prepared like that. -
For a normal user (not an author of this file) there is an easier option to open it, to let view3dscene download the linked files:
- Activate network downloading in view3dscene ("File -> Preferences -> Download Resources from Network")
- Use view3dscene "Open URL" (Ctrl + L) with http://www.kshell.com/pages/gltfassets/toomuchcoffee/scene.gltf .
- Give it a few secs, it will automatically download the necessary .bin and texture file then.
from view3dscene.
Related Issues (20)
- Honor Metadata containerField="value" in X3D 4 HOT 3
- allow EXTERNPROTO, PROTO inside MFNode in classic encoding HOT 5
- Support for new X3D 4.0 audio nodes
- KeySensor enabled field is [in out] exposedField HOT 2
- TextureProjector and TextureProjectorParallel are allowed as root nodes in scene HOT 2
- skinCoord precedes skin in HAnimHumanoid HOT 3
- Direct use of /tmp HOT 1
- Secondary display flicker when closing application HOT 4
- tovrmlx3d - Support for file content in stdin HOT 3
- RFE (Request for Enhancement) Vertex shaders for Spheres HOT 7
- Any help suppressing warnings? HOT 4
- EAccessViolation HOT 4
- LoadSensor child nodes have containerField=children in X3D 4.0 HOT 2
- VRML/X3D: Plug name "main_texture_apply " not declared (in shader type "Fragment") HOT 3
- Canβt put <Sphere> inside <BoundedPhysicsModel> HOT 6
- castle-model-view errs out, castle-model-converter validates, animation runs for a while, then bombs HOT 3
- Probably a very easy issue with my data file, but the validator/error message isn't helping much HOT 3
- Drag and drop files onto viewer. Windows and Linux HOT 7
- Previously mentioned issue. glTF conversion with same node name warning HOT 4
- Data issue identified by CGE, hundred of similar error reports in Castle Model Viewer HOT 1
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 view3dscene.