Moving Assets into Autodesk 3DSMax

From MakeHuman Community Wiki
Revision as of 23:38, 26 July 2015 by Robbaer (Talk | contribs) (Restoring Transparency for the Eyes)

Jump to: navigation, search

Units Considerations

We will use the file created in the “Illustrating the export/import process” section to illustrate how to get your MakeHuman ready for use in Autodesk 3DSMax. During export the FBX exporter was set to ASCII and the scale was set to inches.

Autodesk 3DSMax has two types of units: “system units” and “display units”. By default, Autodesk uses inches as its “system units”. It is essential that 3DSMax “system units” be set to their FINAL value BEFORE importing any asset. Once set, do not change them again for that scene. If a 1 cubic foot cube object is imported, and then the system units are changed from inches to meters, the cube will become 1 cubic meter in volume.

The use of imperial inches as system units can complicate the process of FBX export/import, but if you export from MakeHuman using inches and import into 3DSMax using “automatic settings”, things should work well. [edit RWB: this needs rechecking after finalizing MH unit handing for FBX]. This is the straight forward approach for architectural work in the U.S. where imperial units are common. The Autodesk web site discourages changing the system units of 3DSMax from default, but makes an explicit exception when importing assets from sources constructed using metric dimensions [1][2].

If you are importing many metric objects into 3DSMax from other programs, it may make sense to change your “system units” to either centimeters or meters, and export your MakeHuman character in FBX format with the corresponding units. System units and Display units in Autodesk 3DSMax can be accessed from the Customize | Customization | Unit Setup menu:

ImpExp23.png
Figure 1

In the Units setup dialog choose “System Units”, and in the System Unit Setup dialog choose your desired units. Notice that in the figure below that although the “system units” are set to the default units of inches (right dialog), the display units are set to meters (radio button next to metric in left dialog). Imported assets are scaled into system units. System units are then converted to display units for the purposes of the 3DSMax ruler display, but remain stored internally in original system units.

ImpExp25.png
Figure 2

With this understanding of how to control the 3DSMax side of things, let’s import our MakeHuman character. We will leave 3DSMax set to inches, and export our MakeHuman FBX file using inches as units as well.

Importing FBX into 3DSMax

From the 3DSMax application menu choose Import |Import, and navigate to FBX file you exported from MakeHuman using inches.

ImpExp26.png
Figure 3

By default, the exported file will be found in ~/makehuman/v1/exports/SomeName.fbx (where ~ is the user home directory). The textures for the exported file will be found in a subfolder called textures of the folder where the .fbx file is stored. 3DSMax can import either ASCII or binary FBX files, so either type of export can be used for MakeHuman export. [RWB Note: as of this writing there are still some issues with direct FBX binary export, but those are expected to be repaired going forward]. When the file is initially imported into 3DSMax it looks like this:

ImpExp27.png
Figure 4

Click on the word [wireframe] in the top left of a viewport and choose realistic (or hardware in older versions) to see the material displayed with maps. The shortcut key is SHIFT-F3.

ImpExp37.png
Figure 5

To maximize the front viewport, left click on the front vieport to make it active and type ALT-W. Use the scroll wheel and middle mouse drag to zoom in on the face.

ImpExp38.png
Figure 6

Finally, it is helpful to hide the rig of the MakeHuman skeleton. In the panel on the right, select the Display icon and click on the put a check "helpers" in the "Hide by Category" panel.

ImpExp39.png
Figure 7


Restoring Transparency for the Eyes

You should now have a relatively unobstructed view of the imported MakeHuman character. You will notice upon zooming in that there are significant issues with the transparency for eyes, eyelashes, eyebrows, and hair. We will illustrate the steps for the eyes. They can be repeated for the other 3 assets that use transparent materials.

Here are the steps to fix the eyes:

1. Left-click the eyes to select them.

ImpExp40.png
Figure 8

2. From the menus select, Materials | Create/Edit Materials | Edit selected Object’s Material. The Slate Material Editor will open with the [high poly] eyes node selected. [Note: If the compact material editor opens instead, use the Mode menu to go to the Slate Material Editor.] Click on the slate editor window to make it active. Spin the scroll wheel toward you until you see the texture map (Blue_eye_png in this case) attached to the Diffuse node on the eye material. Shift-middle mouse drag may help you center this pair in your viewport.

ImpExp34.png
Figure 9

3. Drag a connection between the output of the bitmap node and the Opacity input of the standard material node. In the panel on the right, click the little “+” to expand the Maps section. Then, still in the right panel, set the value of the newly checked opacity to 0.

ImpExp36.png
Figure 10

4. Now double left-click on the Blue_eye_png bitmap node, or alternatively, double click on the words blue_eye_png (bllue_eye.png) just to the right of the opacity row (maps column) of the right panel.

ImpExp41.png
Figure 11

5. Under bitmap parameters (right panel) set Mono Channel Output to alpha, set Alpha Source to Image Alpha, and confirm that RGB Channel Output is set to RGB.

ImpExp42.png
Figure 12

The eyes should now appear as the natural color with which they were exported from MakeHuman.

ImpExp43.png
Figure 13

Fixing Transparency on the Other Assets

To fix the eyebrows, eyelashes, and hair, repeat steps 1 - 5 as described for the eyes with each other asset with that asset selected in turn. After completing the eyebrows, out model looks like this:

ImpExp44.png
Figure 14

After completing the eyebrows and the eyelashes, out model looks like this:

ImpExp45.png
Figure 15


After completing everything, out model looks very similar to the look it had upon export from MakeHuman.


ImpExp46.png
Figure 16

At this point if you save the file using Autodesk 3DSMAX native.max format, it can be read in again with no additional correction necessary. however, if you export the file as in FBX format and then read the file back into a new session it will have semi-transparent hair and now eyelashes or eyebrows. The face looks like this:

ImpExp47.png
Figure 17

To fix the assets complete the following steps:

1. TO BE WRITTEN