Skip to content
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 information for non-float model assets #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BrawlBox/NodeWrappers/MDL0/MDL0Wrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void NewMaterial()

public void AutoMetal()
{
if (MessageBox.Show(null, "Are you sure you want to (re)generate metal materials for Brawl?\nAll existing metal materials and shaders will be reset.", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
if (MessageBox.Show(null, "Are you sure you want to (re)generate metal materials for Brawl?\nAll existing metal materials and shaders will be reset.\nRequires ForceFloatUVs and ForceFloatNormals if any objects are rigged to multiple bones.", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
((MDL0Node)_resource).GenerateMetalMaterials();
}

Expand Down
6 changes: 3 additions & 3 deletions BrawlLib/Modeling/Collada/ColladaImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,11 +639,11 @@ public enum MDLType
[Category("Materials"), Description("The default setting to use for material culling. Culling determines what side of the mesh is invisible.")]
public CullMode MaterialCulling { get { return _culling; } set { _culling = value; } }

[Category("Assets"), Description("If true, vertex arrays will be written in float format. This means that the data size will be larger, but more precise. Float arrays for vertices must be used if the model uses texture matrices, tristripped primitives or SHP0 morph animations; otherwise the model will explode in-game.")]
[Category("Assets"), Description("If true, vertex arrays will be written in float format. This means that the data size will be larger, but more precise. Float arrays for vertices must be used if any object is rigged to multiple bones (no single bind) or animated by an SHP0 animation.")]
public bool ForceFloatVertices { get { return _fltVerts; } set { _fltVerts = value; } }
[Category("Assets"), Description("If true, normal arrays will be written in float format. This means that the data size will be larger, but more precise.")]
[Category("Assets"), Description("If true, normal arrays will be written in float format. This means that the data size will be larger, but more precise. Float arrays for normals must be used if any object is rigged to multiple bones (no single bind) or animated by an SHP0 animation.")]
public bool ForceFloatNormals { get { return _fltNrms; } set { _fltNrms = value; } }
[Category("Assets"), Description("If true, texture coordinate arrays will be written in float format. This means that the data size will be larger, but more precise.")]
[Category("Assets"), Description("If true, texture coordinate arrays will be written in float format. This means that the data size will be larger, but more precise. Float arrays for texture coordinates must be used if any object uses at least one texture matrix.")]
public bool ForceFloatUVs { get { return _fltUVs; } set { _fltUVs = value; } }

[Category("Color Nodes"), Description("If true, color arrays read from the file will be ignored.")]
Expand Down