Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is it possible to have 2 or more index buffers when creating custom mesh with Qt 3D?
Rayterex last edited by
I have two different buffers, one containing vertex coordinates and second one containing vertex normals. In most cases they are organized the same so I can use one index buffer, but is it possible to use 2 different index buffers if data is organized somehow different?
I would like to do something like
custom_geo.addAttribute(vtx_pos_attribute) custom_geo.addAttribute(vtx_pos_index_attribute) custom_geo.addAttribute(vtx_normal_attribute) custom_geo.addAttribute(vtx_normal_index_attribute)
but I think that my second index attribute just overrides previous one. Anyone has any idea how to fix this?