Installing and Using Mesh Generator in Photopea

Create editable mockups in Photopea in just a few clicks. This guide will walk you through installing Mesh Generator and applying your own artwork to a photograph, right in your browser.

Using Adobe Photoshop instead? See the Photoshop guide.

  1. Install Mesh Generator
  2. Open the Plugin
  3. Select Your Surface
  4. Generate the Mesh
  5. View and Edit the Mesh
  6. Apply Your Own Pattern

Step 1. Install Mesh Generator

Mesh Generator is available in Photopea’s plugin catalog, so there is nothing to download:

  1. Go to photopea.com.
  2. Select Window → Plugins.
  3. Search for Mesh Generator.
  4. Click Install.

Photopea's Window menu with Plugins highlighted


Step 2. Open the Plugin

Once installed, Mesh Generator gets its own icon in the toolbar on the right side of Photopea. Click it to open the Mesh Generator panel.

The Mesh Generator icon in Photopea's right-hand toolbar, with its tooltip

At first, the Generate from selection button is not ready to use. It needs a selection around the surface you want to cover, as described in the next step.


Step 3. Select Your Surface

Open the photo you want to turn into a mockup (File → Open, or drag it into Photopea).

Using your preferred selection tool, select the area where you want your artwork to appear. The Object Selection tool works well for most surfaces: you’ll find it in the toolbar on the left, grouped with Magic Wand and Quick Selection.

Photopea's selection tools menu with Object Selection highlighted, over a photo of a cream skirt

With Object Selection, simply drag a rectangle around the object.

A rectangle being dragged around the skirt with the Object Selection tool

Photopea selects the object for you. You can refine the selection with any other selection tool if needed.

The skirt selected, with the selection outline following its edges

The selection tells Mesh Generator which surface to analyze and where to apply the resulting Smart Object.


Step 4. Generate the Mesh

Click Generate from selection in the Mesh Generator panel. The number next to the button shows how many generations you have left.

The Mesh Generator panel in Photopea with the Generate from selection button and the remaining runs counter

The first time you do this, Mesh Generator asks you to agree to its Privacy Policy and Terms of Service. You need to click I Agree to use the plugin.

The plugin analyzes the photo and calculates a mesh that follows the selected surface’s curves, folds, and perspective.

After a few seconds, a new Mesh Generator Smart Object layer appears in your document. It comes with a default grid pattern, so you can check right away how well the mesh follows the surface.

The skirt covered with a grid that follows its folds, and the new Mesh Generator layer in the Layers panel

Tip: The generated layer uses Multiply blending mode, which can help preserve shadows and highlights from the original photo.


Step 5. View and Edit the Mesh

The generated mesh is a regular warp transformation, so you can view and fine-tune it:

  1. Select the Mesh Generator layer in the Layers panel.
  2. Choose Edit → Free Transform and switch to Warp in the top toolbar. The mesh appears on top of the photo.
  3. Drag the mesh points to adjust how the artwork follows the surface.
  4. Press Enter to apply your changes, or Esc to keep the mesh as it was.

Step 6. Apply Your Own Pattern

Now comes the fun part!

  1. In the Layers panel, double-click the thumbnail of the Mesh Generator layer. Its contents open in a new tab.
  2. Replace the default grid with your own artwork: place your pattern, texture, or picture as a new layer (File → Open & Place), and adjust its position and scale.
  3. Save the Smart Object (Ctrl+S on Windows or Cmd+S on Mac) and switch back to your original document’s tab.

Your artwork now follows the generated mesh.

The finished mockup: a tartan pattern follows the skirt's folds (pattern by katesu.design)


Reuse and Customize Your Mesh

You only need to generate the mesh once for the same surface.

Want to try a different pattern or colorway? Simply reopen the Smart Object, replace the artwork, and save.

You can also modify the mesh itself or adjust blending and other layer properties.

There’s no need to spend another generation just to change the artwork inside an existing Smart Object.