-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor index buffers creation #431
Conversation
ab7e912
to
ae191a9
Compare
} | ||
|
||
// remove trailing empty LODs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gem holder looks normal in the model viewer so not sure if it breaks something there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though thinking again about how that code expects a sorted set of numbers I'm not sure why it works at all, resp. doesn't fail horribly.
use i8 buffers instead of i32 to save memory avoid creating empty LOD buffers use a List instead of a HashMap
Looks good to me. Is this only to fix the tangent generation warning (and bad data)? Was there anything else to this? |
It started simple by noticing we create int32 index buffers even though the source data is only int8. One more thing we could add to the naming improvements is taking the mesh name from the filename instead of the string saved in the kmf which is off for many MESH files. But we can also just leave it for now. |
No description provided.