| title | Texture Generator |
|---|---|
| description | The Texture Generator tool quickly creates custom textures for meshes through text prompts. |
import BetaAlert from '../includes/beta-features/beta-alert.md'
The Texture Generator tool is designed to quickly create custom textures for your meshes through text prompts. You can select a mesh or Class.Model made up of several meshes¹, type in any prompt to preview results within a few seconds, then generate full textures.
To begin generating textures, open the Texture Generator from Studio's Window ⟩ 3D menu.
With the tool's window open:
-
Select a
Class.MeshPartor aClass.Modelcomprised ofClass.MeshPart|MeshPartsin your scene. -
In the tool's preview pane, click/drag or enter X/Y/Z values to set the generation angle which highlights the significant features or surfaces for texturing. See best practices for tips on choosing a generation angle.
Focus on the primary faces of a tower mesh, visible to players
Bottom of tower mesh will not likely be visible to players
-
Below the preview pane and prompt input text box, expand the Art Style section to upload an image or use an existing image asset to influence the overall style, color palette, and mood of your generated texture.
- Expand the Art Style section of the tool's window.
- Specify an image asset that you've already imported to Roblox, or upload an image using the built‑in asset picker.
- Adjust the Strength value. A lower value blends the image more subtly while a higher value makes it the dominant style.
-
In the prompt text box input below the preview pane, enter a prompt describing your desired texture, for instance:
rusted metal castlemossy stone fortresssnow covered ice sculpture
Including
+,-, or a number after keywords increases, decreases, or specifies the emphasis of that keyword, respectively. For example:futuristic pirate++ backpackputs stronger emphasis onpiratefuturistic-- backpackputs less emphasis onfuturisticif the original result was too futuristic(robotic)1.5 pirate backpackputs a precise emphasis onrobotic
-
Click Preview to create a texture preview. When the preview is ready:
- Use the "rotate" buttons to rotate the view 90° around the mesh.
- Use the Reroll button to generate a new texture using the same parameters.
- Click the "back" button to return to the prompt input text box.
In the preview stage, the texture may not appear visually consistent from all four views. However, the model will create a texture that's more consistent during the texture generation process.
-
When you're satisfied with the texture, click Save & Apply to create a full texture for your mesh. When complete, the new texture will be applied to the mesh through a
Class.SurfaceAppearanceinstance.
Generated textures appear in the Saved Textures section of the tool's window. For each texture, you can click the ⋯ to access various options.
| Option | Description |
|---|---|
| **Insert Mesh with Texture** | Inserts a copy of the textured mesh/model into the workspace. |
| **Show in Inventory** | Opens your **Images** inventory on the [Creator Dashboard](https://create.roblox.com/dashboard/creations?activeTab=Image) where you can inspect the texture image. |
| **Export** | Exports the mesh to your local system as a `.obj` file. |
| **Remove** | Removes the texture from the **Saved Textures** list. |
Expanding the Advanced Options section in the tool's window allows you to configure the following aspects.
You can choose to either randomize the seed or set a specific seed for texture generation. Setting a specific seed before generating a texture ensures you get consistent results each time you use a specific prompt. In 3D modeling, a **UV map** is a 2D representation of the surface of a 3D model, allowing 2D textures to be accurately applied to the 3D model. UV coordinates **U** and **V** refer to the horizontal and vertical axes of this 2D space, similar to the **X** and **Y** axes in a 2D graph.For the texture generator tool to create well-formed textures, your mesh's underlying UV maps need to fit a few guidelines. First, all UV coordinates must be within the unit square, as UV maps outside of the unit square will wrap around to the other side of the UV map and create artifacts or seams in the final texture. Second, all UVs must be non‑overlapping, as overlapping UVs will result in inconsistent textures and color placements.
Selecting the Smart UV Unwrap option will take a mesh with no UVs (or incompatible UVs) and apply the necessary UV coordinates for texturing. If your UVs are compatible, they won't be affected and you can use your mesh as‑is. When this setting is enabled, the generation angle selected during the preview stage is specified as the "front" of your mesh. This allows the tool to better texture meshes with a clear front and back by identifying each side, resulting in more consistent and coherent textures. This is particularly helpful for objects with a clear front and back, like avatars, animals, and clothing.
"Lab Coat with Badge" prompt with **Specify Front View** disabled, yielding lab coat "front" on both front and back Same prompt with **Specify Front View** enabled, yielding correct "front" and "back" of lab coat The following prompting tips enable the tool to provide better and more consistent results.- Provide as much detail as possible in your prompt. Short, vague prompts will lead to inconsistent or unexpected results.
- Include texture attributes like material types, colors, patterns, wear and tear, etc. The more constraints you give the tool, the better it can generate what you have in mind.
- Use descriptive phrases instead of single words for key items, for example "worn leather" instead of just "leather."
- Add styling cues like "cinematic," "photorealistic," "cartoon," or "low poly" to influence the overall look.
- Setting the generation angle to highlight the meaningful faces of your mesh will result in better generations.
- For flat objects like plates, swords, and fences, make sure the generation angle displays a view with a high surface area.
- For humanoid and animal meshes, experiment with different generation angles, such as a head-on view of the face and a side view profile, to find the most consistent and coherent texture.
- If a texture doesn't meet your expectations, identify what to change instead of starting over. For example, tweak the color or pattern description.
- Change the prompt word order. Words at the beginning of the prompt can have more weight when generating.
- Generate several previews to compare different prompts, or try the same prompts with different seeds to get a preview that fits your vision.







