Comments (3)
I'm having another stab at this. I'm initially adding support for linestrips but will add TRIANGLE_STRIPS/FANS later on once I understand the code better.
It's tempting to just triangulate TRIANGLE_FANS like the converter does for POLYGONS and POLYLIST as fans are usually small primitives. Triangle strips are often used for terrain rendering and in high res models - often created by mesh optimisation libs that group as many triangles into strips as possible.
Related issues:
KhronosGroup/glTF#129
KhronosGroup/glTF#135
from collada2gltf.
@bjbrewster, just a heads up glTF does support line strips, triangle strips and triangle fans as a primitive mode, so you don't need to do any extra processing or triangulation, just set the correct mode.
The 2.0 branch already does this, but a contribution adding the support for 1.0 would be welcome.
from collada2gltf.
@lasalvavida thanks for the heads up. Enabling LINE_STRIPS mode is trivial. I just have to add support to the geometry helper that splits the mesh when more then 65K vertices.
from collada2gltf.
Related Issues (20)
- Can't find COLLADA2GLTF-bin[.exe] after building the sln
- Export settings for CityEngine
- Exported file wrong transform mode resulting in broken animation and models
- Model will lose when have lots of components?
- I/O warning : failed to load external entity HOT 2
- texture with spaces in name
- Some parts of model are converted with wrong position
- Texture coords not being exported HOT 1
- GLTF::Node::Transform must have virtual destructor
- Nothing happens when I type .\COLLADA2GLTF-bin in terminal
- COLLADA2GLTF-v2.1.5-windows-Release-x64 canot convert dae to gltf 1.0, but v2.1.4 can HOT 2
- Transparency conversion seems to be lost
- fatal error: draco/draco_features.h: No such file or directory when make? HOT 5
- ERROR: Couldn't write buffer to path '' HOT 1
- Compression Level for Draco
- Segfaults, vertices strewn in random places, missing faces, etc.
- Wrong Tangent and Binormal After Conversion
- the dracoCompression doesn't work in COLLADA2GLTF v2.1.5 using COLLADA2GLTF-v2.1.5-windows-Release-x64.zip
- Converting GLTF to Collada? HOT 2
- Please rename default branch from 'master' to 'main' per Khronos policy HOT 2
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 collada2gltf.