Avatar Materials

In 3D, a 'Material' is essentially just a collection of data. The particular data contained in a Material are things like:

1. The name of the Material
2. What Texture it contains
3. The number of textures (in the case of an Opacity Map)?
4. The Material ID the texture is applied to
5. The ambient lighting applied to the Material
6. If the Material is two sided (can be seen when viewed from both sides of a polygon)

However, some Material data in 3dsMax do not translate directly into the Previewer - so you have to specifically choose things like 'two-sided' in the Material properties in the Previewer. As mentioned above, each Material contains a Texture. However, the Material does not dictate how that Texture is applied to a Mesh. That is handled with some sort of 'Mapping' tool.

When IMVU refers to a "Mapping a Texture" we mean that the Mesh knows what Material ID goes where and how the Textures are actually applied across the surface of that Mesh.

This tutorial assumes that you are using 3D Studio MAX. It also assumes that you are using the files found in either the Male03 _Anime01 _WeightingPoseMASTER.max or the Male03 _Anime01 _WeightingPoseMASTER.max that are found in the IMVU Unified Installer.
We also assume that you have already selected the male Head Mesh, applied the Skin Modifier and Initialized it.

Select Faces
The original IMVU Body Parts come with a multi-sub Material applied to them. If you are building a Body Part that is meant to work with the existing Skin products in the catalog, please use the Material IDs provided in the MAX file so you won’t have to Export new Material (xrf) files for your new Body Part – all of the Textures will just work.

If you are using the Body Parts provided in the Example files as a starting point for your new Body Part, you will need to remap the textures. To do so, select the faces of your Body Part whose Texture Mapping you want to change.

With your Geometry selected, add a “UVW Map” modifier to it in the ‘Modify’ stack on the right hand side of the screen.

When you add the Modifier, the list of options at your immediate disposal are centered around Texture Mapping. Click around on the Mapping Parameters like Planar, Cylindrical or Box to see how that effects the Mapping gizmo that is now displayed on your Mesh. Also make sure to play with the X, Y, Z buttons and the Tiling and Flip boxes.

Use IMVU's Skin Mapping
If you are building a Body Part that is meant to work seamlessly with the rest of products in the IMVU catalog, please remember to use the Texture Mapping already embedded in the Meshes supplied in the Master Weighting files.

As mentioned above, IMVU users expect their Skin Texture products to work perfectly across all clothing Meshes. When their Skin Texture products do not work perfectly, they get upset, leave bad reviews and spread the word that your products are unreliable. So, please use the Texture Mapping IMVU has already built for you.

To the left is the 256x512 Plaid Texture we use to make sure that our Mapping is perfect. When this Texture is applied to the Avatar Body in 3dsMAX, the horizontal and vertical lines are drawn as straight as possible. This should allow you to easily see how the Skin on your new Meshes is Mapped and, more importantly, whether or not it matches what is on the Master Meshes.

Unwrap UVW
When you have arrived at the base Mapping modifications that you are happy with, it is time to dig into the details. Click the Unwrap UVWs button.

Unwrap UVW - Click Edit
When you Apply the IVW modifier, an ‘Edit’ button will appear under the ‘Parameters’ section. Click that button.

Edit UVWs
Click that ‘Edit’ button and the Edit UVWs screen will pop up. Just select points or groups of points and move them around as you like. You can zoom in as close as you like to make sure the Textures line up right.

Unwrap settings
Typically we have the Edit UVWs window options customized to allow us to see the adjustments we make in real time on the Mesh. Below is a shot of all of our unwrap settings.

Mapping your materials

Please note, IMVU supplies you with a perfectly working sub-Material to use with your Body Parts. This sub-Material contains Skin, Eyes, and Eyebrows already set up for you. Although you may create your own mutli-subs for your Head, IMVU recommends you use the embedded ones for your first pass at Head building.

