Virtools Exporter for 3DS Max Online Reference

VERSION


Max : 6 , 7,  8 , 9 , 2008 , 2009
Virtools Dev : 4.1.0.80
Exported files are compatible with Virtools Dev 4.1, 4.0 and 3.5
Virtools Exporter : november, 2008
This Document Revised: November 1st, 2008


Overview | Installation | Export Modes | Exported Parameters | User Interface | MaxScript | Troubleshooting

Overview

This document describes how to use the Virtools Exporter for 3DS Max. An export plugin takes information from a source format, in this case the 3DS Max format, and converts it to a destination format, in this case the Virtools NMO or CMO format.

When converting data, one of three things occurs:

The plugin converts the following elements:

Installation

The export plugin is installed by running setup.exe from the Virtools CD or downloaded from the website:
  1. Select the 3DS Max plugin.
  2. Follow on-screen instructions.

Export Modes

There are 4 export modes:

A) EXPORT AS OBJECT

Export as Objects is used to export a scene. This mode produces a single NMO file and exports:

B) EXPORT AS CHARACTER

Export as a Character is used to export a character only and produces an NMO file. You can also export one animation along with the character. When using Physique for modeling characters, you should export in Skin for reduced file size. See "Exporting Characters and Animations from 3DS Max" and "Modeling with Character Studio" in the Online Reference for further information.

IMPORTANT: Your character must only have one single root.

C) EXPORT ANIMATION ONLY

Export Animation Only is used to export additional animations. A single NMO file is produced. When exporting additional animations for characters, you can only export one animation at a time. The character itself is not exported. As with exporting characters, your character must have a single root. You can also export additional animations for objects using this mode.

D) EXPORT AS LEVEL

Reads the ambient light color, background color and fog settings (linear and an approximation of exponential). You must provide a starting camera name.

Exported Parameters and Important Notes by Category

A) GEOMETRY

Geometry parameters that are exported:

Geometry notes:

Hierarchy note:

B) MATERIALS

Material parameters that are exported:

C) TEXTURES

Texture notes:

D) LIGHTS

Light parameters that are exported:

E) CAMERAS

Camera parameters that are exported:

F) SPLINES

Spline parameters that are exported:

E) GROUPS

Group parameters that are exported:

F) ANIMATIONS

Animation (Characters and Objects) parameter notes:

Secondary Animation (Characters only) notes:

G) EXTENDED CHANNELS

It is now possible to attach custom data at the vertex level. In 3DSMax, you can create mapping channels with UV coordinates or with Vertex Painting. You can also bake texture maps or lighting to a mapping channel. The exporter can use mapping channels 2 to 10 to create extended channels.

Notes: Be aware that a mapping channel in 3DSMax contains only 3 components and that Virtools Extended Channels can use up to 4. You cannot create a float4 channel when using a mesh with no material.

