You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let vertices = mesh.attribute(Mesh::ATTRIBUTE_POSITION)?;
let indices = mesh.indices()?;
If mesh.indices() doesn't exist, function returns None.
Turns out, indices can be absent from glTF, and the file will still be valid. In this case, bevy Mesh wouldn't have any indices either (but bevy would display it just fine). You can search the internet by keywords "unindexed mesh gltf", and it's full of bug reports about lack of support from various projects...
I'm using osm2world, and it turns out that it generates unindexed meshes, so... Any ideas how to implement it?
The text was updated successfully, but these errors were encountered:
rlidwka
added a commit
to rlidwka/bevy_rapier
that referenced
this issue
Apr 2, 2024
bevy_rapier/src/geometry/collider_impl.rs
Lines 739 to 743 in 6aa960b
If
mesh.indices()
doesn't exist, function returns None.Turns out, indices can be absent from glTF, and the file will still be valid. In this case, bevy Mesh wouldn't have any indices either (but bevy would display it just fine). You can search the internet by keywords "unindexed mesh gltf", and it's full of bug reports about lack of support from various projects...
I'm using osm2world, and it turns out that it generates unindexed meshes, so... Any ideas how to implement it?
The text was updated successfully, but these errors were encountered: