Page tree
Skip to end of metadata
Go to start of metadata

Author: Läubi

Skill level: 

A Step by Step to create a fully functional building like the Westwood ones.

Important!! Read this tutorial carefully.

If something didn't work as you have expected it, check the corresponding part of the tutorial to make sure that you haven't missed a thing.

1. First of all, of course you need your building. In this tutorial I'm using the Atreides Weapon Factory for the Battle for Dune Mod.


It is important that you move your whole building to the center of RenX.

You also should already have setup all collision settings.

2. Now select all the meshes that are part of the EXTERIOR. This should be all parts of the exterior of the building, excluding any emitters, animations or doors.

Then goto the W3D-Tools --> Assign Node Names:

In the following dialog uncheck/check the Options you see on the screen below, enter at the Root Name: entry a short name, e.g. atrwep (Atreides weapons factory) followed by a ^.

You should write this down. because youll need that later, I`ll refer to this name as the Meshprefix later.

The Meshprefix should NOT exceed 6 characters.

3. Congratulation you have now created a buildings exterior. Now goto Group --> Group and enter a name (e.g. wep_ext)

4. Now hide your ExteriorGroup and un-hide all parts of the interior, again excluding any emitters, animations or doors.

Again select all meshes and open the same dialog as for the interior. Enter the Meshprefix followed by a #.

Again Group this and name it for example wep_int:

5. Now we will add the doors, emitters as well as animate them for the later use.


If you have already done this, you can just skip this part.

For the doors I`ll use the standard Renegade MP ones, but of course you can make your own ones, you find a tutorial at: Door tutorial how to set up those.

As you can see, I have un-hidden the Ext/Int-Group to better align things. For the doors you need the name of the preset of the door, the standard Renegade doors name is `mpdr_0` create a box 1x1x1 at the topview, and place it at the location where the door should be placed, name the box : mpdr_0~ (or the name your door-preset has in Leveledit + a ~ ) add a 00 after the ~ for the first, a 01 for the second and so on.

When you have placed all doors, group the doors e.g. as wep_doors.

When you are done with the doors, you need some damage emitters. You can make your own with W3D-Editor or use Renegade ones, extract them with XCC_Mixer you can identify them by the leading e_ (e.g. e_19fire1.w3d). For all Emitters you should extract (or download) the e_master01.tga so you can see the emitter effects:

Now create three boxes (1x1x1) named: emitter0, emitter25, emitter50, emitter75. I will refer to this as the `DamageBox`.

After that, create 1x1x1 boxes named like the emitter file (without the w3d) that should be displayed later, in this case e_fire1. I will refer to this as `EmitterBox`.

Important Note

Never just rename the emitter file!! You must edit the name in w3d-Viewer and re-export it or the file will not be loaded or even crash Renegade!!!

Now link the EmitterBox to the DamageBox emitter75 if this emitter should be showed up at the state for when the building is 25% damaged, emitter50 for half damged, emitter25 when the building is damaged by 75% and emitter0 when the building is destroyed.

For this use the Link tool

and click and drag from your EmitterBox to your DamageBox (The damage box will flash for about 2 seek when this is done successful).

Then place all around your building emitters or objects that should be displayed at the different states and link them to the corresponding DamageBox.

I recommend to save your work now if you have not done this before!!

6. Now we must make an animation, so Renegade later know what parts must be showed at the damage states.

For that you should reopen RenX, because the `Trackview` that we will need often conflicts with the RenegadeMaterialEditor for Gmax, restarting RenX solves the problem.

Open now the `Trackview`:

On the Trackview browse to Objects --> emitter75:


Add a visibility track by clicking the eye icon  that will add a new option to your Object:

Click on the new option and add via the  at frame 1, 2 and 3 a new key.

Right click the first key and change the value to 0 (invisible)

Now change this also for key2. The third key must not be changed and should stay at value 1 (visible)

Repeat this process for all other DamageBoxes, but switch the keys to the following:

  • emitter50 frame 1,4,5
  • emitter25 frame 1,6,7
  • emitter0 frame 1,8,9

