Skip to content

The loaded Index data is different from the expected data. #272

@Vanish0314

Description

@Vanish0314

Issue Description

An error occurs with the index data when loading a model.

The loaded data is different from the expected data.

Here is the data loaded into memory:

Image

Taking the two triangles highlighted in red as an example, these represent all possible triangles in Blender that use vertex 3 as one of their vertices.

Image

However, the triangles constructed from the data parsed from the index buffer are as follows:

Image

Below is the variable data when loading the indices.

Code snippet @line2653:

if (index_component_size == out_component_size && accessor->stride == out_component_size)
{
	memcpy(out, element, index_count * index_component_size);
	return index_count;
}

Image

Steps to Reproduce

  1. Load the model file I provided.
  2. The error starts to appear from the second index buffer.

Model File

Bistro_Blender.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions