Skip to main content
Skip table of contents

How to create a digital T-Shirt

https://youtu.be/n0W1BQK6qgQ

T_shirtGarment 2.zip

Marvellous Project Files.zip

Measure your T-shirt Garment

First of all , it’s crucial to obtain accurate measurements of critical areas of the T-Shirt. 

You have to consider:

  1. Front Length: measure from the highest point of the shoulder to the bottom edge line of the t-shirt.

  2. Front Length 2: the lowest point of the neck circumference to the bottom edge line of the t-shirt.

  3. Back Length: the lowest point of the neck circumference, may consider the midpoint of the t-shirt, to the bottom edge.

  4. Chest Width.

  5. Waist Width.

  6. Hem Width.

  7. Shoulder Width.

  8. Shoulders Length: width across both shoulders.

  9. Sleeve Length.

  10. Armhole Depth: the top of the shoulder seam to the underarm point.

  11. Sleeve Width.

  12. Side Length: the underarm point to the hem.

  13. Neck Circumference.

  14. Neck Width.

These measurements will serve as a foundation for digitalizing the T-shirt Garment and creating an accurate digital pattern.

Next, we will create specifications for this garment in outfitxr.io.

  1. Log in to your account and navigate to the menu on the left. Click on "Products". If no products are added, click "Add" to add a product. Enter the product name and click "Save." If nothing is visible, refresh the page.

  2. Click on "Edit" and go to the "Specification" tab.

image-20240115-121057.png
  1. Capture pictures of the t-shirt on a flat surface with a clean background and sufficient lighting, both from the front and back.

Click "Upload" to add the images. Go to "Edit" to view the uploaded images.

image-20240115-121206.png
  1. For measurements (chest width, hem width, waist width, shoulder width, and neck width), draw lines on the images. Right-click on the line to manually set measurements and click "Save".

image-20240115-121257.png
  1. Repeat the process for other measurements. If unsatisfied, delete lines by right-clicking and selecting "Delete”.

image-20240115-121400.png
  1. You have successfully learned how to measure t-shirts and add them to OutfitXR.
    For a more in-depth understanding of how to add specifications on outfitxr.io, explore our additional tutorials: “How to create specification for t-shirt” or “How to create specification for pants”.

Creating T-Shirt Garment in Marvelous Designer

  1. Set Up Your Project

Open Marvelous Designer and create a new project. File => New or by clicking Ctrl+N.

Choose a default avatar or import your own avatar if you have one.

image-20240115-122037.png
  1. Make sure that you have an overview of both 3D window and 2D Pattern Window.

The avatar is now displayed on the left side in the 3D view, accompanied by a 2D silhouette on the right. Use the mouse scroll wheel for navigation in both areas—press it to move and rotate. To zoom in, simply scroll the wheel, and for 3D space rotation, utilize the right mouse button.

2-20240112-151058.png
  1. Create the T-shirt Pattern

In the 2D pattern view, select the "Polygon" tool. Draw the T-shirt's front, back  and sleeves pattern pieces by clicking and dragging on the avatar. If you're having difficulty understanding a clothing pattern, try Googling examples like 't-shirt pattern' or 'jeans pattern' to get a better idea of what you need to draw.

Begin with drawing half of the pattern.

3-20240112-151330.png

Select the pattern and copy, right click paste with command Symmetric Pattern.

4-20240112-151620.png

Then select the middle line and right click merge.
For the Sleeve, draw first the half and then select the middle line of the shape  =>Right Click  and then Unfold.

6-20240112-152300.png

Ensure they cover the torso area. Press Shift+Z for a quick overview of the size lines in your design. To create the back side of the second sleeve, you can copy the shape by pressing A to select the desired shape and then the CTRl+C and Ctrl+V. Adjust the pattern points and lines by clicking the Z key, or go to the Edit Pattern in 2D View, to shape the T-shirt's neckline, sleeves, and according to the sizes you already have.

Adjust line dimensions by clicking on the line and then using the right mouse button to access 'Change Length’. For the length inside the garment draw inlines using Internal Polygon Line or click G key.

5-20240112-152013.png

Refine curve lines  for neckline and sleeve openings easily using the 'Edit Curvature' tool or by pressing the 'C' key for quick adjustments.
Add points later by pressing the 'X' key. For precise positioning, right-click to set the point's exact location.

7-20240112-152455.png
  1. Add Seams

When you are confident that your garment is complete, it's time for the seaming process. Now you have this overview in your 3D Windows.

In this step, arrange the back shape and sleeves according to the provided screenshot.Use Select and Move command. Here you can move and rotate shapes.

Ensure the white side of the surface is facing outward. Holding and dragging the green ring allows rotation around the axis of the green arrow. Pressing the 'Shift' key while dragging ensures the surface aligns straight when the rotation is nearly accurate.

By clicking and holding the right mouse in the 3D view you can manage the view.

Now navigate to the Edit Sewing and choose from the menu Segment sewing.

