**With this part of the tutorial i will now explain how to hitbox your models in 3ds max along with adding moving hitbox parts for your ships and stations.
The tools you will need for this part of the tutorial are.
- Havoc Content Tool
- Schmakâs OBJ -> Sur tool
- A Hex editor of your choice
- DB software - CRC hash calculator
I have supplied a link to all the tools you need (i have also given a trial version of hex workshop just to show how this is done. but you will need to find a free version for yourself at a later date or buy hex workshop) for this tutorial i will be using a trial version of âHex workshopâ**
This link is for the Havoc content tools -
http://www.mediafire.com/?46oyg292mz2l10h
This link is for the rest of the applications you need -
http://www.mediafire.com/?51rtq718xb919l5
(1) Install everything you need to install (hex workshop + havoc content tools)
(2) Open up your model, click the âutilitiesâ button at the right of the screen (1), click the More button (2) a window will pop up select the Havoc Convex Hull Utility. (3) Once you have done that a section will appear on the right roll out scroll down to find it it should read something like.
Max verts
Samples per step
number of steps
Generate Hull
Refferance Image shown below -
http://i54.tinypic.com/317egqd.jpg
(3) Once you have done that set your Convex hull utility to the following settings
Max Verts - 64
Samples Per Step - 10
Number of steps - 5
(4) Delete the parts of the model that you wish to animate. In this case i will be deleting Docking clamps on the side of my station. I know what you are all thinking. âWHY! WHY DO I NEED TO DO THIS!?â all will be explained later on. Just make sure you dont save your model by the end of this or you will need to remake your doors/clamps/whatever.
Referance Image shown below -
http://i51.tinypic.com/2h5i1ih.jpg
(4) Ok now its time for us to start creating the hitbox (cheers) Just like the way i detached the dish in my previous tutorial Select the polygon tool (1), Highlight the area you wish to detach (2) and then hit the detach button (3), Please note that when detaching objects for hitboxing keep them simple. You can detach as many times as you like so to keep a nice tight fitting hitbox keep the objects simple.
For this part i will make a couple of images and show you how i am splitting my model up.
Referance Image shown below -
Ok, another tip i would give is to right click the view port and select âHide unselectedâ This way you get rid of the stuff you have detached and it helps you get around your model.
(5) Ok once you have split up your model into the proper chunks, Its time to start creating our convex hull. Select one of your groups (1) Click the Utilities button once again (2) And then hit the Generate Hull button (3). You will see a horrible colour appear over your group. Just hit the delete key and you will be left with your convex hull. Repeat this for all of your groups! until you are left with something like the image below (4).
Referance Image shown below -
(4) Note - Notice all those different colours. Thats all the pieces i have split my model into. All of which are simple little shapes. Try and mimic that as much as possible or get even more intricate with the process
(6) Ok once we have done that hit âCTRL+Aâ hit the group drop down at the top, Group the model together it does not matter what you name this just click ok. Click the Rotate button at the top of the screen (1) And Rotate the model 180 Degrees (2)
Referance Image Shown Below -
http://i56.tinypic.com/x3si01.jpg
(7) Ok once you have done that select the move button (1) and then right click it. A window will pop up with 2 sets of XYZ coordinates Put 0 in all of these boxes and then hit ok (2)
Referance Image shown below -
http://i54.tinypic.com/zbmfn.jpg
(8) ok click on your model and then goto Group -> Ungroup. Now that we have done that we can export the model. Click File -> Export Select the file type âWavefront OBJâ and match your setting to the image below. Also name the model the same name as the CMP you are making a sur for.
Referance Image Shown below -
http://i56.tinypic.com/2ynqvxc.jpg
(9) Ok now open up Schamks OBJ -> Sur converter, Browse for the .obj file you just exported and select it. make sure the box you can type in is set to 5,0 and both of the other options are unticked and then click âGo!â
Congratulations folks, you have created a tight fighting hitbox!? With absolute ease.
(10) Ok now for adding in your parts of the hitbox you wish to move along with your animation. Open up your model once again in 3ds max. And delete the MAIN model this time leaving your groups you wish to animate.
(11) ok now in my case i am left with 6 clamps. Delete all but one of the clamps that you need. Leaving you with one group.
Referance Image Shown Below -
http://i56.tinypic.com/4vpua0.jpg
(12) Once we have done that we need to goto âutilitiesâ and then Generate Hull, Delete the old group leaving your convex hull.
Referance Image Below -
http://i56.tinypic.com/34or4mg.jpg
(13) Ok now select your Single clamp/door/dish. And then right click the move button at the top. Same as last time Put â0â in all of the boxes and hit ok. Once you have done that Export the file as a .obj, Open up Schmaks OBJ -> SUR converter. Browse and select the piece you just exported and then hit âGo!â
(14) Ok now for the tricky part (this could get confusing so please just bare with me. Its still easier to do than the old Sur splice method) Open up the CRC calculator and type in âRootâ at the top without the quotations ofcourse (1). note the number inside the unsigned CRC sections (2).
Referance Image Shown Below -
http://i56.tinypic.com/2e2qnhd.jpg
(15) ok now open up the hitbox piece you just exported with Hex workshop and hit âCTRL + Fâ now here is the confusing part. Remember that unsiged CRC number i told you to take note of in the CRC calculat? i need you to put that number in the Value box but in reverse. I shall show you what i mean in the image below.
Referance Image Shown below -
http://i55.tinypic.com/2wchch5.jpg
(16) Once you have done that hit ok. And it will highlight a set of numbers â-.h.â from that number i need you to highlight EVERYTHING below it including the code. The only part that should not be highlighted is âversâŚ@â
Referance Image shown below -
http://i51.tinypic.com/nfj2r.jpg
(17) Copy everything you have highlighted and then hit âCTRL+Aâ to highlight everything DELETE everything then hit âCTRL+Vâ to paste what you have copied. It will come up with some mumbo jumbo message just say yes. And save your file.
(18) Once you have done that go back into your CRC calculator and in the box Type the name of your component.
THIS MUST MATCH THE NAME YOU GAVE THE GROUP IN 3DS MAX. If i was to give my previous tutorials model a hitbox i would name the component âDish.revâ But in this instance since i am hitboxing the station. I will be calling it Clamp03.rev. I cannot stress enough how important it is that you match the names TO THE LETTER. Or this will not work and you will screw your hitbox.
Referance Image Shown Below -
http://i54.tinypic.com/30j20zs.jpg
(19) Once you have done this Go into Hex editor and hit âCTRL+Hâ
In the find box. Type in your reversed âRootâ code in (2d8f6812). And in the Replace box put the name of your pieceâs unsigned crc code in reverse. In this instance Clamp03.rev = Unsigned CRC = (4a6ca5f4)
Referance Image Shown Below -
http://i52.tinypic.com/16775sw.jpg
(20) Once you have done this hit ok. A screen will come up saying Find next, Find previous blargh blargh. Hit âReplace Allâ and then save the file, once you have saved the file hit âCTRL+Aâ again and then copy all the writting. Now open up the hitbox you wish to add this piece to. In this instance i will be opening up the âdsy_small_Station.surâ
Paste the information you just copied previously. to the VERY BOTTOM of the currently opened file. Save the file.
And HEY PRESTO!?
Referance Image Shown Below -
http://i53.tinypic.com/2s9ywc5.jpg
You have just added an animated, moving piece to your sur. Just rinse and repeat steps â10 -> 20â if you wish to add more. and you will be done in no time!
**And with this my 3DS FL modding 101 tutorial is complete. I hope you all had a good time reading these tutorials and i hope they have helped everyone get their heads around getting your models setup. If there is any questions feel free to pm me on the forum, on skype or on here.
Thank you
Credits:
W0dka - For creating the CMP exporter
That idiot Silent Assassin (my brother) - for creating the CMP exporter
Schmakbolzen - For creating the OBJ2SUR exporter**