Skip to main content

VS AI Texture Generator Plugin

Generate photorealistic PBR fabric textures from a text description and apply them to the garment in one click.

Overview

VS AI Texture Generator sends a fabric description, fabric type, and construction to Google's Gemini API (using your own API key) and receives base color, normal, roughness, and displacement maps. These are assembled into a U3M material and applied to all garment pieces.

Requirements

  • VStitcher 2025.3.0 or newer (BwApi 3.x)

Setup

  1. Open the plugin's Settings panel, paste it into Google AI Studio API Key, click Save

  2. Click Test Connection to confirm it works

Note : The key is stored locally on your system and is used only for Google's API requests — never to Browzwear.

How to Generate a Texture

Step 1: Configure and Generate

Setting

Description

Fabric type

Woven / Knit / Leather / Mesh / Specialty

Construction

Dynamic options based on fabric type

Description

Free-text color and appearance description

Tile size (cm)

Physical repeat size for tiling on garment

Resolution

512 / 1024 / 2048 px

Click Generate — a 2×2 preview grid shows the base color and maps before importing.

Step 2: Apply

Click Apply to Garment — the U3M material is created and assigned to all garment shapes.

What Happens During Generation?

Gemini 3.1 Flash Image Preview generates 4 PBR maps from the description and fabric type:

  • Base Color (diffuse / albedo)

  • Normal map (OpenGL convention)

  • Roughness map (grayscale)

  • Displacement / height map (grayscale)

The material is assembled with a Principled BSDF shader, added to the colorway library, and assigned to all garment shapes.

Troubleshooting

Issue

Fix

Generation fails with auth error

Click Test Connection in Settings to see the specific reason

"No API key configured"

Add a Google AI Studio API key in Settings

Colors look wrong / desaturated

Adjust the description; very abstract prompts produce inconsistent hue results

Rate limit / quota error

Free-tier keys have per-minute limits; wait and retry, or use a paid key

Did this answer your question?