Difference between revisions of "Mesh/Uploading a multi-face mesh"

From Second Life Wiki
Jump to navigation Jump to search
(36 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Multi-lang}}
{{Navbox/Mesh|advanced}}
__NOTOC__
__NOTOC__


Line 5: Line 7:
Just as we can texture individual faces of a primitive differently, we can texture individual faces of meshes differently if the mesh has been properly set up for materials before import.
Just as we can texture individual faces of a primitive differently, we can texture individual faces of meshes differently if the mesh has been properly set up for materials before import.


== Obtain a Second Life compatible mesh file ==
== Adding Materials With Your 3D Program ==
The first step is to get a multi-material mesh file onto your computer that you want to upload to SLSL's mesh import is able to read [https://collada.org/mediawiki/index.php/COLLADA_-_Digital_Asset_and_FX_Exchange_Schema COLLADA] ("''.dae''") files.
To add Materials in Blender, refer to these two pages in the Blender Manual regarding creating/adding materials, and applying multiple materials to a model.
* Click on this link -- https://collada.org/owl/download.php?sess=0&parent=131&expand=1&order=name&curview=0&binary=1&id=707 -- to download the "''seymour.dae''" COLLADA file.
* http://wiki.blender.org/index.php/Doc:2.5/Manual/Materials/Options
* Save the file anywhere on your hard drive where you can find it subsequently.
* http://wiki.blender.org/index.php/Doc:2.5/Manual/Materials/Multiple_Materials
 
==Autodesk Software users==
If you are using Autodesk software to create your multifaced mesh, due to the way the uploader is currently behaving [ June, 2016 ] , please refrain from using spaces in your material names.  Autodesk 3ds max by default names most 'Standard' materials "Material #33", "Material #34", "Material #35".  The mesh uploader presently is truncating those names to all be "Material" , "Material" , "Material" (ignoring the space and everything after it) which then makes all MatID faces reference the same texture channel, creating some sort of abstract object that seems to have multiple material faces in world, but simply resets the moment it's moved, picked up, or adjusted in any fashion.  To avoid this, try renaming your materials "Mat_A" , "Mat_B" , "Mat_C" or some other sort of naming convention that does not use spaces.  Note: Underscores are perfectly valid characters.
 
==Maya 2012 users==
* selecting faces, apply few different lambert materials to your object, up to 8 per object.
* then export as FBX file, don't export in maya as dae directly, it won't work.
* then use the Autodesk FBX standalone converter version 2011.3 to convert to Collada.
* the dae file is then ready for import.
download the needed standalone Collada exporter here:
* http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=16126812
 
== Get a Second Life compatible mesh file ==
The first step is to get a multi-face mesh file that you want to upload to Second LifeSecond Life's mesh import is able to read [https://collada.org/mediawiki/index.php/COLLADA_-_Digital_Asset_and_FX_Exchange_Schema COLLADA] ("''.dae''") files.
# Click this link -- https://collada.org/owl/download.php?sess=0&parent=131&expand=1&order=name&curview=0&binary=1&id=707 -- to download the "''seymour.dae''" COLLADA file.
# Save the file anywhere on your hard drive where you can find it later.