When you have done this, group all DamageBoxed and the EmitterBoxes e.G wep_emitter

7. Now we will prepare the PT and the MCT (This is optional)

Your PT`s and MCT can have also animations like the damage emitters. For the PT`s you might want to add animations for a powerless building like Westwood does. for this just create four more emitter boxes( emitter0p, emitter25p and so on) and count up the last frame by one for each state liek you have seen in Section 6.

Select all MCT Meshes and use the naming tool that is described in Section 2, and use as a basename the meshprefix#mct (e.g. atrwep#mct). repeat this for the PT`s also but use meshprefix#pt here (e.g. atrwep#pt)

Group all your PT`s and the MCT to a separate group, e.g. wep_pct and wep_mct

8. Exporting time.

Now you must export all parts for the use in Leveledit.


* the Interior Group as mesprefix_int (Renegade Terrain)

* the Doors Group as meshprefix_doors (Renegade Terrain)

* the Damage and Emitter as meshprefix_dam (Hierarchy Animated Model)

* The MCT Group as meshprefix_mct (Hierarchy Animated Model)

* The PT Group as meshprefix_pt (Hierarchy Animated Model)

In my example I`ll get 5 files: atrwep_int.w3d, atrwep_doors.w3d, atrwep_dam.w3d, atrwep_mct.w3d, atrwep_pt.w3d

Copy all these files into Your modfolder if you have not done this already, a separate folder e. g. buildingparts would be a nice idea.

9. Setup your exterior mesh for use in Maps.

You might wonder what will happen to the exterior mesh. We must jsut setup some very simple parts to finish this:

create a box from the TOPVIEW (1x1x1) in the EXACT center of Gmax/Renx. Name this box meshprefix_int~, then clone the box (or create a new one) and name it meshprefix_doors~ and so on for all w3d`s you have exported in part 8. then select all these boxes and activate the [x] Hide and [x]Aggregate w3d option.

After that select your ExteriorMesh and these Boxes and group them to for example AtreidesWeaponFactory and save your work.

You can now Merge this Group into your map(s) like the original Westwood buildings.

10. Setup everything in Leveledit.

Now start the Leveleditor and Load your Modpackage.

Goto Terrain-->Add and enter a name, e.g. mybuildings

Select this new group and press again add. Enter as name meshprefix_doors (e.g. atrwep_doors) and under the settings tab under m_Modelname select your _doors w3d file.

Repeat this part also for the mesprefix_int w3d file, you`ll then has 2 new entry`s:

Now change to the Tiles Tab and again press add create a new entry named: mybuildingtiles under the Physics Type select BuildingAggregate.

Select this new group and once again press add, enter as name: meshprefix_dam, under the Physics Model be sure that the type is Building Aggregate, change the Model Name to your corresponding w3d file, the AnimationMode to Manual

Scroll down to the Building Behaviour Settings and change the AnimLogicMode to ANIM_LOGIC_SEQUENCE.

The Building state for 75% to 1, 1 as showed below, for 50% 2,2 for 25% 3,3 for destroyed 4,4.

Repeat this also for the State: Power OFF.

After that press OK, again use the add, now enter as name: meshprefix_mct (e.g atrwep_mct), select the needed w3d, setup everything like before, but check the checkbox labelled [x] IsMCT.

If your MCT also has animation sequences, you must set them up corresponding to your animation as described above.

Again add another tile, name it meshprefix_pt, set it up as explained for the MCT, but let the [ ] IsMCT unchecked.

Now you have three new entries in your mybuldingstiles group:

11. Congratulation!!!

You are finished now. Add your BuildingGroup you have created in part 9 to your map via the MERGE command in RenX/Gmax, export it as RenegadeTerrain and enjoy your bulding.

One Last Step:

To make your building work ingame you have to Clone via the ADD button one of the Buildingcontrollers, for example mine is a Weapons Factory, so I clone the GDI_WeaponsFactory:

You can name it whatever you want.... but you must fill in the MESHPREFIX into the corresponding field:

Of course you can edit other settings like health in this dialog too,play around a bit with these settings.

Have fun by destroying all your hard work ingame!

  • No labels