Skip to content
pudingus edited this page Jul 28, 2020 · 8 revisions

Installation

Extract the downloaded files in C:\Program Files\Autodesk\3ds Max 2020\scripts and restart 3ds Max.

3ds Max 2009 or newer required
Because of a bug in 3ds Max, skin exporting doesn't work in Max 2012, 2013 and 2014

How to use

There should be a "Mafia 4ds Import/Export" rollout in the utility panel.
The utility rollout can be closed - to open it again click the MAXScript button in the utility panel a select it from the dropdown.

Textures

To see textures for imported models, you need to setup texture paths.
Hit Customize in the top menu > Configure Project Paths > External files. And there add your Mafia "maps" folder.

The exporter supports following material types: 4ds Material v4, Standard and Physical Material

Creating lods

Put the lower detailed under the main mesh parent and add a $lod prefix and preferably a number.
i.e. $lod1 whatever or $lod2 or $lod03_whatever. Lods are sorted alphabetically by name.


You can set the fade distance for each lod using the 4ds Parameter editor from the utility.

Lods don't need to be in layers and don't need to be hidden.

Creating sectors

Create a mesh with faces facing inwards and add a sector prefix i.e. sector chodba1
Create a polygon mesh with single polygon to create a portal and prefix it with $portal and put it under the sector
Creating a basic room (sectors)

Creating billboards

Create a mesh. Open 4ds Parameter Editor from the utility. Click "Add" to add parameters and set "Object type" to Billboard

Clone this wiki locally