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
so i'm like "yeah, i can plug my own vertex format too!", but when i look at the FromRawVertex trait, i see this:
pubtraitFromRawVertex<I>:Sized{/// Build vertex and index buffer from raw object data.fnprocess(vertices:Vec<(f32,f32,f32,f32)>,normals:Vec<(f32,f32,f32)>,tex_coords:Vec<(f32,f32,f32)>,polygons:Vec<Polygon>,) -> ObjResult<(Vec<Self>,Vec<I>)>;}
and the vertex from raw conversion in done in an opaque way inside the library, so if I wanted to implement my own vertex format, I would have to re-write all this conversion code myself or copy-paste it from the source.
A better way support user-defined custom vertex formats would be proving a trait like:
As of current version, the loading interface looks like this:
so i'm like "yeah, i can plug my own vertex format too!", but when i look at the
FromRawVertex
trait, i see this:and the vertex from raw conversion in done in an opaque way inside the library, so if I wanted to implement my own vertex format, I would have to re-write all this conversion code myself or copy-paste it from the source.
A better way support user-defined custom vertex formats would be proving a trait like:
that can be used convert each vertex individually, then have a standalone conversion function like:
Maybe i'm missing some stuff, but that's what I understood so far.
The text was updated successfully, but these errors were encountered: