Skip to content

Collada Loader does not set BufferGeometry.index #13708

@gkjohnson

Description

@gkjohnson

The ColladaLoader doesn't ever set the triangle indices of a BufferGeometry, even though they're provided by the Collada format, causing the resultant geometry to be less memory efficient than it could be.

Here is where the attribute arrays are expanded.

Possible Solution

I imagine the reason this is being done is because the the format can describe 3 or 4 (or n?) sided polygons. However, I think a more efficient approach might be to expand the quads in the index array and leave the attribute buffers provided as they are in the file. It could happen in this this function, for example.

Thoughts? I'm less familiar with this file, so there may be a slew of other reasons why this is here that I'm unaware of. I don't know if joint weights effects would be affected, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions