ArticleGuides6 min read

Converting an Accessory for The Sims 4

In this tutorial, I’ll turn a 3D coffee mug into an accessory a Sim can hold. The process is a little simpler than making clothes.

Converting an Accessory for The Sims 4

Originally published on 29 April 2022. The screenshots show the Blender, Sims 4 Studio and Photoshop versions I used at the time.

In this tutorial

  1. What you’ll need
  2. Importing the mug into Blender
  3. Adding the mug’s texture
  4. Fitting the texture and UVs to the CAS layout
  5. Choosing a clone and exporting its mesh
  6. Attaching the mug to the right hand
  7. Importing textures and CAS thumbnails
  8. Setting categories and texture space

What you’ll need

  • Blender 2.82 to fit the model and edit its UVs. You can use another version of Blender or a different 3D editor for this part.
  • Blender 2.70 to attach the mug to the hand bone in the setup shown here.
  • Sims 4 Studio to build the .package file.
  • Photoshop CS6 and the legacy NVIDIA DDS plug-in for texture work. I save the mug’s Diffuse as a PNG in this example.

I picked Cup of coffee by Kisielev Mikhail on Sketchfab (CC BY 4.0). We’ll adapt the mesh and texture to make a mug the Sim can hold in their right hand.

Importing the mug into Blender

In Blender 2.82, choose File → Import → FBX and open the model you downloaded. The viewport may look grey at first: the mug is so big that you’re looking at it from the inside. When you zoom out, it can disappear altogether because it’s beyond the viewport’s clipping distance.

Open the 3D Viewport sidebar with the small plus sign on the right, go to View, and raise the clip End value. For this oversized import I used 100,000 m, which let me see the whole mug. This changes what you can see in the viewport, not the size of the model.

The imported mug in Blender with the viewport clip End setting highlighted

Adding the mug’s texture

The mug has a material, but its texture isn’t connected, so it looks grey. In the Shading workspace, drag the M6_D2 image from the model archive into the Shader Editor. Connect its Color output to Base Color on the Principled BSDF node as shown. I set Roughness to its highest value and Metallic and Specular to their lowest values.

The mug’s image texture connected to Base Color in Blender’s Shader Editor

Fitting the texture and UVs to the CAS layout

The mug is already unwrapped. We only need to move the existing UV islands so that they line up with the texture in the right part of the CAS texture layout PNG.

The Sims 4 CAS texture layout showing the areas reserved for clothing and accessories

In my clothing tutorial, I baked the texture from one mesh to another. This time I’ll do it in Photoshop CS6. Open the layout guide and use the area marked Hat: it gives me the most room for the mug.

For the HQ Mod, these are the texture sizes I used, in pixels (width × height):

  • Diffuse: 2048 × 4096
  • Shadow: 2048 × 4096
  • Specular: 1024 × 2048
  • Normal: 1024 × 1024

The original tutorial also mentions using larger Specular and Normal maps, which makes the .package larger. For a new project, check the HQ Mod team’s texture guide rather than assuming both maps should be doubled.

Add the mug texture on a new layer over the guide. Scale it down without changing its proportions, then position it inside the Hat area.

The coffee mug texture fitted into the Hat area of the CAS layout in Photoshop

Remove the guide layer and save the result as a PNG. I called mine “Diffuse”.

In Blender’s UV Editing workspace, use the folder button to open the PNG you just saved. In the Shading workspace, replace the M6_D2 image in the material with the same PNG.

Opening the new Diffuse image in Blender’s UV Editing workspace

Back in UV Editing, keep the mug in Edit Mode and fit the UV islands to the new texture. These shortcuts help:

  • B: box select.
  • G: move.
  • S: scale. You can follow it with an axis and a factor. For example, S, X, 2 doubles the size along the X axis.
  • R: rotate.

You can also use the tools in the toolbar on the left. Here’s how mine turned out:

The mug’s UV islands aligned with the new texture and the result shown on the mesh

The UVs and texture are ready. Back in Object Mode, I scaled this particular import down with S, 0.001, to one-thousandth of its original size. Then use File → Export → Wavefront (.obj) and save the mug mesh somewhere you can find it again.

Choosing a clone and exporting its mesh

Open Sims 4 Studio and filter the CAS items for an accessory. I chose a left-wrist bracelet from the base game, as shown below. Give the new package a distinct filename. I called mine “TS4 Cup of coffee accessory [Shushilda]”.

Base-game left-wrist bracelets in Sims 4 Studio, with the donor bracelet selected

Open the Meshes tab and click Export Mesh. The exported .blend contains the clone’s mesh and the Sim rig. If the export fails, check that Sims 4 Studio is pointing to the Blender version used by this setup (2.70 in my case).

Open the exported .blend in Blender 2.70. Then choose File → Import → Wavefront (.obj) and bring in the mug. I used Blender’s English interface for this part to avoid problems with localized modifier names in this older setup.

The mug is still too large. Use S, R and G to scale, rotate and move it into place against the female Sim’s right hand, as shown here.

Three views of the mug positioned against the Sim’s right hand

Attaching the mug to the right hand

This accessory only needs one bone: b__R_Hand__. To find a bone’s exact name, make the rig visible and selectable using the eye and arrow in the Outliner. Select the bone and copy its name from the Bone tab.

The right-hand bone selected and named b__R_Hand__ in Bone properties

Select the mug, open Modifiers, and choose Add Modifier → Armature. In the modifier’s Object field, select rig.

The mug’s Armature modifier with rig set as its Object

In Object Data properties, click the plus sign under Vertex Groups. Name the new group b__R_Hand__, exactly like the bone.

Creating a vertex group named b__R_Hand__ on the mug

Enter Edit Mode and select the whole mug mesh. With b__R_Hand__ selected in Vertex Groups, set Weight to 1.000 and click Assign. This assigns all the mug’s vertices to the hand bone. Move the right hand to check that the mug follows it.

All the mug’s vertices assigned to the right-hand vertex group in Edit Mode
The mug following the right hand when the Sim’s arm is posed

In the same Object Data tab, go to UV Maps and rename UVMap to uv_0.

Renaming the mug’s UV map to uv_0 in Object Data properties

In Scene properties, open the S4Studio CAS Tools panel. For this clone, change Type from NONE to GEOM and enter 0000 in the separate Cut field.

The old S4Studio CAS Tools panel showing Type GEOM and Cut 0000

Copy the name s4studio_mesh_1 from the original mesh before deleting that mesh. Give the mug that name and save the .blend with File → Save As. Back in Sims 4 Studio, use Import Mesh and select the .blend you just saved. Once the import finishes, the bracelet mesh should be replaced by the mug.

The mug replacing the bracelet mesh in the Sims 4 Studio preview

Importing textures and CAS thumbnails

In Sims 4 Studio, import the Diffuse PNG you saved earlier. DDS is also an option. For the other texture slots, use the corresponding files from the texture templates ZIP, as in the original workflow. If you want a custom CAS thumbnail, import a 104 × 148 px PNG under Catalog Thumbnail. Add it separately for Female and Male.

Importing the Diffuse texture and setting the female and male CAS thumbnails in Sims 4 Studio

Setting categories and texture space

In the Categories tab, pick the settings that determine where the mug appears in CAS. These are the settings I used:

The category settings picked for the mug in Sims 4 Studio

Switch to Warehouse, select the CAS Part, and set AdditionalTextureSpace to Hat. That matches the area of the texture layout we used for the mug.

The CAS Part in Warehouse with AdditionalTextureSpace set to Hat

Save the accessory and test it in the game.

The finished coffee mug accessory in the Sim’s hand in game

Download the finished mug and poses