ig:gfx:uv-coordinates
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ig:gfx:uv-coordinates [2025/10/29 11:15] – created ig_ii | ig:gfx:uv-coordinates [2025/10/29 15:37] (current) – ig_ii | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | * **Type:** string | + | ====== UV Coordinates ====== |
| + | |||
| + | === Configuring UV Mapping Parameters with JSON === | ||
| + | |||
| + | The UV coordinates generated by this software are suitable only for **seamless textures**. If you intend to use the generated geometry with baked textures, it is recommended to export the geometry as a watertight solid in the **'' | ||
| + | |||
| + | [] | ||
| + | *Figure: UV settings block in JSON used globally* | ||
| + | <code json> | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | </ | ||
| + | |||
| + | The section provided here is an example of a JSON object representing the UV mapping parameters. The **'' | ||
| + | |||
| + | The properties inside this object (e.g., **'' | ||
| + | All of them override the global values are optional. | ||
| + | |||
| + | [ array]] | ||
| + | *Figure: UV settings block inside inside the **'' | ||
| + | <code json> | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, ......rest of boards.............. | ||
| + | ] | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | === UV Mapping (" | ||
| + | |||
| + | The following parameters control how UV coordinates are generated for seamless texture mapping in 3D models. These options are provided in the JSON configuration and are interpreted in millimeters (**mm**). | ||
| + | |||
| + | * **'' | ||
| + | |||
| + | Defines the starting point (origin) of the UV coordinate system when unwrapping the surface of a 3D object. This affects where textures begin when mapped onto geometry. | ||
| + | |||
| + | * **'' | ||
| + | * **'' | ||
| + | |||
| + | If the **'' | ||
| + | |||
| + | |||
| + | ^ **Figure 21: UV Origin Comparison** ^ | ||
| + | | {{: | ||
| + | ^ Caption ^ | ||
| + | | Isometric view of a 3×3 checker tile. Left: UV origin at the tile center. | ||
| + | |||
| + | |||
| + | === UV tile scale (" | ||
| + | |||
| + | Determines the scale (tiling size) of the UV texture patches. This controls how large a texture appears when applied to a surface. | ||
| + | |||
| + | * **'' | ||
| + | |||
| + | * Default: **150** mm | ||
| + | * Values that are too small or too large may be flagged as potentially meaningless depending on context. | ||
| + | |||
| + | ^ **Figure 22: Patch Size View** ^ | ||
| + | | {{: | ||
| + | ^ Caption ^ | ||
| + | | Patch size view of two shapes on a square with a side length of 450 mm. \\ Left: UV is the patch size value of 150 mm. \\ Right: UV is the patch size value of 300 mm. | | ||
| + | |||
| + | |||
| + | === Offsetting texture (" | ||
| + | |||
| + | * **'' | ||
| + | |||
| + | Optional UV offset values along the U (horizontal) and V (vertical) axes, respectively. These are applied *after* the UV origin is assigned, if no default value will be used. Offsets are useful when deliberate shifts in texture placement are needed (e.g., aligning a wood grain or pattern). | ||
| + | |||
| + | ^ **Figure 23: UV Offset Comparison** ^ | ||
| + | | {{: | ||
| + | ^ Caption: Left: No offset. Right: Offset **uOffset** and **vOffset** with 10 mm. || | ||
| + | |||
| + | These settings are especially important for ensuring consistent, seamless texturing across parts of a 3D model, particularly in parametric or modular design workflows. | ||
| + | |||
| + | === UV Mapping Method (" | ||
| + | |||
| + | Specifies how the UV mapping is applied to the panel. | ||
| + | |||
| + | | ||
| * **Enum:** **CUBIC**, **AUTO** | * **Enum:** **CUBIC**, **AUTO** | ||
| * **Default: | * **Default: | ||
| Line 9: | Line 117: | ||
| [] | [] | ||
| - | *Figure: Comparison of **'' | + | *Figure: Comparison of **'' |
| + | //Left:// **CUBIC** — single projection along X/Y/Z axes. | ||
| + | //Right:// **AUTO** — multiple UV islands separated by seams.* | ||
| <code json> | <code json> | ||
| Line 52: | Line 162: | ||
| * Only valid inside the **'' | * Only valid inside the **'' | ||
| * Overrides the global UV rotation value of 0.0°. | * Overrides the global UV rotation value of 0.0°. | ||
| - | * Expressed in degrees; e.g., **'' | + | * Expressed in degrees; e.g., **" |
| ==== Usage Example ==== | ==== Usage Example ==== | ||
| Line 88: | Line 198: | ||
| </ | </ | ||
| - | ** | + | **Note:** It is useful when you want to adjust the wood grain along the length of a board. |
ig/gfx/uv-coordinates.1761732925.txt.gz · Last modified: 2025/10/29 11:15 by ig_ii