An extended channel will be created in two cases:

  1. If the Channel Name in "Tools/Map Channel Info" contains a valid keyword.
    Here are the valid keywords;
    float X, floatX
    float XX, floatXX
    float XXX, floatXXX
    float XXXX, floatXXXX

    Where X is one of the following character{'','x','y','z','r','g','b','m','0','1'}
    'x', 'r. is the first component
    'y', 'g' is the second component
    'z', 'b' is the third component
    'm' is (x+y+z)/3, or (r+b+g)/3.
    '0' means the component will equals 0.0
    '1' means the component will equals 1.0
    '' means you did not supply a value for X.

    Here are some examples of valid keywords:
    float1: floatR, floatZ, float0, FlOaTm, etc.
    float2: floatRG, float0M, floatXZ, etc.
    float3: floatRGB, etc.
    float4: floatRGBM, floatRGB1

    Notes: None of the keywords are case sensitive, and a keyword can be anywhere in the Channel Name.

  2. If no material is assigned to a mesh.
    Here are the rules that determine the type of extended channel created when no material is assigned to a mesh.

    float 1: 2 of the 3 components are constant over all vertices.

    -example 1: U with constant V and W over all vertices
    |Vertex|-U-|-V-|-W-|
    +------+---+---+---|
    | 0....|0.0|0.0|0.5|
    | 1....|1.0|0.0|0.5|
    | 2....|0.0|0.0|0.5|
    | .....|X.X|0.0|0.5|


    -example 2: V with constant U and W over all vertices
    |Vertex|-U-|-V-|-W-|
    +------+---+---+---|
    | 0....|0.1|0.5|0.5|
    | 1....|0.1|1.0|0.5|
    | 2....|0.1|0.1|0.5|
    | .....|0.1|X.X|0.5|

    -example 3: VertexColor with 2 color components with the same value.
    Here Green and Blue are constant and equal 0.0
    Red is used as the channel for float1.
    |Vertex|-R-|-G-|-B-|
    +------+---+---+---+
    | 0....|0.1|0.0|0.0|
    | 1....|0.5|0.0|0.0|
    | 2....|0.7|0.0|0.0|
    | .....|X.X|0.0|0.0|

    -float 2: only one component out of 3 is constant.
    It is the usual case encountered with the UVUnwrap Modifier but you can also use Vertex Colors assigned to a mapping channel.

    -example 4: Vertex Color with one color component constant.
    Here Blue is constant and equals 1.0
    Red and Green are used as the channel for float2.
    |Vertex|-R-|-G-|-B-|
    +------+---+---+---+
    | 0....|0.1|1.0|1.0|
    | 1....|0.5|0.5|1.0|
    | 2....|0.7|0.2|1.0|
    | .....|X.X|X.X|1.0|


    -float 3: Full Vertex color or UV + W
    Here none off the components R, G or B are constant.
    |Vertex|-R-|-G-|-B-|
    +------+---+---+---+
    | 0....|0.1|1.0|1.0|
    | 1....|0.5|0.5|0.0|
    | 2....|0.7|0.2|1.0|
    | .....|X.X|X.X|X.X|

    -float 4: Unsupported because a 3DS channels only have 3 components.

    Tips: The recommended way for creating extended channels is to use multiple Vertex Paint Modifier to create 3 additive layers on the same mapping channel. Then, you paint with tones of red one the first layer, tones of green in the second and blue on the last; this is a good non-destructive process.

    If you need really precise values at each vertex, use UVUnwrap.

I) BLEND SHAPES

Blend shape support (mesh & animations) has been and will be available for use in next version of Virtools 5.

User Interface

A) Interactive User Interface:

B) General Options

C) Geometry Options

D) Material and Textures Options

Read Channels from file notes:

F) Animation Options

G) Report Options

MaxScript

MaxScripts lets you batch the exporting process. To know the command syntax, execute "export2nmo 0". Syntax may change according to the version number; however, parameters will only be added not removed. Look at features' test cases for examples of .ms files.

Troubleshooting

a) Objects do not export correctly.

=> Be sure you use Reset XForm on object BEFORE constructing hierarchies or animations. Use the following procedure:

  1. Create the objects.
  2. Reset XForm on them:
    1. Select all objects.
    2. Select "ResetXForm" in the "Utility" panel.
    3. Select "Reset Selected" in the Utility's submenu.
    4. Verify that the Normals on the face of each object haven't been inversed during Reset XForm. Flip the Normals over if that is the case.
    5. Save to 3dStudio MAX format in order to conserve the file for reference purposes.
  3. Proceed to implement hierarchies and/or animations.

=> Do not use operations that modify the axis system (such as Mirror Selected Objects from the toolbar - use the modifier instead) as this impacts geometry conversion during export.

b) An animation does not export correctly (including Characters that "moon-walk").

=> Verify that the character has a unique root.
=> Verify that the root object's animation track has a Position key on the first and last frame of the animation.
=> Verify that the Rotation Keys do not contain values greater than 360° or less than -360°.
=> Verify that the character *really* translates and does not just perform its animation "in place" or "on the spot".

c) A secondary animation does not export correctly.

=> Check that animations keys are only set for the object being animated.

d) Wrapping settings are not correctly converted.

=> You can change the Wrap Mode in Virtools using the BB Set Wrap Mode (Materials-Textures/Basic).

e) Splines are not exported correctly.

=> Splines may be converted into "Editable Mesh" during the course of certain operations in 3DS Max. In such cases, they are exported as Geometry.


Comments
Copyright © 2007 Virtools
All Rights Reserved.
Further Legal Information