MAXLightConverter

This class provides methods that convert 3D Studio MAX§ lights to Shockwave 3D§ lights.

When to use

This class is used by the MAXExporter class.

Interface Methods

Description

MAXLightConverter

Class constructor

~MAXLightConverter

Class destructor

Convert

Converts a MAX light resource to a Shockwave 3D light resource

ConvertAmbientLight

Converts MAX ambient lighting if it is greater than the default value

ConvertDefaultLight

Converts the default directional light in MAX if there are no other lights in the MAX scenegraph

Initialize

Initializes light converter

CreateS3DLight

Creates a Shockwave 3D light resource and links it to the appropriate palettes


MAXLightConverter::MAXLightConverter(MAXExporter* pMAXExporter)

This is the class constructor.

Parameters:

pMAXExporter

Reference to the MAXExporter class

Return values:

None


MAXLightConverter::~MAXLightConverter(MAXExporter* pMAXExporter)

This is the class destructor.

Parameters:

None

Return values:

None


MAXLightConverter::Convert(MAXNodeList* pMAXNodeList, IFXLightResource** ppOutIFXLightResource)

Converts a MAX light resource (referenced by a MAX node list) to a comparable Shockwave 3D light resource.

Parameters:

pMAXNodeList

Group head of this list is the MAX light node to be converted

ppOutIFXLightResource

The Shockwave 3D light resource

Return Values


MAXLightConverter::ConvertAmbientLight()

Converts MAX ambient lighting if and only if any component of the MAX ambient lighting is greater than the default value.

Parameters:

None

Return Values


MAXLightConverter::ConvertDefaultLight()

Converts the default directional light that is present in MAX if there are no other lights present in the MAX scenegraph.

Parameters:

None

Return Values


MAXLightConverter::Initialize(MAXExporter* pMAXExporter)

This method initializes the light converter

Parameters:

pMAXExporter

Pointer to MAXExporter

Return Values


MAXLightConverter::CreateS3DLight(IFXLightResource** ppIFXLightResource)

Creates a Shockwave light resource and links this Shockwave light resource to the appropriate Shockwave palettes.

Parameters:

ppIFXLightResource

The Shockwave light resource that is created

Return Values

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