-
Notifications
You must be signed in to change notification settings - Fork 472
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
EXT_mesh_features Clarification: How many feature ids does an indexed geometry have when ids are implicitly derived? #763
Comments
The IDs are given by the indices of the vertices (and not by the 'indices' that are used for defining the topology). In your image, this is the case on the left hand side. There are 4 unique IDs in this case. (When two triangles share one vertex (position), then this vertex will have to be duplicated when it has different normals or texture coordinates in both triangles, and consequently, may then also have different feature IDs. But generally, the ID is the 'index in the vertex attribute array', so to speak. This does raise some further questions about how to handle these IDs within a triangle - related to #764 ). |
Great thanks - this lines up with what Also, as an aside, is there a notional use case for why this kind of implicit id generation exists? How would it be used in practice? It doesn't seem super useful to me. |
The two main use cases are Probably less likely to see it for triangles and lines. |
Got it - instanced models makes sense. What's the more concrete use case for having a unique id for every point, though? I'm imagining point clouds with potentially millions of points - it makes a lot more sense for points to be grouped by common features in this case (ie all the points that make up a scanned tree). Are points being used as location identifiers, for example? Named restaurant or building locations like in Google Maps, for example? Just trying to make sure I understand the cases where these features are used. |
Yes, annotations are one of the main use cases for implicit feature ids for points. |
I think that the main question is answered here, and assume that this can be closed. (There are related questions like #764 that have to be addressed independently) |
Yup! Sorry I neglected to close it. The one thing I was going to mention is that it may be worth explicitly stating in the specification that the intended use case for these implicit feature ids is for use with point primitives. |
Hello! I had a question about the EXT_mesh_features specification - specifically this section describing what happens when vertex indices are implicitly used as feature ids:
The question is: When a geometry contains an "index" buffer that references and reuses vertex attributes - is the position in the "index" buffer used to derive the id? Or the index in the vertex attribute buffer? In other words, does a quad with 4 vertices and an index buffer defining two triangles have 4 unique feature ids? Or 6?
Thank you!
The text was updated successfully, but these errors were encountered: