I used opencascade's module to export from step to glb . I tried to read the glb file with blender and it works just fine . I then imported it to babylon and it crashed . I posted the file on Khronos's glTF validator and it reported lots of unused meshes . I would like to know if there is a way to remove these unused meshes and if there is other ways to optimize glTF files and babylon import
removing unused objects from a glTF 2.0 file
1.5k Views Asked by tawfikboujeh At
1
There are 1 best solutions below
Related Questions in 3D
- Is there a way to import Collada files into Java?
- 3d mouse aim camera 3rd person vertical C#
- 3D B-Spline approximation
- MatLab 3-vector plot/mesh with colour-scale
- Matplotlib 3d: surface does not cover a line
- Draw a sphere on a billboard with world normal from a pointlist
- babylon skybox from hell
- Create histogram
- How to get accurate 3D depth from 2D screen mouse click for large scale object in OpenGL?
- Custom WhirlyGlobe Skin
- Converting 2D images to 3D
- How to setup camera to point at object
- Finding 3D coordinate of object
- MATLAB 3D sliding window on a volume
- How to check for collisions in ThreeJS?
Related Questions in BLENDER
- Threejs scene from blender and access to objects
- Importing blender JSON in Three.js
- Blender to Unity3D: Applying Materials in Unity
- Blender Python Script Deleting Meshes
- Playing background movie while animation in blender
- How to use toon shader to convert 3D models to patent drawings
- How to export a .bullet file from blender
- Blender GLSL Export to THREE.js
- Using Blender camera Paths in Threejs
- SceneKit + Collada + animation
- Rendering a scene created in Blender with Babylon.js without the Babylon.js default shiny material
- Json to CSV using python and blender 2.74
- THREE.js + leap motion
- Automatically creating python script from GUI in Blender
- XML3D: Exporting animations from blender
Related Questions in GLTF
- Trying to convert .dae file to .gtlf file so I can use with cesium 3d model
- how to load gltf in three JS
- How to update threejs morph targets from blender GLTF shape keys
- How to attach an camera to a bone/vertices on a model without affecting its rotation? (A-Frame)
- Use JavaScript arrays instead of loading OBJ or GLTF in three.js for performance
- Vertex Colors from imported glTF in three.js
- Three.js: FBX bones rotate correctly, while GLTF bones rotate bizarrely
- Unexpected token < in JSON at position 0 - glTFLoader in Three.js and Vue app
- How to change .gltf buffer uri in react?
- GLTF Object loading but not showing up
- Android gltf-Viewer with Morph-targets and animations
- How support +Y up in glTF?
- A-frame gltf could not found
- How do I load GLTFLoader from a cdn THREE.js
- A-Frame Asset Management System blocks JavaScript code
Related Questions in BABYLONJS
- babylon skybox from hell
- Moving mesh on the screen without being in torn animation
- Drawing custom shapes in Babylon.js
- Rendering a scene created in Blender with Babylon.js without the Babylon.js default shiny material
- Defining transpency in bmp files
- Use a Sketch Up 2016 Model with babylon JS
- How to reference/import the babylon typescript library when using Angular 2?
- How to load .babylon.js files in Node.js with custom MIME type?
- Babylon.js, how to remove a mesh from scene?
- Load a .obj and .stl in Babylon.js
- Babylon.js place a plane normal to the clicked surface
- babylon.js texture from blender
- babylonjs: multi-shadows for multi-elements not working
- Getting a Black Screenshot with BabylonJS
- three.js on winform application c#
Related Questions in OPENCASCADE
- Reading STEP properties with pythonocc
- OpenCascade Step file UserDefined property reading
- Own export-to-file function in pythonOCC
- How do I construct an OpenCascade `TopoDS_Shape` which is an identity element of `BRepAlgoAPI_Common`
- Generate B spline with Opencascade
- How to make a solid using sections using OPENCASCADE
- cannot include header on linux subsystem with vs2017
- OpenCascade link error in c++ using vs2017
- How to build OpenCASCADE on MAC (Mountain Lion)
- equivalent of PyQt4 processEvents for wxPython
- How to get the numeric index/position to face in parent shape (OpenCascade)
- Problem with Python-occ build - error when running make
- How can I define the normal vector of a surface? Transfer surface to a plane first, then define vector of plane? Debugging: downcast no longer needed?
- Open Cascade Write glTF Writer
- Get length scale factor of STEP CAD file with OpenCASCADE
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If it is "Entity cannot be empty" on entities having no triangulations, then it should be just fixed in OCCT itself.
If this is another case with glTF files exported by OCCT and not passing validation, then probably it is better reporting a bug rather than trying to clean up generated glTF file (although I suppose there are tools in a wild that could do so).
Optimization of glTF files for specific engines is another topic, sorry to have no answer here. OCCT exports files preserving shape topology structure which might result in poor performance on some unoptimized glTF viewers (you can see that such structure does no harm to CAD Assistant glTF viewer, for example). There is a list of tools that include "optimize" in description like gltfpack, but I have not tried any.