Texture Mapping in any 3D program is an art all its own. However, there are a few IMVU specific things that you ought to know before you can Export. First up, when you are ready to Export, you are meant to have only one (1) Material that is a multi-sub Material. Within the multi-sub Material, you may have as many Material IDs as you like.

One, Multi-Sub Material

If you are using MAX, you may only have one Material on your model. This Material can contain as many sub-Materials as you like and can therefore be a “Multi-Sub” Material. If you are using another 3D program, it is likely that you will have to have separate top level Materials. This may result in your needing to have more Meshes than described in this document.

Material Naming Convention

When creating your Materials for IMVU products, you must follow a simple numerical naming convention in order for your Textures to show up in the Previewer. Each Material name must contain a bracketed number at the end of the name.

For example: FrogTexture [2]

The number contained in the brackets is always one number less than the Material index in MAX. Therefore, every time you have a Material in index 1 in MAX, that Material's name must contain [0] at the end of its name. If the index is 6, the Convention is [5]. If the Material is 10, the Convention is [9] and so on. It is actually pretty easy once you know what to do. It is also easy to forget if you've never done it before. Very easy.
Another thing to consider when naming your sub-Materials is that they need to be consecutively numbered. You cannot have four sub-Materials number [0], [2], [7], [22]. If you have four sub-Materials, those Materials must be numbered [0], [1], [2], [3]. Otherwise, you will end up with a product that will eventually not load.

Avatar Material Assignments

The IMVU Avatar comes with a preset number of Materials. Each Material has a unique ID as per the naming Convention listed above. These IDs are used in the active IMVU avatar so please try to follow them when building your Mesh. Here is the list:

  • Material 0 = UpperBody
  • Material 1 = LowerBody
  • Material 2 = Head (Skin)
  • Material 3 = Eyes
  • Material 4 = Hair
  • Material 5 = Eyelashes
  • Material 6 = Eyebrows
  • Material 7 = Skin
  • Material 8 = Shoes
  • Material 9 = Gloves
  • Material 10 = Hat

Reminder: Texture Budgets

Although you should review the Mapping Materials Tutorial , I just want to remind you to keep the following list in mind when creating your Textures for IMVU products:

No Texture should be greater than 512x512 pixels (this is actually a very helpful guideline as the larger your Texture, the worse it looks in the IMVU window. This is due to IMVU having to cram all of your Texture information into just a few pixels. Better to play it safe and keep your Texture small and, surprisingly, more legible)

In the IMVU rendering engine, it is far better to have many small Textures rather than one big Texture. This runs contrary to many other engines wherein puzzle-like Texture collages are used to save rendering budget.
Although we haven't hit a Tiling limit yet, it is recommended that you keep your Tiling down to 40 or so times.
.jpg is the file type of choice. There are a plethora of file types that we support but we have found .jpg to be both the best tasting and most filling.

Smoothing Groups

To avoid Geometrical looking Meshes in IMVU, it is important to make sure that all of the smoothing groups for a given Mesh are set up properly. To learn more, please consult the Smoothing Groups Tutorial.

Morph Targets

You can build a Morph Target for any Mesh in IMVU. However, Morph Targets are not necessary for creating Body Parts. To learn more, please consult the Morph Targets Tutorial.

To learn more about building Avatar Heads, please consult the Avatar Heads Tutorial.

Export Mesh - .xmf

Once you have built your Mesh, applied Material IDs, Mapped your Texture and Weighted your Mesh, it is time to Export your Mesh. When building any other type of Mesh product, you would also Export your Materials. However, Avatar products use the Materials that have already been Exported by IMVU. In fact, when you build your final product, it is highly likely that you will not be Overriding the Materials at all. Rather, it is highly likely that you will only change the Mesh and Textures. To learn more about Exporting any Mesh in IMVU, please consult the Exporting Introduction and the Exporting the Mesh - .xmf Tutorials.

Once you have an Exported .xmf file, it is time to hop into the Previewer. To learn more, please consult the Previewer Introduction and the Avatar Body Part Previewer Tutorial.
© 2018 IMVU All rights reserved