Standalones

soft3ds


The Animatix Object File Converter convert files from 3D Studio Max(TM) (.3DS version 4.0) to SOFTIMAGE 3D format. The product converts an extensive subset of geometry, lights, cameras, materials, 2D textures, and animation.

Note: The files written by 3D Studio version 2.0 contain information not present in later versions. This information is ignored, resulting in defaults for certain parameters.

Usage

soft3ds <3DS filename> <dbase> [-r <rPath>] [-m <mPath>]
<3DS filename> is the name of the 3D Studio file (including extension).

<dbase> is the SOFTIMAGE 3D database name.

<rPath> is the full path to the location of theSOFTIMAGE 3D Relation.rsrc file (softimage_installdir/3D/rsrc).

<mPath> is the path to the 3D Studio material map files directory.

Name Mangling

When the object converter performs a conversion between an item (such as light, camera, material, or polygon mesh) in one format to an equivalent item in another format, it attempts to match the name of the converted item as closely as possible to that of the original item. Since permitted name lengths and format differ between the SOFTIMAGE 3D and 3D Studio environments, and since a name may already be in use, the object converter may be forced to alter names during conversion. This process is termed name mangling and uses the following algorithm.

As names (called "base name") are encountered during the conversion processes, they are registered with the program. If a base name has been previously registered, a numeric suffix (starting at '01') is added to the base name to produce a different name. If this name is also in use, the suffix is incremented and process repeated until the new name is unique. For names used in 3D Studio, characters are stripped from the base name as required, so that the combination of base name and suffix does not exceed the maximum length permitted for the type of item being referenced (objects, lights, cameras: 10 characters; materials: 16 characters).

Name mangling for DOS file names is also performed. In this case, the base name is formed by taking the first eight characters of the input name. This is further truncated, if necessary, to remove any characters after and including the first period (if the first character is a period, it is replaced by a '-' character).

3D Studio File Read

The following describes the information that is converted.

Ambient Light

This is converted to Atmosphere -> Ambience in SOFTIMAGE 3D. RGB colour maps directly to RGB colour.

Global Shadow Parameters

These are applied to each light, if local setting not present for that light.

Fog/Depth Cueing

This is converted to Atmosphere -> Depth Fading. The 3D Studio initial % setting is ignored (no equivalent), the start distance, end distance and fog RGB colour are mapped directly, and the final % setting maps to Transparency.

Background

3D Studio backgrounds have no direct equivalent in SOFDTIMAGE 3D and are not converted.

Viewport Information

Viewport information is not compatible between 3D Studio and SOFTIMAGE 3D and is not converted.

Cameras

The first camera encountered in the 3D Studio file is read and converted to the camera in SOFTIMAGE 3D. Camera position, interest, hidden status, near plane clipping, and roll are converted directly. Far plane clipping is not available. The remaining camera parameters are set to the defaults of SOFTIMAGE 3D

If no cameras exist in the 3D Studio file, a camera is created with the SOFTIMAGE 3D default parameters.

Note: Any hierarchical relationship defined in the 3D Studio file between cameras and other objects is ignored (the SOFTIMAGE 3D camera cannot be part of a hierarchy).

Lights

3D Studio omni lights are converted to SOFTIMAGE 3D point lights of the same colour and position with no shadow set. If attenuation is enabled for a light, the SOFTIMAGE 3D falloff parameters are set according to the 3D Studio file range values specified for that light. If objects are included from the light, the light is set as a selective and exclusive light. The excluded objects are associated with the light. The umbra, penumbra, and shadow parameters are set to SOFTIMAGE 3D defaults.

3D Studio spot lights are converted to SOFTIMAGE 3D spot lights of the same colour, position, interest, and cone/spread angles. If shadows are enabled for the light, they are set to either raytraced or depth-mapped, accordingly. Depth-mapped shadow parameters are set for map resolution and filter size, when applicable. If attenuation is enabled for a light, the SOFTIMAGE 3D falloff parameters are set according to the 3D Studio file range values specified for that light. If objects are excluded from the light, the light is set as a selective and exclusive light. The excluded objects are associated with the light. The umbra and penumbra parameters are set to SOFTIMAGE 3D defaults.

3D Studio rectangular and projector spot lights are converted to normal spot lights in SOFTIMAGE 3D, as previously described.

Note: Any hierarchical relationship defined in the 3D Studio file between lights and other objects ignored.

Material Definitions

Each valid material definition in the 3D Studio file is converted to one material definition and zero or more associated 2D textures. The name of the material definition is the same name used in the 3D Studio file. 2D textures associated with a material use names derived from the material name. Since SOFTIMAGE 3D does not support independent mark maps, these are not converted from 3D Studio materials.

Materials definitions are converted as follows:

Note: In 3D Studio, the Phong Soften, Transparency Falloff, Reflection Blur, SelfIllumination and Face-Map settings have no equivalent in SOFTIMAGE 3D and are not converted.

2D Texture Definitions

Due to the differences between 3D Studio and SOFTIMAGE 3D in the way that materials are defined and assigned to objects, s one 2D Texture definition is created for each distinct mapping file/mapping assignment combination in 3D Studio.

3D Studio material map definitions do not correspond exactly with those in SOFTIMAGE 3D. The default settings for 2D textures may be modified, as described in the sections for each map type.

