Skip to content

Uploading Models to Sketchfab

Sketchfab is a website for sharing and displaying 3D models. Once your model is on Sketchfab, anyone with the link can rotate, zoom, and explore it in a web browser. You can also embed the model in another web page.

In this exercise, you will upload the OBJ and MTL files that you exported from Slicer, fill in the model settings, adjust the 3D settings, and then share the model.

You need a Sketchfab account

Create a free account at sketchfab.com before you start, and make sure you are logged in.

Upload a New Model

You need both the .obj and the .mtl file. The OBJ file holds the surfaces; the MTL file holds the colors of each segment. The two files should have the same name, just different extensions.

  1. Click the orange Upload button at the top right of any Sketchfab page.
  2. In the Upload a new model window, drag both the .obj and the .mtl file into the dashed box, or click browse and select both files.

    Sketchfab upload dialog

  3. Check that both files are listed in the box.

    OBJ and MTL files listed in the upload dialog

  4. Click Upload Files.

Large OBJ files

You can also compress the OBJ and MTL files into a single ZIP file and upload that instead. Sketchfab unpacks the ZIP and lists the files inside. ZIP files from the Mac Finder include extra __MACOSX entries; these are harmless, but they also show up in the file list.

Model Settings

As soon as the upload starts, Sketchfab opens the Edit model page. The left panel shows the upload progress (Upload, Processing, Ready to publish). You can fill in the settings while the model processes.

Edit model page

  1. Title: Sketchfab fills this in from the file name. Change it if needed.
  2. Description: Add a short description of the model, e.g. which structures were segmented and that the model was made in 3D Slicer.
  3. Categories: Select Science & Technology from the dropdown.
  4. Tags: Type a tag and press Return after each one. Be sure to add the ucdenver and MSMHA tags.
  5. Download: Select Free.
  6. Click Save at the bottom right.

    Save and Save & Publish buttons

Select Free download

Be sure to set Download to Free. Other download options may give you a warning that you have run out of credits.

Your model is a draft until you publish it

Save keeps your model as a Draft: only you can see it. The model becomes visible to others only after you click Save & Publish (or Publish). Notice the warning in the right panel: Sketchfab automatically deletes a draft about one month after upload unless you publish it (the panel shows the exact date).

Edit 3D Settings

Once the model has finished processing, click the Edit 3D Settings button (below the model preview on the left) to open the 3D editor.

The editor has a row of tabs across the top of the left panel: General (gear), Lighting (light bulb), Materials, Post Processing Filters (magic wand), Annotations (pin), Animation, and AR/VR.

Save your 3D settings

Changes in the 3D editor are not saved automatically. Click Save Settings at the top right before you leave the editor. Do not click Publish unless you are ready to make your model public.

Exit, Publish, and Save Settings buttons

General

Models exported from Slicer usually do not load in the right orientation. Use the Straighten model controls to rotate the model.

  1. Under Straighten model, click the arrows next to X, Y, or Z. Each click rotates the model 90° around that axis.
    • For this model, one click on the right arrow next to X turns the model so that the lungs are on top and the aorta runs vertically.
  2. Check Show advanced rotation to show a rotation gizmo in the viewer. Drag the colored rings to fine-tune the orientation.

General settings with the model straightened

Background

Expand the Background section (still on the General tab). There are three Background type options: Environment, Image, and Color.

Environment

The Environment option places your model in a 3D scene.

  1. Click Environment.
  2. To pick a different scene, click the change link next to "Current environment". This takes you to the Lighting tab, where you can pick a scene from the Environment dropdown. Then switch back to the General tab.
  3. Uncheck Ambient environment to show the scene clearly.
  4. Set Blur to 0.
  5. Increase the Brightness.

Environment background

Color

Or you can set the background to a solid color.

  1. Click Color.
  2. Click in the color picker, or type a hex value (e.g. #131111 for near black) in the box below it.

Color background

Lighting

  1. Click the Lighting tab (light bulb icon).
  2. Turn the Lights toggle ON so you can control the lights.
  3. Click Load Lighting Preset, then select a preset (e.g. Three-point Lighting).

Lighting presets

Materials

The Materials tab changes the appearance of each segment (material) in your model.

  1. Click the Materials tab.
  2. Select a material from the dropdown at the top of the panel. The selected segment is highlighted in the viewer.
    • The material names come from the MTL file that Slicer wrote (e.g. mtl60716), not from your segment names. Click through the list to find the segment you want.
  3. Scroll down to Opacity and make sure it is ON. Expand the section and lower the value (e.g. 0.4) to make the segment see-through.

Lung opacity set to 0.4

Post Processing Filters

Many settings here change the overall appearance of your model.

  1. Click the Post Processing Filters tab (magic wand icon).
  2. Try turning on Sharpness and Vignette.
  3. Expand a filter (click its name) to adjust its settings.

Post processing filters

Annotations

Annotations are numbered labels attached to points on your model.

  1. Click the Annotations tab (pin icon).
  2. Double-click on a structure in the viewer to place an annotation.
  3. Type a Title and a Description, then click OK.
  4. To change an annotation later, click Edit next to it in the left panel. Click the camera icon to save the current view for that annotation.

Adding an annotation

Note

Annotation titles and descriptions are visible to anyone who can see your model page.

Save the View

  1. Rotate and zoom the model in the viewer until it looks the way you want people to first see it.
  2. Click Save View (top left of the viewer). This sets the model's thumbnail and initial camera view.
  3. Click Save Settings, then click Exit.

Model Page

After you exit the editor, you see your model's page. While the model is a draft, the page shows a yellow This model is a Draft box with a Publish button, and the title has a Draft label.

Draft model page

Publish

When you are ready to share your model, click Publish. Sketchfab confirms that the model has been published and shows a short link you can copy right away. Click Got it! See my model to return to the model page.

Your model has been published

Share and Embed

Once your model is published, the model page shows Download 3D Model, Add To, Embed, and Share links below the model. You can interact with the model by dragging on it.

Published model page

  1. Click Share to get a short Direct link to your model. Click Copy to copy it.

    Share dialog

  2. To place the model in another web page, click Get Embed Code in the Share dialog (or click Embed on the model page). The Embed viewer window shows a preview, options for the embedded viewer, and the embed code. Click Copy to Clipboard to copy the code.

    Embed viewer

Example: Embedded Model

This is the embed code for the model uploaded in this exercise, pasted into this page. Drag on the model to rotate it, and click the numbered annotation to read it.