Necrogiant
HV November - 26 - 2011 Articles1 COMMENT

This is a tutorial by Russia Maxim that teaches how to make a lava for Painkiller level.

1. Create a cylinder, figure 1.

Fig.1

Fig.1

2. Convert it to Editable Mesh object, figure 2.

Fig.2

Fig.2

3. Select and delete the butt-end surfaces of the cylinder, figure 3,4.

Fig.3

Fig.3

Fig.4

Fig.4

4. Form the desired shape with FFD 2x2x2 modifier, by Scale and Move options, figure 5-9.

Fig.5

Fig.5

Fig.6

Fig.6

Fig.7

Fig.7

Fig.8

Fig.8

Fig.9

Fig.9

5. Create a planar mapping coordinates in the 2nd UV – channel with UVW Mapping modifier, figure 10, 11.

Fig.10

Fig.10

Fig.11

Fig.11

6. Assign a material that contains the lawa_fps25_00 texture in its diffuse color slot to the mesh, figure 12.

Fig.12

Fig.12

7. Rename the object Cylinder01 to lawa_noclipshape, figure 13.

Fig.13

Fig.13

8. Export the object to ASCII Scene Export (*.ASE) file format, figure 14.

Fig.14

Fig.14

 

9. Convert the *.ASE file to *.mpk file format, using following command line parameters: < ase2mpk -o DM_temp.ASE >.

10. Run blend.exe in the same directory with DM_temp.mpk and Obj.txt files. There will be created a new file named dm_temp_blend.mpk.

Note: Painkiller’s *.mpk format operates with four texture layers, table 1.

Table 1.

 1 layer – “colormap” texture, uses 1st UV-channel  visible through the black areas of the mask (alphamap) texture
 2 layer – “lightmap” texture, uses 2nd UV-channel  provides static lighting
 3 layer – “blendmap” texture, uses 1st UV-channel  visible through the white areas of the mask (alphamap) texture
 4 layer – “alphamap” (grayscale) texture, uses 2nd UV-channel  defines the relative visibility of the 1st and the 3rd layers

In general, layer 3 and layer 4 has no texture.

11. Rename dm_temp_blend.mpk to lawa.mpk and put it to “..\Painkiller\Data\Maps” directory, also unpack the lawa_tex.rar  to ..\Painkiller\Data\Textures\Levels\lawa directory.

12. Open lawa.mpk with PainEd, figure 15. You should see the lava flows moving from center to outer edge.

Fig.15

Fig.15

Certainly, a lava object can be of any other shape, for example as shown in figure 16.

Fig.16

Fig.16

  • Troll

    }|{OIIA

Categories

Painkiller is a first-person shooter game released on April 12, 2004. The game takes place in Purgatory and Hell. The main character is Daniel Garner.