-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update RE5 mesh and material custom attributes #115
Conversation
Reserved values shouldn't matter at all but tests require them to be the same
- ValueError wasn't correct - Remove test for group reserved value
Now it uses vtype in materials_data
- remove unused vertex color import logic - expose 2 mesh flags, they probably do nothing but require investigation - revert serialization for Groups' reversed param
albam/engines/mtfw/texture.py
Outdated
3: "maskmap", | ||
4: "lightmap", | ||
5: "shadowmap", | ||
6: "additionalmap", |
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.
what is additional map? Is it original?
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.
The additional map is _AM, a black and white mask used in some stages for transparency
albam/engines/mtfw/texture.py
Outdated
@@ -57,6 +57,19 @@ class TextureType(Enum): # TODO: TextureTypeSlot | |||
SPECULAR_BLEND = 22 | |||
|
|||
|
|||
SYMBOL_TEX_TYPES = { |
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.
Instead of creating yet another mapping, wouldn't it better to add these to TextureType
?
It shouldn't break any non-re5 code since we don't use the number directly, just the name.
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.
I changed the logic in the last commit to use TEX_TYPE_MAP_2
dictionary, not sure is it the best idea
- {id: vdeclbase, type: u1} | ||
- {id: vdecl, type: u1} | ||
- {id: vertex_position, type: u2} # min_index | ||
- {id: num_weight_bounds, type: u1} # probably num of OABB boundng volumes |
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.
Nit: I think this was confirmed long ago, just with a bad name (there was a TODO to rename it), so the comment can be removed
- adress issues
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.
Just removing the dead code and checking the tex_types mapping and should be ready to merge. Let me know if you want me to do those changes myself
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.
Great job Henry!
No description provided.