3DS Max8 Fun Created 16 years ago2007-05-26 17:23:44 UTC by Rimrook Rimrook

Created 16 years ago2007-05-26 17:23:44 UTC by Rimrook Rimrook

Posted 16 years ago2007-05-26 17:23:44 UTC Post #223522
I wrote a short tutorial length pm to Zami90 explaining how to decompile and recompile a modified version of the model. I figured everyone should know it and this is what I wrote.

After you install and unpack the tools, here's is how you start. For example, we will use the common crowbar replacement. Lets say we're giving the player a sword instead. (The item could be anything you modeled, so be creative.)

So you take the v_crowbar.mdl from pak0 or the steam gcf file. Put this compiled model into the folder with the modeldec tool in the decompiler's folder. Its best to make a folder and call it 'crowbar' or something similar because when you drag and drop the v_crowbar.mdl file onto the modeldec file, it will break it apart and give you a load of files. Move them all to the folder you created. If you don't and decompile another model, the files can and will save over one another. So stay a little organized.

You should have a seperate folder for YOUR custom models so don't save over the originals in the decompiler folder. In your folder, move ALL of the decompiled files to your new folder. Now we will make some changes.

Now that you have a load of model SMD's and such, open max and choose import from the file menu. You can bring in any SMD you see, but most of them are animation files. What you need is the REFERENCE model, which is crowbar_reference.smd file.

Importing it will place it in max with the bones and textures (if you select them to be imported, they might be out of order) If you have any modelling experience, it should be easy to delete just the crowbar from the hands an import your new sword model and line it up with the hand. Once you've done that, it will require some beginner level rigging skills to bind the sword to the same bone the hand is bound to.

Now we export it to the smd format. A dialog will appear asking what kind of smd it is, either animation or reference. This is the reference so save it as one.

Save over the reference smd in your custom model folder and your done with max for now. Also, move any texture files used to that folder as well, like the textures for the sword for example.

Within your model's folder, there is a QC file. If you haven't change the names or added any animations, we don't need to change this. So let open up the compiler GUI and load the QC from your model's folder into it. Hit compile and a new v_crowbar.mdl will appear in that folder. If there is any error, it will be explained.

The most common error is "Can't find NULL.bmp" This happens when a model has a face or a polygone that has no texture applied to it. If you can find it in max, it is safe to make a small 16x16 all black texture named null and place in your model's folder.

Another one is when it compiles fine, but the faces are inverted. This happens frequently when you clone and flip objects. Its always a good idea to test you models by compiling them before you finish them.

CHROME was tricky to figure out, if you want chrome on a model but it looks flat and not shiny, that's because you need a smoothing group applied to those faces. Smooth is a modifier in max that will give you the options to do that easily.

Also, making a model with a crazy amount of textures, bones, and polygons will give you a max size error. I don't know the limits, but they are there. I've only enountered this error once, so its not much to worry about.

I hope this helps. I can answer idividual questions if you have any.

If you have a model, showcase it here!
Rimrook RimrookSince 2003
Posted 16 years ago2007-05-27 05:43:57 UTC Post #223557
Somewhere round 2048 is the poly limit for HL models, but i sometimes went over it(random number i would almost say).

I believe the framelimit is somewhere round 255 par animation.

Also not that some models do not have a file named reference(namely the MP5) so you might need to find out wich one does not have the animations.
Posted 16 years ago2007-05-27 16:50:27 UTC Post #223619
Rim, i just imported a object, a 3ds file, wich does not contain any materials or bones, only vertexes and faces, but i cant assign any smoothing groups to it, even though it says all of the objects are edit mesh(and i can select the faces). I did UVmap and texture the complete object in G-max, but that shouldnt cause any problems.
Posted 16 years ago2007-05-27 22:21:10 UTC Post #223642
are you using the smooth modifier? it usually works for me unless there is a glitch with the model, which is really possible because of the way modifiers are combined with filetypes.
Rimrook RimrookSince 2003
Posted 16 years ago2007-05-28 03:25:46 UTC Post #223650
Ah, i always sort that stuff in edit mesh. Completely forgot about the smooth modifier.

I collapsed everything before exporting, so i hope that isnt causing a problem.
Posted 16 years ago2007-05-28 04:39:14 UTC Post #223653
I found the error, the exporting did disconnect all of the vertexes, so i just had to weld them back with a low threshold.
Posted 16 years ago2007-05-30 15:49:23 UTC Post #223836
its good to collapse the whole model as much as you can, except for the boning part, that modifier needs to stay.

I need to write a really indepth tutorial.
Rimrook RimrookSince 2003
Posted 16 years ago2007-05-30 16:18:24 UTC Post #223846
or a video tutorial
hint hint
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2007-05-30 16:19:24 UTC Post #223847
sorry, not really an option at the moment, it might be later.
Rimrook RimrookSince 2003
Posted 16 years ago2007-05-31 03:17:30 UTC Post #223908
Well, i got it all to export now, fortunately. But im still stuck with how to animate, but im googling up some stuff on that though.
Posted 16 years ago2007-06-09 05:44:40 UTC Post #224802
The limit? Of polys?

I found an SMG replacement that was about 6000 polys.

By the way aren't some original HL models (Or High-Def, I'm not sure) over 2048 in poly count?
Posted 16 years ago2007-06-09 12:09:50 UTC Post #224809
i don't exactly know all of the specs for the model limits or the HL engine, but they are there.

You might stumble on one some day. :cyclops:
Rimrook RimrookSince 2003
Posted 16 years ago2007-06-09 14:02:42 UTC Post #224810
That makes me wonder... would it be possible in any way to break that limit with some sort of patch to the engine... or something that will let it disregard poly counts? continues to ponder...
Posted 16 years ago2007-06-09 14:15:06 UTC Post #224811
The engine source code has never been released by Valve, so that isn't possible.
The Mad Carrot The Mad CarrotMad Carrot
Posted 16 years ago2007-06-09 14:21:13 UTC Post #224812
Unless someone hacks it... :badass:
Posted 16 years ago2007-06-09 16:16:40 UTC Post #224813
Even so don't you think Valve tested it so the max was a good number of balance for all users?
Habboi HabboiSticky White Love Glue
Posted 16 years ago2007-06-09 16:36:58 UTC Post #224816
Yeah, one has to remember that the engine has limits for a reason.
Posted 16 years ago2007-06-09 22:11:26 UTC Post #224820
Yeah, one has to remember that the engine is elderly as hell by now.
Rimrook RimrookSince 2003
Posted 16 years ago2007-06-09 23:21:26 UTC Post #224822
True... something too nasty high-poly would probably give you ungodly FPS if not a nice little crash or something...
You must be logged in to post a response.