== Upload the mesh file to Second Life ==
== Upload the mesh file to Second Life ==
[[File:MeshWalkthrough-Complex_Mesh_Upload-Import Model.png|300px|thumb|Import Model Menu]]
[[File:Mesh_upload_model_seymour.png|300px|thumb|Upload Model window]]
Next, take the file that you downloaded to your computer and upload it to SL. (Note that during beta, uploading is free!)
Upload the mesh file from your computer to Second Life:
* Open the main menu "''Build''" menu, choose "''Upload''", click "''Model...''".
# Select '''Build''' > '''Upload''' > '''Model''' from the menu at the top of the Second Life Viewer.
*: (Alternately, open your Inventory View, click the "''+''" menu button, "''Upload''" > "''Model...''").
#: Alternatively, open '''My Inventory''', click the '''+''' button, and select '''Upload''' > '''Model'''.
*: This will cause a file dialog box will open.
#: A file upload window opens.
* Find and select the "''seymour.dae''" file from your computer.
# Find and select the <code>seymour.dae</code> file from your computer.
*: The Import Model window will then appear.
#: The Upload Model window appears.
* Click the "''Generate LOD''" button at the top of this window.
# Enter a name for your model in the '''Name''' field.
*: The viewer will take a moment to process this, then the "''Upload button''" will become clickable.
# Click the '''Upload''' button.
* Click the "''Upload''" button.
#: A new asset will appear in your inventory in the '''Objects''' folder.
*: You will see 2 new assets in your inventory:
#: The new asset is named '''boyShape'''.
*: One will appear in your inventory's top-level "''Meshes''" folder, the other in your top-level "''Objects''" folder.
{{Warning|While the Seymour asset does contain a rig, it is incompatible with the current Mesh Project Viewer code. If you enable '''Skin Weight''' before uploading, Seymour's skin will be generated incorrectly. You'll see the incorrect behavior in the tool preview window, and if uploaded, you'll see a group of large flickering triangles inworld.}}
*: These will appear as "''boyShape''" for the seymour object.
* We only care about the asset in your "''Object''" folder right now.
*: Warning : Current LOD requirements are failing for many meshes.  LOD requirements and accounting is scheduled to be revised by early October. In the meantime, these errors may cause Seymour to fail to be uploaded.


== Add your mesh object to the world and edit it ==
== Add your mesh object to the world and edit it ==
[[Image:MeshWalkthrough-Complex Mesh Upload-Edit Face.png|right|300px|thumb|Edit goggle color]]
[[Image:MeshWalkthrough-Complex Mesh Upload-Edit Face.png|right|300px|thumb|Edit goggle color]]
You should now be able to manipulate your mesh as if it were like any other object in your inventor
You can now manipulate your mesh as if it were any other object in your inventory:
* Find your "''boyShape''" object in your "''Objects''" folder; if you're having trouble or have a large inventory, use your inventory's "''RECENT''" tab view.
# Find your '''boyShape''' object in your '''Objects''' folder; if you're having trouble or have a large inventory, use your inventory's '''RECENT''' tab.
* Drag the new object from your "''Objects''" folder to anywhere on the ground where you have permissions to build.
# Drag the new object from your '''Objects''' folder to anywhere on the ground where you have permissions to build.
*: The model will appear on the ground.
#: The model appears on the ground.
* Right-click on the model and select "''Edit''".
# Right-click the model and select '''Edit'''.
*: The generic "''Edit Object''" floater will appear.
#: The Edit Object window appears.
* Click "''Select Face''" in the top of the build window.
# Click the '''Select Face''' radio button.
* Left-click the goggle lenses of the model.
# Left-click the goggle lenses of the model.
* Click the color swatch in the edit tools and change the color, or click the texture swatch and change the texture.
# Click the color swatch in the Texture tab and change the color, or click the texture swatch and change the texture.
* Add color and/or textures to other parts of the model (gloves, goggle frame, face, or cap) in the same way.
# Add color and/or textures to other parts of the model (gloves, goggle frame, face, or cap) in the same way.
 


[[Category:Mesh]]
{{KBvideo|qorvd6KJSuE|640|505|type=youtube}}

Revision as of 17:30, 22 June 2016


MeshWalkthrough-Complex Mesh Upload-Splash.png

Just as we can texture individual faces of a primitive differently, we can texture individual faces of meshes differently if the mesh has been properly set up for materials before import.

Adding Materials With Your 3D Program

To add Materials in Blender, refer to these two pages in the Blender Manual regarding creating/adding materials, and applying multiple materials to a model.

Autodesk Software users

If you are using Autodesk software to create your multifaced mesh, due to the way the uploader is currently behaving [ June, 2016 ] , please refrain from using spaces in your material names. Autodesk 3ds max by default names most 'Standard' materials "Material #33", "Material #34", "Material #35". The mesh uploader presently is truncating those names to all be "Material" , "Material" , "Material" (ignoring the space and everything after it) which then makes all MatID faces reference the same texture channel, creating some sort of abstract object that seems to have multiple material faces in world, but simply resets the moment it's moved, picked up, or adjusted in any fashion. To avoid this, try renaming your materials "Mat_A" , "Mat_B" , "Mat_C" or some other sort of naming convention that does not use spaces. Note: Underscores are perfectly valid characters.

Maya 2012 users

  • selecting faces, apply few different lambert materials to your object, up to 8 per object.
  • then export as FBX file, don't export in maya as dae directly, it won't work.
  • then use the Autodesk FBX standalone converter version 2011.3 to convert to Collada.
  • the dae file is then ready for import.

download the needed standalone Collada exporter here:

Get a Second Life compatible mesh file

The first step is to get a multi-face mesh file that you want to upload to Second Life. Second Life's mesh import is able to read COLLADA (".dae") files.

  1. Click this link -- https://collada.org/owl/download.php?sess=0&parent=131&expand=1&order=name&curview=0&binary=1&id=707 -- to download the "seymour.dae" COLLADA file.
  2. Save the file anywhere on your hard drive where you can find it later.

Upload the mesh file to Second Life

Upload Model window

Upload the mesh file from your computer to Second Life:

  1. Select Build > Upload > Model from the menu at the top of the Second Life Viewer.
    Alternatively, open My Inventory, click the + button, and select Upload > Model.
    A file upload window opens.
  2. Find and select the seymour.dae file from your computer.
    The Upload Model window appears.
  3. Enter a name for your model in the Name field.
  4. Click the Upload button.
    A new asset will appear in your inventory in the Objects folder.
    The new asset is named boyShape.
Warning!

While the Seymour asset does contain a rig, it is incompatible with the current Mesh Project Viewer code. If you enable Skin Weight before uploading, Seymour's skin will be generated incorrectly. You'll see the incorrect behavior in the tool preview window, and if uploaded, you'll see a group of large flickering triangles inworld.


Add your mesh object to the world and edit it

Edit goggle color

You can now manipulate your mesh as if it were any other object in your inventory:

  1. Find your boyShape object in your Objects folder; if you're having trouble or have a large inventory, use your inventory's RECENT tab.
  2. Drag the new object from your Objects folder to anywhere on the ground where you have permissions to build.
    The model appears on the ground.
  3. Right-click the model and select Edit.
    The Edit Object window appears.
  4. Click the Select Face radio button.
  5. Left-click the goggle lenses of the model.
  6. Click the color swatch in the Texture tab and change the color, or click the texture swatch and change the texture.
  7. Add color and/or textures to other parts of the model (gloves, goggle frame, face, or cap) in the same way.


<videoflash type="youtube">qorvd6KJSuE|640|505</videoflash>