ospray / anari-ospray

Translation layer from ANARI to OSPRay, ANARILibrary and ANARIDevice "ospray".
Apache License 2.0
17 stars 5 forks source link

Incorrect triangle geometry index type #8

Closed jeffamstutz closed 1 year ago

jeffamstutz commented 1 year ago

triangle geometry should accept ANARI_UINT32_VEC3 indicies, but requires OSPRay's mesh geometry indexing with VEC4.

Error message with valid geometry:

[ERROR][(nil)] ospray::Mesh must have 'index' 1D array with element type vec4ui
tarkpate commented 1 year ago

Hi, the Ospray Mesh supports both vec3ui(tri mesh) and vec4ui(quad mesh) which map to the Anari vector types. The example "instanced_cubes" uses triangle meshes. The error message when neither were present failed to mention vec3ui. I've opened a PR on the Ospray repo to address this.