Rad Worm
This utility is a helper function to generate a RAD file for your level based off of all the materials in your level. A rad file defines materials that give off light.
The tool is still in development. Please report any problems.
Running Rad Worm
Rad Worm was added to WWMT V.1.57. You can run it via the MAXScript Menu at C:\Program Files\Autodesk\3ds Max 2012\Scripts\WallWorm.com\WallWormUtilities\radworm.ms
You can also install it into your 3ds Max UI by running C:\Program Files\Autodesk\3ds Max 2012\Scripts\WallWorm.com\WallWormUtilities\radworm_mcr.ms. After running this script, you can find Rad Worm in your Max customization under Wallworm.com.
- As of WWMT Version 1.57, there will be a Rad Worm item in the Wall Worm Menu if you open the WWMT Config Settings and press the Add to Menu button. You will then find it in your menu bar under Wall Worm > Wall Worm Utilities > Rad Worm .
Using Rad Worm
Run Rad Worm after you have added all the materials into your scene that should generate light.
- For each material that should give off light, turn on the Self Illumination and choose a color (do not give the self-illumation texture slot any textures--only use color)
- Click Wall Worm > Wall Worm Utilities > Rad Worm
- You will be prompted to save the file. The file name must be YOURMAPNAME.rad (swapping YOURMAPNAME with the real name of your map. Save it to your mapsrc directory for your mod (where your VMFs are stored). For example, for Counter-Strike:Source it would be saved to
C:\Program Files (x86)\Steam\steamapps\YOURSTEAMNAME\sourcesdk_content\cstrike\mapsrc.Example
If my map is called cs_funmap for Counter-Strike, I would save this file as
C:\Program Files (x86)\Steam\steamapps\YOURSTEAMNAME\sourcesdk_content\cstrike\mapsrc\cs_funmap.rad.
- The name of the material will be the name of the path/name used in the rad file. So if you want the material buildings/brick01 to give off light, give the material name buildings/brick01.
- The self-illumination color defines both the color (RGB) and value (intensity) of the rad material's light.
- The value (Dark to Light in the color picker) is multiplied by 10. This is an arbitray number. I chose this because the value in the color picker is a range of 0-255... whereas the value in the RAD file will often be thousands... (Meaning that if you want the RAD intensity to be 1000, set the Value in the color picker to 100; it also means that this tool will only set values up to 2,550 ... and you'll have to edit your file manually for higher values.) You will likely have to tweak this to meet the needs of your scene. You can always edit it after it's been generated... and recompile the map.
- The rad file does not include HDR values. You must set them manually if that is something you need.
- The following Material types are used:
- Standard Material
- Multi/Sub-Object where the material list is composed of other allowed types
- DirectX Material where the Render Material is an allowed type