Select the Segments that you want to sew, where the T-shirt would have seams (e.g., shoulders, sides, sleeves with back and front garment).

8-20240112-152624.png

Ensure that the seam lines are straight but not in an X shape.

Now you can simulate the fitting on the avatar and to see how the T-shirt drapes on the avatar, by clicking the Space Bar.

In the 2D view Remove the intern lines by selecting them clicking on Z key then right mouse and Delete Line

  1. Texture 

Apply textures and materials to the T-shirt by navigating to the fabric overview in the left panel. Choose your desired texture from the available options, an drag to the garment into 2D Window or 3D Window.

Also you can adjust the color and texture parameters in the right panel.

image-20240115-123347.png

Once satisfied with the design, go to the Export section.

Exporting T-shirt Garment

To export the project from Marvelous Designer, you will require three OBJ files: the Avatar OBJ, the Garment OBJ file and the Patterns OBJ file.

  1. Exporting the Garment OBJ file:

In the UV Editor select all UVs:

12-20240112-153607.png

Right click and select “Fit UV to 0-1”.

13-20240112-153848.png

And then Ok:

14-20240112-153935.png

Make sure that all the UVs fit in one tile, if not repeat the procedure.

Click File->Export->OBJ. Choose a good path. Make an apart folder.
Name the file something recognizable, in this case “ShirtL_Garment”. Make sure to use the "Garment” word in the file name.

Export with the following settings:

  1. Exporting the Patterns OBJ file:

In the UV Editor deselect all, right click and select “Reset UV to 2D Arrangement”.

16-20240112-154905.png

Click File->Export->OBJ. Name the file something recognizable, for instance “Shirt_Pattern”. Make sure that the name contains the word “Pattern”.

Export with the following settings (don't forget to deselect all texture maps):

Now you can see in your directory 3 files and another zip folder. Something like this:

Unzip this folder and then make another zip with all files. And name your Folder for instance “export”. This folder should be later imported in outfitXR.

19-20240112-155100.png

If a non-collider was used, then go further:

  1. Exporting/Saving Avatar OBJ file.

    1. In Marvelous Designer, access the "OXR_Avatar" folder by clicking on "Avatar" in the right menu, then copy the folder's path for quick access.

    2. Open the folder in Finder (on macOS) or File Explorer (on Windows) using the copied path, locate your avatar's OBJ file, and copy it to your desired project folder along with other necessary files. Change the Avatar fail name from “Maria” to “Maria_Collision

    3. Finally, create a zip archive containing all project files.

 Exporting if the textures are in Marvelous design executed.

Test your garment in Shopify Fitting Room

Let's set up a Fitting Room on Shopify.
Navigate to the Shopify Partners login page, and log in. Once logged in, you'll be directed to the Homepage.

Access the Apps section and click on 'Apps' in the left-hand menu. Select 'OutfitXR - Virtual Try On' from the list of apps. Navigate to the settings and verify if you are connected.

Click on the "Connect" or "Reconnect" button.

image-20240115-124431.png

Introduce your account details  and click log in.

2-20240112-123809.png

Now, you're directed to your own store. Continue by choosing 'Products' from the displayed list of the app. You will be directed to a page with a list of products. Select a product from the list that is not yet synced, and click on the 'Edit' button".

3-20240112-124156.png

Within the pop-up window, navigate to the Properties section and make your selection for the preferred gender.

5-20240112-124447.png

Return to the Create section, locate the zip file on your computer and drag it into the field labeled “upload” to upload it. Click on 'Refresh' to check the upload status. You can click 'Refresh' a few times; make sure the status now shows 'Available.' Once confirmed, you can close the window.

4-20240112-124120.png

Now, to create a fitting room, access the 'Products' page from the top-left menu. Search for the recently edited product in the displayed list and click on the eye icon to access it.

6-20240112-124721.png

After the product has opened, you will see a 'View in Fitting Room' button on the right side of its page. Click on it.

 And then Click on 'Book a new'.
Now, select an avatar and click the 'Create Fitting Room' button.

7-20240112-125251.png

You will be automatically redirected to the Fitting Room. Wait until your personal fitting room loads to test the garment. Once the fitting room is displayed, you have the option to select an avatar and then proceed to try on clothing garments on that chosen avatar.

8-20240112-125423.png

In the displayed fitting room you can see the simulation of the garment on the avatar.

9-20240112-125603.png

In the Fitting Room, you can implement various functionalities, such as zooming in or out. Additionally, you have the option to reset the view to return to the initial overview.

Use the 'Heat Map' option to visualize how garments of different sizes fit on the avatar. This allows you to observe whether the garments are either too loose or too tight on your selected avatar.

10-20240112-125621.png

You can manage other controls, including adjusting the height, rotating the view, and zooming for a more personalized experience. Additionally, make use of the Avatar Settings where you can explore different poses for the avatar.

11-20240112-141344.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.