-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add indices #60
Comments
These are actually types for mesh, and I must say I wasn't aware they can have 0 or 1 |
@fabrobinet are you saying that you believe that all primitive types in COLLADA require indices so that we might not have to do anything? (Except fix a COLLADA spec bug?) |
do we really need the 'strips' anymore? that's old school no? On Wed, Apr 17, 2013 at 11:00 AM, Patrick Cozzi [email protected]:
|
@RemiArnaud IMO, no not old school...why should we "unstrip" ? Stripped assets can be the result of long computation to squeeze indices size and make the walktrough indices more efficient, we should just pass through strips and preserve them. And..we are driven by WebGL/OpenGL specs, not our call to deprecate that. |
@pjcozzi Our plan was to have indices mandatory and wait for community feedback to see if we should relax this constraint for the ones willing to invoke drawArrays. But... I wasn't aware that COLLADA allowed non indexed primitives, and this surprises me a lot ! I was just wondering if that's a SPEC bug, anyhow I believe it is really a edge case. We should probably check other format like FBX, obj... before taking a decision |
+1 since these don't add any real burden to the client. This is just an enum passed to drawElements. However, I don't want to get too caught up in matching WebGL exactly; for example, I am really thinking about dropping |
:).. Agreed, I will not push for |
yes, both spec and schema says that is optional. if you have no in a primitive, that means that all the are in the element in other words, non indexed primitives would have an empty primitive element: |
@RemiArnaud Thanks for confirming that Remi. Are you aware of any exporter no using indexed primitive ? |
I have never seen a non indexed primitive out of an exporter so far. |
Yes, we thought about points too, but we can still work around with indices. |
(and consider all community feedback in the meantime, between feature complete and 1.0..) |
not sure why points should have indices, but also not sure glTF 1.0 need to Note: linked to the other discussion about removing 'indices' and using an On Tue, Apr 23, 2013 at 11:34 AM, Fabrice Robinet
|
IMO not having an indices property for non indexed is equally simple :). |
no as simple - instead of having to deal with all the glBindBuffers.. in the same loop (for all attributes), you have to do a special case in the code for the indices. |
it's a different target for VBO, so indices have to be a special case anyway. |
can you explain the VBO case please? |
For this issue, it sounds like we will need to add support to the converter to add indices even though we expect just about all COLLADA models to have indices in practice. Anything else? |
no that's about it, let's continue to track this on the converter side. |
OK 👍 |
@tfili how hard is this to add to the converter? Or perhaps we just not require indices in glTF, which would be trivial for the client, and better for point and line primitives. |
I'd have to look at the code but I don't think it would be that hard. But if it's easy for the client to support and had a benefit, why not allow it? |
I am OK with not requiring indices in glTF. @tparisi? |
Requiring indices for non-indexed is wasteful; remember we're also trying to be efficient for transmission. Do we have a clear proposal for non-indexed types? |
|
Within our SRC Paper, we used |
@mlimper are you suggesting that we simply make I think that would work just fine. Please confirm. |
Yes, confirmed! Thanks for the clarification. |
I updated the draft 1.0 schema in 740ac80. @tfili I'm leaving this issue open and labeled as @tparisi here's some text for the draft 1.0 spec (perhaps as an Implementation Note): PrimitiveEach |
@tparisi I'm leaving this open and labeled |
Discussed this with @tfili. It could be a few days due to an OpenCOLLADA issue so the converter work here may get pushed post 1.0 since these models are not common in the wild. |
Is there an OpenCOLLADA Pull Request ? |
@tfili I am fine with dropping the If you agree, please remove the label and update the wiki. |
@tfili can you confirm that we can close this now since |
No longer an issue. |
Change featureIds dictionary back to array
Since glTF requires indices (CC #14), the converter needs to add indices for non-indexed:
lines
linestrips
triangles
trifans
tristrips
See the Geometry section of the COLLADA spec
The text was updated successfully, but these errors were encountered: