Greetings!

Welcome to Scifi-Meshes.com! Click one of these buttons to join in on the fun.

Blender - Weapons with Multiple Collision Objects for TES4:Oblivion

LHammondsLHammonds0 Posts: 0Member
Blender Version: 2.46
Blender NIF Scripts Version: 02.3.3
PyFFI Version: 00.10.9
NifSkope Version: 01.0.10

Add a cylinder collision model for the length of the sword (normally the handle and blade)
  1. Place the 3D cursor at 0,0,0 by pressing Shift + C and press 1 to set your view to the Front.
  2. Press SpaceBar --> Add --> Mesh --> Cube
  3. Press F9 (Editing View), change the Mesh (ME) and Object (OB) name from "Cube" to "Cylinder"
  4. Press F7 (Object View), change Drawtype from "Shaded" to "Bounds" and the dropdown under Draw Extra from "Box" to "Cylinder"
  5. Press 3 (Right View), press R, 90, ENTER which will rotate the cylinder 90 degrees and should match the handle fairly close.
  6. Press TAB for edit mode and adjust the edges of the box so they closely cover the handle and possibly even the blade if it is straight enough. Be sure not to deform the box such as only moving one vertex...must move entire sides of the box along the x, y or z plane by selecting the verts and starting the grab mode and selecting a axis to move on (example: g, y, move mouse)
  7. Press TAB to exit edit mode and with the collision model still selected, press F9 (Editing View) and click the button called "Center New" in the Mesh panel.
  8. Press F4 (Logic View), click "Actor", "Dynamic", "Rigid Body"
  9. Change Mass from 1.00 to 25.00 (or however many pounds you think the object should weight.
  10. Change Radius from 1.00 to 0.2 (or whatever the max size of the object radius is)
  11. Click "Bounds" and "Cylinder" should already be selected.
  12. Click "Add Property", change "Float" to "String", change Name from "prop" to "HavokMaterial", add "HAV_MAT_METAL" and press ENTER.
  13. Press A to deselect all objects.
Add a cylinder collision model for the width of the sword (normally the crossguard)

NOTE: This keeps it from rolling down a hill like a coke can.
  1. Place the 3D cursor at 0,0,0 by pressing Shift + C and press 1 to set your view to the Front.
  2. Press SpaceBar --> Add --> Mesh --> Cube
  3. Press F9 (Editing View), change the Mesh (ME) and Object (OB) name from "Cube" to "Cylinder.001"
  4. Press F7 (Object View), change Drawtype from "Shaded" to "Bounds" and the dropdown under Draw Extra from "Box" to "Cylinder"
  5. Press press R, 90, ENTER which will rotate the cylinder 90 degrees and should match the crossguard fairly close.
  6. Press TAB for edit mode and adjust the edges of the box so they closely cover the crossguard. Be sure not to deform the box such as only moving one vertex...must move entire sides of the box along the x, y or z plane by selecting the verts and starting the grab mode and selecting a axis to move on (example: g, x, move mouse)
  7. Press TAB to exit edit mode and with the collision model still selected, press F9 (Editing View) and click the button called "Center New" in the Mesh panel.
  8. Press F4 (Logic View), click "Actor", "Dynamic", "Rigid Body"
  9. Change Mass from 1.00 to 25.00 (or however many pounds you think the object should weight.
  10. Change Radius from 1.00 to 0.2 (or whatever the max size of the object radius is)
  11. Click "Bounds" and "Cylinder" should already be selected.
  12. Click "Add Property", change "Float" to "String", change Name from "prop" to "HavokMaterial", add "HAV_MAT_METAL" and press ENTER.
  13. Press A to deselect all objects.
  14. Press Ctrl + W to save your model.
  15. Press A to select all objects.
  16. Click File, Export, NetImmerse/Gamebro (*.nif,*.kf)
  17. Type an appropriate name such as CustomSword.nif and click "Export NIF/KF"
  18. Set the following options on the NIF Export screen:
    • Click the "Oblivion" button (if not already set)
    • Click the "Weapon" button on the top-right
    • Scale Correction: 10.00
    • Depressed: Export Geometry Only (.nif)
    • Depressed: Force DDS Extension
    • Depressed: Stripify Geometries
    • Depressed: Smoothen Inter-Object Seams
    • Depressed: Metal
    • Mass: 25.00 (or however many pounds it should be)
    • Depressed: Solid
    • Depressed: Use bhkListShape
  19. Exit Blender
  20. Open your exported NIF with NifSkope
  21. Click the Render menu and make sure "Draw Havok" is enabled.
  22. Click the View menu and make sure the following are enabled: Block List, Block Details, Show Blocks in Tree
  23. Expand NiNode --> bhkCollisionObject --> bhkRigidBody --> bhkShapeList
  24. Select each bhkCapsuleShape and adjust the Radius value as necessary to size the object correctly
  25. Save the model and close NifSkope

When adding a HavokMaterial, you can use various settings depending on your situation but here are the most common options (type of material and sound it will give off when dropped)
  • HAV_MAT_STONE
  • HAV_MAT_GLASS
  • HAV_MAT_METAL
  • HAV_MAT_ORGANIC
  • HAV_MAT_WOOD
  • HAV_MAT_HEAVY_STONE
  • HAV_MAT_HEAVY_METAL
  • HAV_MAT_HEAVY_WOOD
  • HAV_MAT_CHAIN

Tutorial Source

Have fun,
LHammonds
Sign In or Register to comment.