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

glTF2 'sparse' object has redundancy in its indices object #2365

Closed
ar-visions opened this issue Jan 25, 2024 · 1 comment
Closed

glTF2 'sparse' object has redundancy in its indices object #2365

ar-visions opened this issue Jan 25, 2024 · 1 comment

Comments

@ar-visions
Copy link

ar-visions commented Jan 25, 2024

... in gltf file, accessors field:
{
	"componentType":5126,
	"count":6442,
	"sparse":{
		"count":1425,
		"indices":{
			"bufferView":345,
			"componentType":5123 # <---  this, how could an index buffer ever be accessed in stride of another component type?  if its a INT16 for instance, it would always be invalid to access it by INT32 and vice versa
		},
		"values":{
			"bufferView":346
		}
	},
	"type":"VEC3"
},

The inclusion of componentType as well as the bufferView seems redundant, to me. I can't see a valid use-case for this. Is it the fault of Blender to export this? (This is Blender 4.0, which features major changes in its glTF2 export)

To me, it seems you always use the componentType of the bufferView..

@ar-visions
Copy link
Author

ar-visions commented Jan 25, 2024

Oh I didn't notice the binary nature of this bufferView -> buffer now. Closing. The bufferView does not have the componentType specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant