Adjust the Character Shape
After you got your Avastar character you might want to change its shape, or maybe you prefer to work with a Male character instead of the default female Avastar? This is where the Appearance Sliders Section comes into play:
How to use the Appearance sliders - Read more...
In a Nutshell: We support the same Shape Editing System that you can find in SL, OpenSim or other comparable worlds. You find the Avatar Shape Editor in the N-Panel – Avastar Tab.
- Go to object mode.
- Select the Rig (LMB(i) on the yellow circles around the mesh).
- Open the N-Panel – Avastar Tab
- Locate the Avatar Shape Editor (see image).
Note: The Avatar Shape Editor is only visible when you have selected either an Avastar Rig or a mesh that is bound to an Avastar Rig.
The UI Elements of the Avatar Shape Editor
It looks small and it is easy to use, but it is also a very powerful tool in your daily life with Avastar. So there is a lot of activity going on behind the scenes. The tool actually loads a complex extra set of data and this consumes a few seconds of load time. Because of this you sometimes need to …
Load Avatar Shape Editor…
When you have just started Blender and opened your project file, then you find quickly that the Avatar Shape editor is not yet available. Instead you find a button to load it…
You only need to load the Avatar Shape editor once. It then keeps available as long as Blender is running, even when you switch to other blend files.
The Avatar Shape Editor is divided into 3 sections…
Shape Presets Section
The top row of the Panel already contains some actions:
- The info icon: Displays a detailed description of the Panel. (Left Click the mouse button)
- The checkmark: Allows to disable the entire Shape slider System. You sometimes disable the sliders when you are working on some tricky Rigs from very old projects. We recommend to keep the panel always active.
On the second row you find some very powerful shortcuts, from left to right:
- Lock/Unlock Icon: to enable/disable locking of the Avatar Shape editor to prevent unintentional changes (see below)
- Orange Human Icon: Set SL Default Shape (Identical to create new Shape in SL)
- White Human Icon: Set the SL Neutral Shape (see additional note (*) below) when you set the SL Neutral Shape, Avastar by default locks the display to avoid unintentional changes.
- Green Human Icon: (Only for Custom Meshes) Reset the Shape back to the shape that was used when you bound the mesh top the armature
- Export Shape to File Icon: Store the current shape to File
- Import Shape from File Icon: Load a Shape from File and apply to the Sliders
- Shape Presets Selection: Here you can add your own Slider configurations. When you click the white “+” sign the current shape slider values get stored as a new Preset (see also below)
More about the Lock Mode
We added the Lock so that you can not modify your appearance unintentionally. The Lock mode is automatically enabled when you choose the White Stickman icon (the neutral SL Shape, see above).
However, you always can Unlock the Lock by clicking on the lock icon. then you can again modify the sliders as you like.
Note: When you use a rig for Animesh then the sliders are automatically disabled and can not be enabled again (New since Avastar-2.93).
The Shape name
We have placed the name of the currently selected Shape below the Icon row. In the image you see the current Shape is the Default Shape. This name changes whenever you select either one of the icons in the icon row, or when you select a shape from the Shape Presets selection menu.
If you modify one or more sliders after you have selected the shape, then the Shape name is marked as (modified) (see image)
(*) Situations where the Usage of the SL Neutral shape (White Human Icon) makes sense
- Creating Animesh: When you intend to use your mesh as SL Animesh then please make sure you select the White Human Icon before you do your export. Please inspect your mesh carefully and fix any deformations. Then export your Mesh. This makes sure that what you export will be the same as how your Animesh will look later when it moves in world.
- Import from other tools: The White Human preset may be useful when you bind to a mesh that was made for the SL Skeleton in its neutral shape (like workbench or avatar.blend, or imports from other tools like Maya or 3DS Max)
- Working without Shape Editor: When you intend to disable the Shape Editor, then we recommend to first select the White Human preset and also use the female (gender) option. And finally disable the Shape Editor. See the section Shape Sliders and Custom Rigs below.
The Shape Presets Selector
The Shape Preset Selector is used to store and recall your custom Shapes. For example when you attempt to work with a fixed set of Standard Shapes, you can create Presets for each of your supported Shapes.
All you need to do is:
- Define your shape (by moving the Shape Sliders, see below)
- Create a new Preset (with a unique name) by clicking on the + icon
Note: Presets are stored globally (outside of the current Blend file), so all defined presets are available at any time in any project. Avastar is shipped with a few example presets [/box]
Shape Properties Section
- Use Bind Pose: Treat the current Restpose of the Rig as a Bind Pose. This is only used for modified Rigs (e.g. A-Posed Rigs)
- Shape as Pose: Use Blender’s Animation system for Shaping (experimental, disabled by default, see below)
- Lock Scales: equivalent to the Lock Scales button in the viewer’s Mesh Uploader
- Gender Selector: Allows to switch the Rig between Female(Default) and Male. A rough estimate of the Avatar Height in SL is displayed besides the selector
More about Shape as Pose (and Aligned Rigs)...
Avastar has implemented the SL Shape slider system since a long time. However this slider system is rather slow because it has to recalculate the entire set of vertices for all bound meshes whenever a slider changes its value. So Avastar becomes very slow when the number of vertices gets high. And because of that we have been looking for a better implementation of the Slider system.
Especially we have tested if it is possible to replace our slider system with Blender’s own skeletal animation system. This would make the sliders much faster, But on the other side we need to support bone scale in Pose mode, so that we can get back the exact same behavior as in SL. But there is a pitfall…
Since we now have bone scale in pose mode, we also have to take special care of the bone alignments. Unfortunately it turns out that we have to add some nasty changes to the Skeleton in order to get the sliders back to work exactly as they do in SL.
Especially we have to take care that each bone in the rig has to be aligned to one of the Axes in Armature space. Which means the bone tail of a bone can no longer match its childbone head. Such modified rigs are also named Aligned Rigs. Well, we made it work, but it does not really make the creator’s life easier.
For example when it comes to animations, the creator has to be very careful to not include scale data into the actions. And, much worse, we also may get a mixing of bone translation due to Shape sliders and bone translation due to Animation. That alone gives headache when we later want to export an animation to Secondlife. And there may be other pitfalls that we have not even spotted yet.
From the above explanation it becomes clear that we want to enable Shape as Pose only when the rig is aligned. The user interface has been made aware of this. So for now the Shape as Pose option is disabled when the rig is not aligned.
And we have added a shortcut to convert the Rig to an aligned rig.
When Avastar detects tan aligned rig, then it automatically enables the Shape as Pose option. And in addition it adds a button that allows to revert the bone alignment back to how it was before (Standard Avastar Rig)
Testing and experimenting
So (at least for now) we provide the Shape as Pose feature and the Align bones to Rig feature for experimenting but we neither recommend to use it nor do we enable it by default. Actually you need to enable advanced rig options in the Addon Properties to get this feature to work.
Important: If you want to play with this feature and the corresponding Aligned Rigs feature, then please read the Aligned Rigs document first:
More about Bind Pose...
For experts: In easy words the Skeleton uses an edited custom Rig, but it is internally treated as if it where in the original SL Restpose. Note that the Bind Pose feature fully replaces the ancient implementation from Avastar-1 that was named Alter to restpose.
In short terms: The support for bind poses makes it much easier for rigging content for bodies which have been created for Rest Poses other than the SL T-Pose (which is the SL rest pose). For example some Developerkits are made with an A-Posed Restpose. For a much more detailed explanation please read the page Rest- & Bind-Pose
The Sliders Section
The section subpanel of the Avatar Shapes Editor contains the Shape Sliders. the sliders are organized almost identical to the Shape Editor in SL. The values assigned in SL match exactly with the slider values in Blender.
- Some sliders have a Blue Bone icon on their left side. This indicates the slider affects the Basic SL deform bones (bone sliders).
- Some sliders have an orange bone on their left side. This indicates the sliders affect fitted Mesh bones (Collision Volume bones)
- When A volume bone has no weight map defined then the orange bone changes to a grey magnet icon indicating this slider affects the volume bones but does not modify the mesh.
- Sliders with no icon on the left side affect only the System Character mesh (Morph sliders). They have no influence on your Custom Meshes.
The yellow dots (icons) on the right side of the sliders appear when the slider value has been changed from its default value. Click on these orange dots to reset the corresponding Slider Value to its default (Then also the icon disappears)
- Sliders with a purple colored Bone Icon on their left side indicates the sliders affect the Extended deform bones. But note: Some sliders affect more than one bone type. This is not indicated in the Avastar Appearance Settings. But please take a look at the Bone-Slider map (see next section).
Note: The green dot icon on the Top Right of the section panel resets the entire Slider Section to its Default Values.
Slider to Bone Mapping
Avastar maintains a built in mapping between sliders and affected bones. The mapping is hidden as a pull down list.
The list is expanded/collapsed by clicking the leftmost icon of a slider. The bone list contains
- Weight status: a Blue dot marks the Bone
is weighted to the active Mesh(*)
- Bone Name
- ‘Trans’: The slider moves the bone
- ‘Scale’: The slider scales the bone
(*): If the active object is an armature, then all bones are marked with blue dots.
Note: The slider mapping is directly taken from the Avatar definition files. It is supposed to be an exact mapping.
Shape Editor and Custom Rigs
In general, the Shape Editor also works when the rig has been edited (when the Armature was modified in edit mode). However the Shape Sliders behave slightly different for bones which have been edited. Especially when sliders not only scale bones but also translate them (like for example the eye distance slider or the Shoulder distance slider) then as soon as the bones are edited, they only can be rotated and scaled. Any translation component is then suppressed!
The Shape Editor in Avastar behaves in the same way as its counterpart in SL, but we have added a visual hint, that indicates when a slider affects one or more bones with custom joints…
Assume you have edited the Shoulder Bones and separated them a bit (see image). This means the Shoulder bones (actually mShoulderLeft and mShoulderRight to be precise) are now treated differently. Hence we have marked all sliders which directly move the Shoulders with a red background color (see below).
Red Sliders (What does this indicate?)
One pretty obscure feature of the SL appearance slider system is that it distinguishes between bones with edited joints and bones without edited joints. As soon as a joint is edited (for example when a bone is moved out of place in Armature edit mode), all sliders which directly affect the bone no longer apply bone translations to the bone.
However Bone scaling remains intact even for edited Bones. To make this more visible all sliders which affect edited bones are marked with a red background (see image).
In this example you see the red Shoulders slider and the Torso Muscles slider indicating that those sliders no longer translate their associated bones.
If you want to know which bones are affected, then you can open the Details view (click on the bone left to the slider name) and see which bones are locked for translation (see image)
Rebind after Edit (Important to know!)
Whenever you edit a custom mesh or one of its Shape keys (if it has), Avastar marks the mesh as modified and adds a Rebind all Meshes button on top of the Appearance sliders panel.
Important: Since Avastar 2.81 we have added an Automatic Rebind option which is enabled by default. You set the Auto Rebind option in the Skinning Panel.
Working only with the SL Restshape
By default the Avatar Shape Editor is enabled. This allows you to test the behavior of your meshes in regard to the Avatar Mesh shape sliders in SL, before the meshes are even exported. However, sometimes a rig becomes so complicated and the creator decides that the usage of the Avatar Shape Editor is actually not wanted. In this case Avastar allows you to disable the Avatar Shape editor by unchecking the check mark in the header of the Appearance panel.
Important: When you want to disable the Avatar Shape editor, then it is best to set the white Human Shape mode first (see above). This makes sure that your rig matches the neutral skeleton. While this is not strictly necessary we still recommend that you enable the white Human shape prior to disabling the Shape Editor. Then you can be sure that if you ever want to enable the Shape editor again, you will not suffer from unexpected deformations of the skeleton.
- We have added 4 extra sections (Changed, Fitted, Extended and Skeleton) which do not appear in the Second Life Shape editor:
- The Changed section is empty by default and will be populated by the list of changed Shape sliders of your Avastar.
- The Fitted Section contains all Sliders which affect Fitted Mesh Bones (Collision Volume Bones).
- The Extended section is the collection of sliders which affect the Extended Bones.
- The Skeleton section (see image) contains all sliders which affect the bone length of the Avastar character.
- On top of the list (in the Section Header) you see a green dot (a button actually). When clicked this button resets all shape sliders of the current Section to its factory defaults.
- Each slider can be dragged, or you can click on it and then type in a number.
- If a slider has been changed then you see a yellow dot (reset button) right to the slider. Clicking on that icon resets the slider to its default value.
Bake to Mesh:
This function makes all slider changes permanent for the active (and selected) Custom Mesh. Take care: This function deletes all Shape keys (should you have defined Some) and the Mesh gets permanently and irreversible changed!
Hint: This option is not available (greyed out) for the Avastar Meshes.
Special Feature: The Mesh deformer
The Mesh deformer (not an Avastar feature) is an old development that came about a couple of years ago, but the project has never gone public in Second Life. However we keep basic support for the Mesh deformer available, because other compatible online worlds might possibly support the Mesh deformer.