Difference between revisions of "Bakes on Mesh"

From Second Life Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="max-width:1024px;">
{{#widget:Redirect|url=/knowledgebase/english/bakes-on-mesh-r1512/}}
__TOC__
''Bakes on Mesh'' is a feature to allow system avatar baked textures to be shown on mesh attachments.
 
== What is a baked texture and why would I want it on mesh? ==
 
If you use a standard system avatar, you can wear several texture layers to customize your skin and add tattoos and clothing layers. To save processing time and provide everyone on any system the same view of your appearance, those textures are "baked" by a server into a single combined texture. Previously if you wanted to use a custom mesh body part and do the same kind of customization, it would need its own texturing system to allow that. In addition, you would usually need to apply an "alpha" texture to the underlying standard avatar body part to hide it so that it doesn't interfere with your custom part.
 
 
With bakes on mesh, you can apply any system skins and other layers to your avatar (you don't need or want the alpha layer), and then tell the viewer to apply the resulting baked texture to your mesh body part. The underlying system avatar part is hidden for you automatically.
 
== Major Features ==
* Any face of a mesh object can be textured using one of the server baked textures.
* The corresponding region of the system avatar is hidden if any attached mesh is using a baked texture.
* Additional texture bake channels have been introduced to give more control over how meshes get textures.
* A new “universal wearable” is now supported to allow setting of the new texture channels.
 
== Benefits==
* Avoid the need for appliers, leading to an easier customization workflow
* Avoid the need for onion avatars, leading to fewer meshes and fewer textures at display time
* Avoid the need to sell full-perm meshes. The user can customize any mesh that’s set to use Bakes on Mesh by simply equipping the appropriate wearables, without needing to modify the mesh itself.
 
=== Wearable and Bake Channels: ===
 
Avatar wearables have traditionally been baked into six different textures (BAKE_HEAD, BAKE_UPPER, BAKE_LOWER, BAKE_EYES, BAKE_SKIRT, BAKE_HAIR) by the baking service. These textures are derived by compositing the corresponding textures in the various wearable items on your avatar. For example, a shirt sets the UPPER texture, and multiple shirts layered together would contribute to the resulting BAKE_UPPER texture.
 
 
The Bakes on Mesh project added five new bake channels as well: LEFT_ARM_BAKED, LEFT_LEG_BAKED, AUX1_BAKED, AUX2_BAKED, AUX3_BAKED. Unlike the original textures, the system avatar does not use any of these textures. They are purely extensions to allow more control over mesh appearance.
 
* LEFT_ARM_BAKED and LEFT_LEG_BAKED are intended to help with making mesh avatars where the left and right limbs have different textures.
* The AUX channels are general purpose, and could be used for body regions not possessed by system avatars (such as wings) or for other purposes.
 
Altogether this gives 11 possible channels for wearables to use for textures, and for the baking service to produce.
 
 
=== Universal Wearables ===
 
New channels aren’t useful unless there is some way to wear items that use those channels To meet this need, a new wearable type called Universal has been added. The Universal wearable has slots corresponding to all 11 of the new and old bake channels. In layering order, universal wearables go between the tattoo and body layers.
 
=== Setting a mesh to use baked textures ===
 
You can now apply these textures to the diffuse textures of your avatar’s attachments:
 
# Right click on the attachment, and click edit and from the edit face menu select textures.
# Click the diffuse texture icon to open up the texture picker.
# The texture picker has an extra radio button mode called 'bake' for selecting server bakes. The 'bake' radio button mode has a dropdown for selecting server bake textures.
 
When an attachment is using a baked texture, the corresponding base mesh region of the system avatar is hidden.
 
If a mesh face is set to show a baked texture but is not attached to an avatar, you will see a default baked texture. If you are using an older viewer without bakes on mesh support, then faces set to show baked textures will also display as the default baked texture, and base mesh regions will not be hidden.
 
{| class="wikitable" style="table-width: 100%;"
|-
|[[File:BOM_Fallback_Head.png|64px|none]]
|[[File:BOM_Fallback_Upper.png|64px|none]]
|[[File:BOM_Fallback_Lower.png|64px|none]]
|-
|[[File:BOM_Fallback_Eyes.png|64px|none]]
|[[File:BOM_Fallback_Skirt.png|64px|none]]
|[[File:BOM_Fallback_Hair.png|64px|none]]
|}
 
''The “fallback” textures for the original bake channels. Viewers that don’t support Bakes on Mesh will show these images in place of the baked textures. You will also see these on any non-attachment objects that are set to use Bakes on Mesh. The new bake channels have similar fallback textures.''
 
 
=== Working with Animesh ===
 
Animesh objects are treated somewhat differently when attached. Because they have their own skeletons, they are textured independently of the avatar they are attached to. An attached animesh object does not support Bakes on Mesh, and will display any Bakes on Mesh textures using the placeholder textures described above.
 
 
=== A Step-By-Step Example ===
 
Here we will convert a system avatar into a simple mesh avatar that uses bakes on mesh:
 
# Log in using a Bakes on Mesh enabled viewer
# Enable the “Develop” menu. If not present, go to Me -> Preferences, and in the Advanced tab click “Show Develop Menu”.
# In the Develop menu, pick Develop -> Avatar -> Character Tests -> Test Male. You will now see a standard system avatar.
#* [[File:BOM_Standard_System_Avatar.png|64px|none]]
# You will need a mesh avatar to replace this system avatar. In a web browser, bring up [https://jira.secondlife.com/browse/BUG-139234 https://jira.secondlife.com/browse/BUG-139234] and download the attached file <code>'''aditya_90.dae'''</code>.
# In the Second Life viewer, go to build->upload->model and pick the aditya_90.dae file. In upload options, check include skin weight. Set the model name to aditya_90.
#* [[File:BOM_Upload_aditya90.png|64px|none]]
# Click calculate weights and fee, then upload. You should now have a mesh model in your inventory called aditya_90. Attach this to yourself by double clicking it in inventory.
#* [[File:BOM_Mesh_Superimposed.png|64px|none]]
# At this point you have a mesh, shown with the white default texture, superimposed on your system avatar. Now we need to convert the mesh to use Bakes on Mesh. This will also hide the system avatar as we go.
# Right click your avatar and pick edit. In the edit dialog, pick “Select Face”. Click the avatar’s chest to select the upper body.
# In the Texture tab, click the white texture area.
#* [[File:BOM_Texture_Tab.png|64px|none]]
# Pick the “Bake” texture option and the “BAKED_UPPER” value in the pulldown. Then click OK.
#* [[File:BOM_Baked_Upper_Texture.png|64px|none]]
# Your avatar should now show the upper body correctly textured without excess white material. What you are seeing is the mesh surface textured with the upper body baked texture. The system avatar for the upper body is hidden.
# Now repeat the process for the other body regions.
#* Select face on the head area and set it to used BAKED_HEAD
#* Select face for each of the eyes and set them to use BAKED_EYES
#* Select face for the lower body and set it to use BAKED_LOWER
# Getting all the faces selected and modified correctly is a bit tricky. If something gets messed up just try again with any face that gets messed up. At the end the avatar should look like this:
#* [[File:BOM_Hair_Wrong.png|64px|none]]
# The hair looks wrong because it is an attachment that was not built for this mesh. You can get rid of it by right clicking and choosing detach.
#* [[File:BOM_Hair_Detached.png|64px|none]]
 
At this point, you have a mesh avatar that’s fully configured to use Bakes on Mesh. You can now customize it the same way you would with the system avatar. For example, take off an item of clothing:
[[File:BOM_Remove_Clothing.png|64px|none]]
 
Or customize something like eye color using the sliders:
[[File:BOM_Eye_Color.png|64px|none]]
 
If you want to return to the system avatar appearance, just detach the mesh:
[[File:BOM_Detach_Mesh.png|64px|none]]
 
 
To return to system avatar appearance:
[[File:BOM_System_Avatar_Appearance.png|64px|none]]

Latest revision as of 06:51, 9 January 2019

Redirecting to http://community.secondlife.com/knowledgebase/english/bakes-on-mesh-r1512/