Kitty Corp Meow Mix Forums

Help & Tutorials => Model Tutorials => Topic started by: Eternal Yoshi on December 26, 2013, 12:51:39 PM



Title: Reimporting and Optimizing models with the new Brawlbox
Post by: Eternal Yoshi on December 26, 2013, 12:51:39 PM
What you need

Just the new Brawlbox (Brawlbox 0.71)here:
http://forums.kc-mm.com/Gallery/BrawlView.php?Number=35494 (http://forums.kc-mm.com/Gallery/BrawlView.php?Number=35494)

So yeah the new Brawlbox has a working tristripper. This means that there will no longer be any redundant facepoint additions and inflated file size and lag. There's another important feature that I don't want overlooked that will also reduce lag and file size. You see weights in most of our character rigs are way too specific which causes the node count and file size to go way up. Believe it or not, too many nodes can cause just as much lag as too many facpoints. Now there's another feature that makes tristripping stages easier, but let's cover characters first.

Let's take my Solidus model.

(http://i.imgur.com/0gje5kk.png)

As you can see, despite the fact that the model has less than 20,000 facepoints in Max, it has 35,238 facepoints, which is way too much for a character.

Now if you have a .dae before you imported the character, import that using the new Brawlbox. If not, export using the newest Brawlbox and reimport using the new BB. Here's a pic of the settings I recommend.

(http://i.imgur.com/33GHFNu.png)

Lemme explain why one by one.

- We want to force floats on all the 3 top options so that Metal Material maker does not Malfunction, as with previous versions.

- We need to make sure all objects have color nodes, even if the model doesn't depend on them. These settings make sure the color node doesn't affect the model in any way.

- The Material settings are open to interpretation. This depends on you. Keep the Remap Materials on true to avoid redundant Materials.

- Now leave the first 4 settings be if you're importing a character. The last one is weight precision. You see, Brawl rigs tend to not be that specific and never be anything more specific than the nearest 0.05. If we leave this any more specific, we end up with unecesarrily specific weights that waste space and up the node count, too many of which can lag the game. This value makes them optimal without sacrificing the rig. While you can go higher and further lower the node count, this can make the deformations and bending of the rig look bad.

- Now for the Tristripper option; leave them as is for good results. Modifying the cache size may slightly lower the final facepoint count, but it's not a guarantee. 30 is fine generally, though 52 is also recommended.

(http://i.imgur.com/XJ7pjSL.png)

Note that the facepoint and node count are much lower than before without compromising the model's geometry or anything.

Now we can restore the Materials and Shaders using the new Brawlbox(This part takes much longer than advertised) or whatever method you have. If you're reimporting a model that was encoded and completed in a previous Brawlbox revision, you can export and replace the Shaders/Materials with the new Brawlbox.

For stages, there's a more efficient method.
Let's use my VR stage.
(http://i.imgur.com/d4Fh4aF.png)
We can simply go to the mdl0 directly and open up the Object section. Then CTRL + P or Right Click > Optimize to bring this up.

(http://i.imgur.com/R6sXnmJ.png)
Then press OK. Repeat for all the objects. Keep in mind that the facepoint count doesn't update until you save and close.

(http://i.imgur.com/QuSASea.png)
This optimizer doesn't affect node count. Stages don't really have a lot of node counts so they aren't really an issue.

If you have any further questions regarding this, ask here.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Nezha B. Rose on December 26, 2013, 12:58:41 PM
Nice! Thanks! Will do this for most of my stages.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Nasca Corp on December 28, 2013, 01:17:03 PM
Thanks!! usefull with the lag models, maybe now i can have double polygon and make a good outline without lag??? its possible with this? thks!!!


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Linnom on January 05, 2014, 02:19:30 PM
(http://img836.imageshack.us/img836/8784/70zw.jpg)
I'm followed your instructions and the model look like this, what i did wrong?

Okay, i already fixed that problem, but the model appear too dark in game, there's a way to fix this lighting problem?

(http://imageshack.com/a/img10/1724/nc93d.jpg)


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Eternal Yoshi on January 05, 2014, 06:46:41 PM
If your model is too dark in game check the settings of the color node. If it's not 128/128/128/255 then it will likely be darker than it should be. IF it's still too dark then raise it to something like 150/150/150/255.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Linnom on January 05, 2014, 09:39:01 PM
I tried this but is still dark, even in 255/255/255/255 still dark, i don't know what to do.  :'(


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Nasca Corp on January 05, 2014, 09:55:17 PM
I tried this but is still dark, even in 255/255/255/255 still dark, i don't know what to do.  :'(

Dude check that the remap materials are on "true" and cull mode on "inside" and remap colors "true"


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Linnom on January 06, 2014, 08:12:43 PM
The shader and material maybe is the problem, how is the best way to export and import them in BrawlBox?


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: DoctorFlux(Mariodk) on January 12, 2014, 10:32:40 AM
what should i do
if each time i Save a model in brawlbox 0.70/0.71 for make lower filesize
the model lose all of the bones (trying to do it with a Brawl mario model with afew edits imported from 3ds max to brawlbox)


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Eternal Yoshi on January 12, 2014, 12:47:30 PM
That's very strange.... did you modify the boneset in any way in a Brawlbox revision?
If so, I recommend not doing that and making your boneset modifications in 3DS Max instead.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: DoctorFlux(Mariodk) on January 12, 2014, 03:22:32 PM
That's very strange.... did you modify the boneset in any way in a Brawlbox revision?
If so, I recommend not doing that and making your boneset modifications in 3DS Max instead.
i did that
merged Cape bones/polygon(the Side-B article model on brawl mario psa) on mario model with a hammer
but the mario model was to 3ds max (via BB0.68) since i have to do UV edits and afew other things only possible in 3ds max and then imported back with BB 0.71


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Linnom on January 17, 2014, 10:04:54 AM
I still don't know how to fix the shaders after the import, anyone know a good way to do this?


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Eternal Yoshi on January 17, 2014, 10:18:45 AM
If exporting and replacing from the older model won't do, you need to go through the shaders and materials of the reimported asset and modify the settings yourself one parameter at a time to perfectly replicate the old shader.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: GotHunch on January 18, 2014, 02:13:13 PM
I tried this, but it mostly seemed to ruin my textures:
Before
(http://i129.photobucket.com/albums/p215/Blue_Lime/Mansion2_zpsa82cb214.png)
After
(http://i.imgur.com/H2MsfeK.pngp)

Can anyone tell me what happened and how I can fix it? I noticed Linnom had a similar problem and was able to fix it by himself, but I can't figure out how...

EDIT: Also, I can't get the import settings box that is shown in the first post to appear...


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Eternal Yoshi on January 18, 2014, 11:34:14 PM
You DID edit the Shaders and Materials after reimporting right?
You didn't just reimport, save and quit right?
Cause this is what happens when you don't check the Materials and Shaders.

An alternate idea would be to export the Materials and Shaders from the old model and put them in the reimported one.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: GotHunch on January 19, 2014, 02:42:03 AM
It's what I did, yes, my apologies. I missed the paragraph where you describe replacing the materials completely.

I tried fixing it by replacing all the Materials from the old model and putting them over the reimported one, but that just froze my game when I tested it.

I also tried the more efficient method for stages by optimizing the objects in an old version, but that gives me the same distorted result...


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Eternal Yoshi on January 19, 2014, 03:29:39 AM
Then you will have to rebuild the material and shaders from scratch without replacing and exporting.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Linnom on January 19, 2014, 10:26:12 AM
How is the best way to rebuid the material and shaders, can i do this in Brawlbox?


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Eternal Yoshi on January 19, 2014, 06:07:49 PM
Yes you can do this in Brawlbox. I would recommend opening 2 instances of BB; one of the old model and the other with the new model and copy the values of the Materials AND Shaders one by one.


Title: Re: Reimporting and Optimizing models with the new Brawlbox
Post by: Linnom on January 19, 2014, 07:12:18 PM
Thanks, i will try!