Comments (7)
Patrick initial question was: "Do all COLLADA models have indices or do we need to adjust the statement about drawArrays
above? Or make changes to the converter?" . I would say YES.
from gltf.
I mean YES COLLADA models have indices, but we still need to decide if we adjust.
from gltf.
Although I also have use cases with points, triangle strips, triangle fans, line strips, etc., I am OK with requiring indices until we get significant community feedback otherwise. Here the current language I have in the spec:
To reduce burden on the application developer, glTF does not include all the flexibility of the GL APIs. Features not relavant to assets or in widespread use are not included, especially if they can be supported in the content pipeline. For example, in glTF:
- ...
- Geometry is defined with indices, implying drawElements, not drawArrays, should be used to issue draw calls. This is because most assets are defined with indexed triangle lists and triangle soup, strips, and fans can be converted to indexed triangle lists in the content pipeline.
from gltf.
Since the spec already states that glTF requires indices, can we close this? #60 tracks updates to the converter.
from gltf.
Indeed, this issue as been around and discussed for a while, we agreed since the beginning on requiring indices. Let's close.
from gltf.
requiring indices until we get significant community feedback otherwise. Here the current language I have in the spec:
Here's some community feedback :-)
Since release 1.0 is coming closer, I just wanted to ask if it really makes sense to force the "indices" property?
It would help to use non-indexed data even for some cases where you render triangles, for example when using flat shading (since the per-face normals require you to duplicate vertices anyway, you'll end up without any re-use of data).
This seems like a quick win, by just defining indices to be an optional property... or would that cause problems?
from gltf.
I agree that indices should not be required. I think we need to tweak the spec a bit, but I haven't looked closely. See #60 (comment)
Let's continue the conversation in that issue.
from gltf.
Related Issues (20)
- Question about Accessor's Min-Max bounds with normalized data. HOT 1
- Undefined behaviour in KHR_materials_volume HOT 10
- 3.7.3.3 how many non-zero weights per vertex HOT 1
- 3.7.2.1 COLOR_0 is special? HOT 1
- KHR_materials_clearcoat Fresnel should not influence material emission HOT 4
- Request for MANYFOLD vendor prefix HOT 1
- Visibility function glyph not rendered in PDF HOT 3
- EXT_mesh_gpu_instancing: used vs required?
- Clarify anisotropy usage HOT 9
- Bone Animation, not using Skinning HOT 4
- Tool to remove skin bind matrices from glTF file and resave? HOT 8
- In KHR_texture_transform extension, uv should be "fract" before transforming? HOT 7
- Add TRACE vendor prefix
- Animations: Channel samplers sync HOT 4
- Poor LaTeX in Appendix C (Interpolation)
- Inconsistent object field naming in Material for generic properties HOT 7
- 形态键和动画不同步 HOT 1
- Feature Request to add a "Unit" variable to GLTF HOT 10
- Clarify animation channel target path validity HOT 3
- Optimization Strategies for Reducing Texture Bindings and Draw Calls in glTF Rendering 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 gltf.