The Picture Name field is set to the base name of the corresponding 3D Studio map file.

The Animation setting is determined by the type of file used in the corresponding 3D Studio map. If the map file type is .FLI or .FLC, the animation type is set to Sequence; if the map file type is .IFL, the animation type is set to Script; otherwise the animation type is set to Static.

The u, v Scale, Offset, and Repeats settings are assigned the corresponding values from the 3D Studio map and object. Note that if the correct parametric information for mapping is not present in the 3D Studio file (for example, if the file was created by an earlier version of 3D Studio, or if objects are deformed after mapping is assigned), the mapping conversion cannot be performed accurately.

The Tiling mode is set to non-alternating for both u and v, unless the Mirror option is set for the 3D Studio bitmap, in which case the tiling is set to alternating for both u and v.

The Swap UV option is deselected.

The Pixel Interpolation option is selected.

The reflection Map Rotation field and Intensity slider are set to 0.0.

The Mapping Method is set to XY, Cylindrical, or Spherical, depending on the mapping method used for this material's application in 3D Studio.

The Map Component selection is set to RGB Intensity and the Transparency, Reflectivity, and Roughness sliders are set to 0.0.

All Cropping values are set to 0.0.

The Blending option is set to Without Mask, and the Overall Blending, Ambient, Diffuse, and Specular sliders are set to 0.0.

For Texture maps (Texture1, Texture2), a 2D texture is generated with the Blending control set to Alpha Channel Mask, unless the 3D Studio texture has the Ignore Alpha button set, in which case the Blending control is set to Without Mask. The Overall Blending slider is set to the scaled value from the 3D Studio Amount slider for the appropriate map and the Ambient, Diffuse, and Specular sliders are all set to 1.0.

For the Specular map, a 2D texture is generated with the Blending control set to Alpha Channel Mask, unless the 3D Studio texture has the Ignore Alpha button set, in which case the Blending control is set to Without Mask. The Overall Blending slider is set to the scaled value from the 3D Studio Amount slider for that map and the Specular sliders are set to 1.0.

For the Reflection map, a 2D texture is generated with the Reflection map intensity set to the scaled value from the 3D Studio Amount slider for the Reflection map.

For the Opacity Map, the Roughness slider is set to the Amount slider for the Opacity map.

For the Bump Map, the roughness slider is set to the scaled value from the 3D Studio Amount slider for the Bump map.

Note: The 3D Studio Shininess Map, Self-Illumination maps, and SXP (procedural) textures cannot be converted to SOFTIMAGE 3D.

See Image File Conversion Process for details of how image file conversion is managed.

Object Geometry

Each polygon mesh object from the 3D Studio file is converted to a polygon mesh in SOFTIMAGE 3D and assigned the same name as the 3D Studio object. Automatic Discontinuity is set for each polygon mesh, using the SOFTIMAGE 3D default angle of 60 degrees. This setting is overridden using the discontinuity edge flag to simulate the effect of 3D Studio's smoothing groups.

Materials created are associated with the appropriate polygon mesh items.

Any hierarchical relationship defined in the 3D Studio file for objects is recreated in SOFTIMAGE 3D. 3D Studio instance objects are converted to separate objects in SOFTIMAGE 3D.

Animation

3D Studio animations for polygon mesh objects, lights, and cameras using scale, rotation, and translation (SRT) are converted directly to their equivalents in SOFTIMAGE 3D. Keyframes are generated on a one-to-one basis, with function curve shapes being determined by keyframe settings. Additional animated parameters for lights (colour, hotspot, and falloff) and cameras (roll and field of view) are similarly converted.

3D Studio morphing of objects is converted by using SOFTIMAGE 3D shape animation techniques (such as creating a series of different key shapes with the same number of vertices and assigning them to the appropriate keyframes).

3D Studio material morphing is converted by applying the converted material definition to the appropriate object/keyframe combination.

Pivot points for the objects in the 3D Studio are converted to object centres in SOFTIMAGE 3D.

3D Studio hide keys are converted to an equivalent activation function curve in SOFTIMAGE 3D

Dummy objects in 3D Studio are converted to Null objects in SOFTIMAGE 3D.

Image File Conversion Process

When 3D Studio materials containing maps are converted to their equivalent in SOFTIMAGE 3D, the image files representing those maps are also converted. This process is accomplished by invoking the Animatix Image File Converter for each of the image files.

The object converter determines the names of the input file passed to the image file converter and the output file created by the image file converter. The output file type is determined by the input file type passed to the converter.

To convert from 3D Studio to SOFTIMAGE 3D image files, the object converter first retrieves the file name of the 3D Studio material map component to be converted. The object converter then determines the output file name by taking the input file name and extension and appending the extension .pic (for example, the input file marble.tga becomes marble.tga.pic).

The object converter then invokes the image file converter with the input and output file names, specifying the -k option to prevent existing files with the same name as the output file name from being overwritten. The output file name is then referenced in the SOFTIMAGE 3D 2D texture that is created.

If the input file type is .IFL, the converter traverses the list of files specified and converts each to the SOFTIMAGE 3D format. The object translator also writes the names of all converted files to a script file (which has the same name as the source .IFL file and has the extension .scr appended).


Standalones Reference - 15 APR 1996

Generated with Harlequin WebMaker