Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for models without indices ? #14

Closed
fabrobinet opened this issue Mar 19, 2013 · 7 comments
Closed

support for models without indices ? #14

fabrobinet opened this issue Mar 19, 2013 · 7 comments
Assignees

Comments

@fabrobinet
Copy link
Contributor

We agreed to start conservative by doing so, though we are aware it can be not convenient for points. Keep track of this here for now.

@fabrobinet
Copy link
Contributor Author

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.

@fabrobinet
Copy link
Contributor Author

I mean YES COLLADA models have indices, but we still need to decide if we adjust.

@pjcozzi
Copy link
Member

pjcozzi commented Mar 20, 2013

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.

@pjcozzi
Copy link
Member

pjcozzi commented Apr 18, 2013

Since the spec already states that glTF requires indices, can we close this? #60 tracks updates to the converter.

@ghost ghost assigned pjcozzi Apr 18, 2013
@fabrobinet
Copy link
Contributor Author

Indeed, this issue as been around and discussed for a while, we agreed since the beginning on requiring indices. Let's close.

@mlimper
Copy link
Contributor

mlimper commented Sep 16, 2015

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?

@pjcozzi
Copy link
Member

pjcozzi commented Sep 16, 2015

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.

donmccurdy pushed a commit to donmccurdy/glTF that referenced this issue Sep 20, 2021
…ta-v2.1

EXT_feature_metadata: Simplify references to tables, textures, and IDs
elalish pushed a commit to elalish/glTF that referenced this issue Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants