MAXMaterialConverter

This class provides methods to convert 3D Studio MAX§ materials to IFXShader structures.

Interface Methods

Description

MAXMaterialConverter

Class constructor

~MAXMaterialConverter

Class destructor

Initialize

Initializes the object for use

CollectMeshMaterials

Gets all unique materials from a MAX node list

ConvertMAXTexture

Converts MAX textures to Shockwave 3D§ textures

CreateS3DMaterial

Creates Shockwave 3D materials

CreateS3DShader

Creates one or more IFXShaders based on a list of MAX materials. It also returns the Shader Recource IDs of the Shaders.


MAXMaterialConverter::MAXMaterialConverter ()

Class constructor.

Parameters:

None

Return Values


MAXMaterialConverter::~MAXMaterialConverter ()

Class destructor.

Parameters:

None

Return Values


MAXMaterialConverter::Initialize (ExpInterface * pMAXExportInterface, Interface * pMAXCoreInterface, MAXExporter * pMAXExporter)

Initializes the object for use.

Parameters:

pMAXExportInterface

Pointer to the MAX Exporter Interface

pMAXCoreInterface

Pointer to MAX Core Interface

pMAXExporter

Pointer to main MAX exporter

Return Values


MAXMaterialConverter::CollectMeshMaterials (MAXNodeList * pMAXNodeList, U32 * pNumMaterials, MAXMultiMaterial ** ppMaterials, MAXMaterialMapper ** pMeshMtlOffsets = NULL)

Gets all unique materials from a MAX node list.

Parameters:

pMAXNodeList

Pointer to the list of MAX nodes from which materials are to be gathered

pNumMaterials

Number of materials used by the MAX node list

ppMaterials

The authoring class representing MAX materials

pMeshMtlOffsets

The authoring class that maps the materials. Default is set to Null

Return Values


MAXMaterialConverter::ConvertMAXTexture (int texType, Bitmap * pBitmap, CIFXString * pMapName, U32 * pMapResourceID)

Converts MAX textures to Shockwave 3D textures.

Parameters:

texType

Texture type

pBitmap

Pointer to the MAX bitmap interface for the texture map

pMapName

Pointer to the MAX texture map name

pMapResourceID

Unique identifier for the texture map in Shockwave 3D

Return Values


MAXMaterialConverter::CreateS3DMaterial (MAXMultiMaterial * pMAXMultiMaterial, U32 * pResourceId)

Creates Shockwave 3D materials.

Parameters:

pMAXMultiMaterial

Authoring class that represents the MAX material to be converted

pResourceId

Unique identifier for the Shockwave 3D material to be created

Return Values


MAXMaterialConverter::CreateS3DShader (MAXMultiMaterial * pMAXMultiMaterial, U32 uNumMaterials, ShaderIDList * pShaders)

Creates one or more IFXShaders based on a list of MAX materials. It also returns the Shader Resource IDs of the Shaders.

Parameters:

pMAXMultiMaterial

Array of authoring classes that represents the MAX materials to be converted to a Shockwave 3D shader

uNumMaterials

Number of MAX materials that will make up the shader

pShaders

List of shaders (by IDs) to which this shader will be added

Return Values


 

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.