mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-19 05:50:43 +01:00
Merge remote-tracking branch 'origin/main' into tools/text-alpha
This commit is contained in:
commit
0c9627573e
24 files changed
+1175
-124
No files matched your search
+2
-2
@@ -34,9 +34,9 @@ These come from Rust crate dependencies (not files in this repository) and keep
|
||||
| Phosphor Icons (regular), via the `egui-phosphor` crate (vendored in `vendor/egui-phosphor` for egui 0.37) | Every UI icon (tools, layers, panels) | Phosphor Icons (Helena Zhang, Tobias Fried) | https://phosphoricons.com, https://github.com/amPerl/egui-phosphor | MIT (icons); crate MIT OR Apache-2.0 |
|
||||
| egui default fonts (Ubuntu-Light, Hack, Noto Emoji, emoji-icon-font), via `epaint_default_fonts` | UI text; Ubuntu Light and Hack also as the built-in fonts for text alphas and decals | Canonical / Source Foundry / Google / Jessie Jung | https://github.com/emilk/egui | Ubuntu Font Licence 1.0, MIT + Bitstream Vera License, OFL 1.1, MIT |
|
||||
| Only in builds made with `CRAFT_FONTS_DIR`: Inter Regular and SemiBold (desktop and web), from storytold/craft-fonts' Latin catalog (`crates/ui-egui/build.rs`) | Interface text | The Inter Project Authors | https://github.com/storytold/craft-fonts (pinned sources in its `fonts/latin-manifest.txt` and `ATTRIBUTION.md`) | OFL 1.1 |
|
||||
| Only in builds made with `CRAFT_FONTS_DIR`: BIZ UDPGothic Regular (desktop and web) and Noto Sans CJK SC Regular (desktop), from storytold/craft-fonts (`crates/ui-egui/build.rs`) | Japanese and Chinese UI text | The BIZ UDGothic Project Authors (Morisawa Inc.); The Noto Project Authors | https://github.com/storytold/craft-fonts (pinned sources in its `fonts/manifest.txt` and `ATTRIBUTION.md`) | OFL 1.1 |
|
||||
| Only in builds made with `CRAFT_FONTS_DIR`: BIZ UDPGothic Regular (desktop and web), Noto Sans CJK SC Regular (desktop) and Noto Sans Arabic Regular (desktop and web), from storytold/craft-fonts (`crates/ui-egui/build.rs`) | Japanese, Chinese and Arabic UI text | The BIZ UDGothic Project Authors (Morisawa Inc.); The Noto Project Authors | https://github.com/storytold/craft-fonts (pinned sources in its `fonts/manifest.txt` and `ATTRIBUTION.md`) | OFL 1.1 |
|
||||
|
||||
Without craft-fonts, Chinese, Japanese and Korean UI text uses the operating system's fonts at run
|
||||
Without craft-fonts, Chinese, Japanese, Korean and Arabic UI text uses the operating system's fonts at run
|
||||
time (nothing is bundled); see [docs/localization-parity.md](docs/localization-parity.md).
|
||||
|
||||
## Procedural content (no asset files)
|
||||
|
||||
Generated
+31
-35
@@ -178,15 +178,6 @@ dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "arbitrary"
|
||||
version = "1.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed"
|
||||
dependencies = [
|
||||
"derive_arbitrary",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "arboard"
|
||||
version = "3.6.1"
|
||||
@@ -572,7 +563,7 @@ dependencies = [
|
||||
"maybe-owned",
|
||||
"rustix 1.1.5",
|
||||
"rustix-linux-procfs",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.60.2",
|
||||
"winx",
|
||||
]
|
||||
|
||||
@@ -870,17 +861,6 @@ dependencies = [
|
||||
"syn 3.0.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "derive_arbitrary"
|
||||
version = "1.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1b034bd7d5f032402a2479444dcc6f74e36a03f31854d41680fb240ef682a1ac"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 3.0.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dispatch"
|
||||
version = "0.2.0"
|
||||
@@ -1191,7 +1171,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2410,6 +2390,18 @@ dependencies = [
|
||||
"jni-sys 0.3.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.31.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"cfg-if",
|
||||
"cfg_aliases",
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nohash-hasher"
|
||||
version = "0.2.0"
|
||||
@@ -2820,7 +2812,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3422,7 +3414,7 @@ dependencies = [
|
||||
"errno",
|
||||
"libc",
|
||||
"linux-raw-sys 0.12.1",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3721,7 +3713,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.60.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3803,10 +3795,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
||||
dependencies = [
|
||||
"fastrand",
|
||||
"getrandom 0.4.3",
|
||||
"getrandom 0.3.4",
|
||||
"once_cell",
|
||||
"rustix 1.1.5",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4257,6 +4249,12 @@ dependencies = [
|
||||
"rustc-hash 2.1.3",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typed-path"
|
||||
version = "0.12.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "54ec2755506471f54baf5e4bb5499d8e510cc1caf271270e778a736bd2d7336c"
|
||||
|
||||
[[package]]
|
||||
name = "typeid"
|
||||
version = "1.0.3"
|
||||
@@ -4271,7 +4269,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
|
||||
dependencies = [
|
||||
"memoffset",
|
||||
"tempfile",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.60.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4790,7 +4788,7 @@ version = "0.1.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
|
||||
dependencies = [
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -5493,18 +5491,16 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "zip"
|
||||
version = "2.4.2"
|
||||
version = "9.0.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fabe6324e908f85a1c52063ce7aa26b68dcb7eb6dbc83a2d148403c9bc3eba50"
|
||||
checksum = "6e04976da629d3b04204ba8105b396a193af8ad2583b2c79bfb3ab8af580a11e"
|
||||
dependencies = [
|
||||
"arbitrary",
|
||||
"crc32fast",
|
||||
"crossbeam-utils",
|
||||
"displaydoc",
|
||||
"flate2",
|
||||
"indexmap",
|
||||
"memchr",
|
||||
"thiserror 2.0.21",
|
||||
"nix",
|
||||
"typed-path",
|
||||
"zopfli",
|
||||
]
|
||||
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ eframe = { version = "0.37", default-features = false }
|
||||
egui = "0.37"
|
||||
wgpu = "30"
|
||||
rfd = "0.17"
|
||||
zip = { version = "2", default-features = false, features = ["deflate"] }
|
||||
zip = { version = "9", default-features = false, features = ["deflate"] }
|
||||
gltf = { version = "1.4", default-features = false, features = ["import", "utils", "names", "KHR_materials_emissive_strength"] }
|
||||
tobj = { version = "4", default-features = false }
|
||||
flate2 = "1"
|
||||
|
||||
@@ -154,7 +154,7 @@ cargo xtask ci # fmt, clippy, test
|
||||
You need Rust 1.95 or newer. The app opens with a baked sample project; **File ▸ New project** starts
|
||||
from a built-in mesh, a project template or your own mesh file (UVs are generated if it has none).
|
||||
|
||||
Japanese, Chinese and Korean interface text uses the fonts of
|
||||
Japanese, Chinese, Korean and Arabic interface text uses the fonts of
|
||||
[storytold/craft-fonts](https://github.com/storytold/craft-fonts) where it has them, an optional
|
||||
build input (releases always use it): `CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo run --release -p texturecraft`
|
||||
(an absolute path). Without it, the desktop app uses the installed system fonts.
|
||||
@@ -184,7 +184,7 @@ area, the remaining work and what's next.
|
||||
to end, weighted by how much of the day each area carries: importing meshes, texture sets and UDIM
|
||||
tiles, the layer stack with masks, effects and smart materials, every painting tool, baking, the PBR
|
||||
viewport and Rendering mode, export presets and templates, and the full menu set. The interface
|
||||
speaks English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese and Korean;
|
||||
speaks English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese, Korean and Arabic;
|
||||
[localization-parity.md](docs/localization-parity.md) has the details. The scores are self-assessed
|
||||
from our code against public documentation.
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ end to end today (engine + UI + automation + tests), not what is planned.
|
||||
| Viewport and display | 12 | 95% | PBR with image-based lighting, 6 procedural environments or imported HDR/EXR panoramas with exposure, rotation, blur, opacity, ACES/linear tone mapping, HDR pipeline with bloom, vignette, sharpen and grain, key-light shadows, 4× MSAA plus idle temporal accumulation, channel / mesh-map / mask / UV checker views, 3D and 2D wireframes, brush cursor, axis gizmos, subsurface scattering blur, **depth of field**, saved cameras and cameras from glTF, FBX, COLLADA and USD files, displacement (also in shadows and the path tracers), **path-traced Rendering mode** (F10, on the GPU or the CPU) with environment importance sampling and an edge-aware **denoiser** | Hardware ray tracing |
|
||||
| Shader | 6 | 100% | Metallic/roughness and specular/glossiness PBR, **clear coat, sheen, anisotropy and subsurface scattering** (viewport and path tracer), height-to-normal, painted normals, parallax occlusion, emissive, opacity (dithered), AO intensity | — |
|
||||
| Export | 8 | 92% | 10 presets (incl. Godot 4 and **OpenPBR** with every shading lobe) plus **user output templates** (per-channel packing, converted maps, JSON import/export), PNG/JPEG/TGA/TIFF/BMP/WEBP/EXR/HDR, 8/16/32-bit, padding modes, size override, OpenGL/DirectX normals, `$udim` tiles, OBJ, textured GLB (with clearcoat/sheen) and USD (with clear coat) mesh export, zip download in the browser | Sheen and anisotropy in USD (UsdPreviewSurface has no inputs for them; GLB and OpenPBR maps carry them) |
|
||||
| UI and UX | 8 | 95% | Painter-style layout with **dockable, tabbed, floating panels**, menus, tool shelf, tool bar, asset shelf, texture set list, layer stack with context menu, properties, display/shader/history/log panels, export dialog, new project dialog, bake mode, rendering mode, settings (interface scale, autosave, viewport texture resolution, system title bar), **own title bar** with the app icon and window buttons (Windows, GNOME; integrated with the macOS traffic lights), saved UI layouts, **shortcut editor** with conflict detection, tooltips with shortcuts; all menu items live ([docs/parity.md](docs/parity.md)); **9 UI languages** with CJK fonts ([docs/localization-parity.md](docs/localization-parity.md)); closed panels reopen where they were; frame-budgeted compositing and uploads keep 8K sets responsive | Native-speaker review of the translations |
|
||||
| UI and UX | 8 | 95% | Painter-style layout with **dockable, tabbed, floating panels**, menus, tool shelf, tool bar, asset shelf, texture set list, layer stack with context menu, properties, display/shader/history/log panels, export dialog, new project dialog, bake mode, rendering mode, settings (interface scale, autosave, viewport texture resolution, system title bar), **own title bar** with the app icon and window buttons (Windows, GNOME; integrated with the macOS traffic lights), saved UI layouts, **shortcut editor** with conflict detection, tooltips with shortcuts; all menu items live ([docs/parity.md](docs/parity.md)); **10 UI languages** with CJK and Arabic fonts ([docs/localization-parity.md](docs/localization-parity.md)); closed panels reopen where they were; frame-budgeted compositing and uploads keep 8K sets responsive | Native-speaker review of the translations |
|
||||
| Platforms | 4 | 75% | Windows, macOS (universal, signed and notarized), Linux (AppImage, deb, rpm, tar.gz, Flatpak), FreeBSD and web release workflows | First real release run; web build polish |
|
||||
| **Total** | **100** | **≈ 93%** | | |
|
||||
|
||||
|
||||
@@ -445,7 +445,7 @@ pub(crate) fn read(bytes: &[u8]) -> Result<RawMesh> {
|
||||
if zip.len() > MAX_ZIP_ENTRIES {
|
||||
return Err(FormatError::TooLarge(format!("the FBX package has more than {MAX_ZIP_ENTRIES} entries")));
|
||||
}
|
||||
let name = zip.file_names().filter(|n| super::extension(n) == "fbx").min_by_key(|n| zip.index_for_name(n)).map(str::to_string);
|
||||
let name = zip.file_names().flatten().filter(|n| super::extension(n) == "fbx").min_by_key(|n| zip.index_for_name(n)).map(Cow::into_owned);
|
||||
let name = name.ok_or_else(|| malformed(KIND, "the package contains no FBX file"))?;
|
||||
let fbx = zip_entry(&mut zip, &name, MAX_MESH_FILE_BYTES)
|
||||
.ok_or_else(|| FormatError::TooLarge("the packaged FBX is unreadable or larger than 2 GiB".into()))?;
|
||||
|
||||
@@ -20,8 +20,8 @@ mod stl;
|
||||
pub(crate) mod tests;
|
||||
pub(crate) mod usd;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
|
||||
use texturecraft_geom::glam::{Mat4, Vec2, Vec3, Vec4};
|
||||
use texturecraft_geom::unwrap::{all_triangles_degenerate, auto_unwrap, weld_ids};
|
||||
@@ -134,6 +134,8 @@ pub(crate) struct RawMesh {
|
||||
pub cameras: Vec<RawCamera>,
|
||||
/// Materials whose base color is not plain white (glTF).
|
||||
pub base_colors: Vec<RawBaseColor>,
|
||||
/// Vertex pairs (smaller first) that [`RawMesh::polygon`] added to split polygons.
|
||||
pub diagonals: HashSet<(u32, u32)>,
|
||||
}
|
||||
|
||||
/// A material's base color as a file gives it: the linear factor and the encoded texture.
|
||||
@@ -159,6 +161,19 @@ impl RawMesh {
|
||||
pub fn triangle_count(&self) -> usize {
|
||||
self.groups.iter().map(|(_, _, g)| g.len() / 3).sum()
|
||||
}
|
||||
|
||||
/// Fan-triangulate polygon `corners` (vertex indices) into `material`'s triangles in `part`,
|
||||
/// remembering the diagonals so wireframes can show the polygon.
|
||||
pub fn polygon(&mut self, material: &str, part: &str, corners: &[u32]) {
|
||||
let Some((&first, rest)) = corners.split_first() else { return };
|
||||
let group = self.group(material, part);
|
||||
for w in rest.windows(2) {
|
||||
group.extend_from_slice(&[first, w[0], w[1]]);
|
||||
}
|
||||
for &v in rest.iter().skip(1).take(rest.len().saturating_sub(2)) {
|
||||
self.diagonals.insert((first.min(v), first.max(v)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// One polygon corner of a scene format (FBX, COLLADA), already in world space.
|
||||
@@ -213,11 +228,7 @@ impl PolygonSink {
|
||||
};
|
||||
self.polygon.push(id);
|
||||
}
|
||||
let group = self.raw.group(material, &self.part);
|
||||
let (first, rest) = self.polygon.split_first().unwrap_or((&0, &[]));
|
||||
for w in rest.windows(2) {
|
||||
group.extend_from_slice(&[*first, w[0], w[1]]);
|
||||
}
|
||||
self.raw.polygon(material, &self.part, &self.polygon);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -365,7 +376,7 @@ fn read(file_name: &str, bytes: &[u8]) -> Result<RawMesh> {
|
||||
/// Positions, submeshes (materials contiguous), normals and colors of a raw mesh, validated;
|
||||
/// plus its warnings and UVs (the mesh's UVs and tangents are left empty).
|
||||
fn geometry(raw: RawMesh) -> Result<(Mesh, Vec<String>, Option<Vec<Vec2>>)> {
|
||||
let RawMesh { positions, normals, uvs, colors, groups, warnings, .. } = raw;
|
||||
let RawMesh { positions, normals, uvs, colors, groups, warnings, diagonals, .. } = raw;
|
||||
check_vertices(positions.len())?;
|
||||
check_triangles(0, groups.iter().map(|(_, _, g)| g.len() / 3).sum())?;
|
||||
let mut mesh = Mesh { positions, ..Mesh::default() };
|
||||
@@ -390,6 +401,10 @@ fn geometry(raw: RawMesh) -> Result<(Mesh, Vec<String>, Option<Vec<Vec2>>)> {
|
||||
if mesh.indices.is_empty() {
|
||||
return Err(FormatError::Invalid("the file contains no triangles".into()));
|
||||
}
|
||||
if !diagonals.is_empty() {
|
||||
let diagonal = |a: u32, b: u32| diagonals.contains(&(a.min(b), a.max(b)));
|
||||
mesh.diagonals = mesh.indices.chunks_exact(3).map(|t| (0..3).map(|i| u8::from(diagonal(t[i], t[(i + 1) % 3])) << i).sum()).collect();
|
||||
}
|
||||
if let Some(bad) = mesh.indices.iter().find(|i| **i as usize >= mesh.positions.len()) {
|
||||
return Err(FormatError::Invalid(format!("vertex index {bad} out of range ({} vertices)", mesh.positions.len())));
|
||||
}
|
||||
|
||||
@@ -27,7 +27,8 @@ fn read_inner(bytes: &[u8]) -> Result<RawMesh> {
|
||||
}
|
||||
let library: String = names.iter().map(|n| format!("newmtl {n}\n")).collect();
|
||||
let source = format!("mtllib texturecraft-usemtl.mtl\n{text}");
|
||||
let opts = tobj::LoadOptions { single_index: true, triangulate: true, ignore_points: true, ignore_lines: true };
|
||||
// Polygons stay whole so the wireframe can show them; `RawMesh::polygon` triangulates.
|
||||
let opts = tobj::LoadOptions { single_index: true, triangulate: false, ignore_points: true, ignore_lines: true };
|
||||
let (models, materials) =
|
||||
tobj::load_obj_buf(&mut source.as_bytes(), &opts, |_| tobj::load_mtl_buf(&mut library.as_bytes())).map_err(|e| malformed(KIND, e))?;
|
||||
let materials = materials.unwrap_or_default();
|
||||
@@ -39,7 +40,9 @@ fn read_inner(bytes: &[u8]) -> Result<RawMesh> {
|
||||
let m = &model.mesh;
|
||||
let n = m.positions.len() / 3;
|
||||
check_vertices(raw.positions.len().saturating_add(n))?;
|
||||
check_triangles(raw.triangle_count(), m.indices.len() / 3)?;
|
||||
// Corners per face; without arities every face is a triangle.
|
||||
let arities: Vec<usize> = if m.face_arities.is_empty() { vec![3; m.indices.len() / 3] } else { m.face_arities.iter().map(|a| *a as usize).collect() };
|
||||
check_triangles(raw.triangle_count(), arities.iter().map(|a| a.saturating_sub(2)).sum())?;
|
||||
let base = raw.positions.len() as u32;
|
||||
raw.positions.extend(m.positions.chunks_exact(3).map(|p| Vec3::new(p[0], p[1], p[2])));
|
||||
if m.normals.len() == n * 3 {
|
||||
@@ -67,12 +70,18 @@ fn read_inner(bytes: &[u8]) -> Result<RawMesh> {
|
||||
Some(id) => materials.get(id).map(|mat| mat.name.clone()).filter(|s| !s.is_empty()).unwrap_or_else(|| format!("Material_{id}")),
|
||||
None => "Default".to_string(),
|
||||
};
|
||||
let group = raw.group(&name, &model.name);
|
||||
for &i in m.indices.get(..m.indices.len() / 3 * 3).unwrap_or_default() {
|
||||
if i as usize >= n {
|
||||
return Err(malformed(KIND, format!("face index {i} out of range")));
|
||||
if let Some(i) = m.indices.iter().find(|i| **i as usize >= n) {
|
||||
return Err(malformed(KIND, format!("face index {i} out of range")));
|
||||
}
|
||||
let (mut rest, mut corners) = (m.indices.as_slice(), Vec::new());
|
||||
for arity in arities {
|
||||
let Some((face, tail)) = rest.split_at_checked(arity) else { break };
|
||||
rest = tail;
|
||||
corners.clear();
|
||||
corners.extend(face.iter().map(|i| base + i));
|
||||
if arity >= 3 {
|
||||
raw.polygon(&name, &model.name, &corners);
|
||||
}
|
||||
group.push(base + i);
|
||||
}
|
||||
}
|
||||
if partial_uvs && models.iter().any(|m| !m.mesh.texcoords.is_empty()) {
|
||||
|
||||
@@ -117,7 +117,6 @@ pub(crate) fn read(bytes: &[u8]) -> Result<RawMesh> {
|
||||
let mut body = Body { data: bytes.get(body_start..).unwrap_or_default(), pos: 0, enc };
|
||||
let mut raw = RawMesh::default();
|
||||
let (mut normals, mut uvs, mut colors) = (Vec::new(), Vec::new(), Vec::new());
|
||||
let mut faces: Vec<u32> = Vec::new();
|
||||
let mut nverts = 0usize;
|
||||
for el in &elements {
|
||||
// Every item takes at least one byte, so the count can never exceed what is left.
|
||||
@@ -169,10 +168,8 @@ pub(crate) fn read(bytes: &[u8]) -> Result<RawMesh> {
|
||||
}
|
||||
}
|
||||
if face_list == Some(k) && poly.len() >= 3 {
|
||||
check_triangles(faces.len() / 3, poly.len() - 2)?;
|
||||
for i in 1..poly.len() - 1 {
|
||||
faces.extend_from_slice(&[poly[0], poly[i], poly[i + 1]]);
|
||||
}
|
||||
check_triangles(raw.triangle_count(), poly.len() - 2)?;
|
||||
raw.polygon("Default", "", &poly);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -202,7 +199,6 @@ pub(crate) fn read(bytes: &[u8]) -> Result<RawMesh> {
|
||||
raw.normals = (normals.len() == n).then_some(normals);
|
||||
raw.uvs = (uvs.len() == n).then_some(uvs);
|
||||
raw.colors = (colors.len() == n).then_some(colors);
|
||||
raw.groups.push(("Default".into(), String::new(), faces));
|
||||
Ok(raw)
|
||||
}
|
||||
|
||||
|
||||
@@ -235,6 +235,22 @@ fn obj_without_uvs_or_normals_is_completed() {
|
||||
assert!(n0.len() > 1 && n0.iter().all(|n| (*n - n0[0]).length() < 1e-5));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn polygons_keep_their_edges_for_the_wireframe() {
|
||||
// An OBJ quad and pentagon (with UVs, so no unwrap splits them), a triangle, and a PLY quad.
|
||||
let obj = "v 0 0 0\nv 1 0 0\nv 1 1 0\nv 0 1 0\nv 2 0 0\nv 3 0 0\nv 3 1 0\nv 2.5 2 0\nv 2 1 0\nvt 0 0\n\
|
||||
f 1/1 2/1 3/1 4/1\nf 5/1 6/1 7/1 8/1 9/1\nf 1/1 2/1 5/1\n";
|
||||
let m = import_mesh_bytes("p.obj", obj.as_bytes()).unwrap().mesh;
|
||||
assert_eq!(m.triangle_count(), 2 + 3 + 1);
|
||||
assert_eq!(m.wire_edges()[0].len(), 4 + 5 + 2, "the triangle adds edges 1-5 and 2-5");
|
||||
let ply = import_mesh_bytes("a.ply", ply_ascii().as_bytes()).unwrap().mesh;
|
||||
assert_eq!(ply.wire_edges()[0].len(), 4);
|
||||
// Triangles alone keep every edge.
|
||||
let tris = import_mesh_bytes("t.obj", b"v 0 0 0\nv 1 0 0\nv 1 1 0\nv 0 1 0\nvt 0 0\nf 1/1 2/1 3/1\nf 1/1 3/1 4/1\n").unwrap().mesh;
|
||||
assert!(tris.diagonals.is_empty());
|
||||
assert_eq!(tris.wire_edges()[0].len(), 5);
|
||||
}
|
||||
|
||||
fn ply_ascii() -> String {
|
||||
"ply\nformat ascii 1.0\ncomment test\nelement vertex 4\nproperty float x\nproperty float y\nproperty float z\nproperty float s\nproperty float t\n\
|
||||
element face 1\nproperty list uchar int vertex_indices\nend_header\n\
|
||||
|
||||
@@ -228,8 +228,8 @@ fn read_usdz(bytes: &[u8]) -> Result<(Layer, Package<'_>)> {
|
||||
if zip.len() > MAX_ZIP_ENTRIES {
|
||||
return Err(FormatError::TooLarge(format!("the usdz package has more than {MAX_ZIP_ENTRIES} entries")));
|
||||
}
|
||||
let name = zip.file_names().filter(|n| matches!(super::extension(n).as_str(), "usda" | "usdc" | "usd")).min_by_key(|n| zip.index_for_name(n));
|
||||
let name = name.ok_or_else(|| malformed(KIND, "the usdz package contains no USD layer"))?.to_string();
|
||||
let name = zip.file_names().flatten().filter(|n| matches!(super::extension(n).as_str(), "usda" | "usdc" | "usd")).min_by_key(|n| zip.index_for_name(n));
|
||||
let name = name.ok_or_else(|| malformed(KIND, "the usdz package contains no USD layer"))?.into_owned();
|
||||
let dir = name.rsplit_once('/').map_or("", |(d, _)| d).to_string();
|
||||
let mut package = Package { zip, dir };
|
||||
let data = package.read(&name, MAX_MESH_FILE_BYTES).ok_or_else(|| FormatError::TooLarge("the usdz layer is unreadable or larger than 2 GiB".into()))?;
|
||||
|
||||
@@ -347,16 +347,16 @@ fn usda_usdc_and_usdz_round_trip_with_textures() {
|
||||
round_trip(&m, UsdFormat::Usdc, "usdc", &textures);
|
||||
let usdz = round_trip(&m, UsdFormat::Usdz, "usdz", &textures);
|
||||
let mut zip = zip::ZipArchive::new(std::io::Cursor::new(&usdz)).unwrap();
|
||||
let names: Vec<String> = zip.file_names().map(str::to_string).collect();
|
||||
let names: Vec<String> = zip.file_names().map(|n| n.unwrap().into_owned()).collect();
|
||||
assert_eq!(names.first().map(String::as_str), Some("Test_scene.usdc"));
|
||||
assert_eq!(names.len(), 1 + 7, "the layer and every non-black texture");
|
||||
for i in 0..zip.len() {
|
||||
let mut f = zip.by_index(i).unwrap();
|
||||
assert_eq!(f.compression(), zip::CompressionMethod::Stored);
|
||||
assert_eq!(f.data_start() % 64, 0, "usdz entries are 64-byte aligned");
|
||||
assert_eq!(f.data_start().unwrap() % 64, 0, "usdz entries are 64-byte aligned");
|
||||
let mut data = Vec::new();
|
||||
f.read_to_end(&mut data).unwrap();
|
||||
if f.name().ends_with(".png") {
|
||||
if f.name().unwrap().ends_with(".png") {
|
||||
assert!(image::load_from_memory(&data).is_ok());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ fn load<R: Read + Seek>(reader: R) -> Result<ProjectFile> {
|
||||
};
|
||||
for i in 0..zip.len() {
|
||||
let mut f = zip.by_index(i).map_err(zip_err)?;
|
||||
let name = f.name().to_string();
|
||||
let name = f.name().map_err(zip_err)?.into_owned();
|
||||
let size_of = |id: LayerId| texture_set_of(&pf.project, id).and_then(|ts| pf.project.texture_sets.get(ts)).map(|t| t.size());
|
||||
if name == "thumbnail.png" {
|
||||
pf.thumbnail = Some(read_all(&mut f, MAX_THUMBNAIL, &mut budget, &name)?);
|
||||
|
||||
@@ -40,6 +40,9 @@ pub struct Mesh {
|
||||
/// Index ranges per material and part (node / object); `name` is the part name.
|
||||
pub submeshes: Vec<SubMesh>,
|
||||
pub materials: Vec<String>,
|
||||
/// Per triangle, bit `i` set when edge `i` (corner `i` to corner `i + 1`) is a diagonal the
|
||||
/// importer added to split a polygon, which wireframes leave out. Empty: every edge is real.
|
||||
pub diagonals: Vec<u8>,
|
||||
}
|
||||
|
||||
/// Hard cap on mesh size accepted from files (triangles).
|
||||
@@ -74,6 +77,36 @@ impl Mesh {
|
||||
Some([i[0] as usize, i[1] as usize, i[2] as usize])
|
||||
}
|
||||
|
||||
/// The edges wireframes draw: each vertex pair once (smaller index first), leaving out
|
||||
/// polygon diagonals ([`Mesh::diagonals`]) unless only one triangle has the edge (a UV seam
|
||||
/// split it from its twin), per material in `0..materials.len().max(1)`.
|
||||
pub fn wire_edges(&self) -> Vec<Vec<(u32, u32)>> {
|
||||
(0..self.materials.len().max(1))
|
||||
.map(|m| {
|
||||
// Edge → (real in some triangle, triangles using it), in first-seen order.
|
||||
let mut edges: Vec<((u32, u32), bool, u8)> = Vec::new();
|
||||
let mut at: std::collections::HashMap<(u32, u32), usize> = std::collections::HashMap::new();
|
||||
for t in self.triangles_of(m) {
|
||||
let Some(v) = self.indices.get(t * 3..t * 3 + 3) else { continue };
|
||||
let hidden = self.diagonals.get(t).copied().unwrap_or(0);
|
||||
for (i, (a, b)) in [(v[0], v[1]), (v[1], v[2]), (v[2], v[0])].into_iter().enumerate() {
|
||||
let key = (a.min(b), a.max(b));
|
||||
let real = hidden >> i & 1 == 0;
|
||||
let e = *at.entry(key).or_insert_with(|| {
|
||||
edges.push((key, false, 0));
|
||||
edges.len() - 1
|
||||
});
|
||||
if let Some((_, r, n)) = edges.get_mut(e) {
|
||||
*r |= real;
|
||||
*n = n.saturating_add(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
edges.into_iter().filter(|(_, real, n)| *real || *n == 1).map(|(k, ..)| k).collect()
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Material of triangle `t`.
|
||||
pub fn material_of(&self, t: usize) -> Option<usize> {
|
||||
let idx = (t * 3) as u32;
|
||||
@@ -270,6 +303,10 @@ impl Mesh {
|
||||
self.colors.resize(base as usize, Vec4::ONE);
|
||||
self.colors.extend(other.colors.iter().copied().chain(std::iter::repeat(Vec4::ONE)).take(other.positions.len()));
|
||||
}
|
||||
if !(self.diagonals.is_empty() && other.diagonals.is_empty()) {
|
||||
self.diagonals.resize(ibase as usize / 3, 0);
|
||||
self.diagonals.extend(other.diagonals.iter().copied().chain(std::iter::repeat(0)).take(other.triangle_count()));
|
||||
}
|
||||
self.indices.extend(other.indices.iter().map(|i| i + base));
|
||||
self.materials.extend(other.materials.iter().cloned());
|
||||
self.submeshes.extend(other.submeshes.iter().map(|s| SubMesh {
|
||||
@@ -302,6 +339,7 @@ impl Mesh {
|
||||
colors: Vec::new(),
|
||||
submeshes: vec![SubMesh { name: material.into(), material: 0, start: 0, count }],
|
||||
materials: vec![material.into()],
|
||||
diagonals: Vec::new(),
|
||||
};
|
||||
if m.normals.len() != m.positions.len() {
|
||||
m.compute_normals();
|
||||
@@ -377,6 +415,24 @@ mod tests {
|
||||
assert_eq!(m.triangles_of(0).collect::<Vec<_>>(), vec![0, 1]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn wire_edges_leave_out_polygon_diagonals() {
|
||||
let mut m = quad();
|
||||
assert_eq!(m.wire_edges(), vec![vec![(0, 1), (1, 2), (0, 2), (2, 3), (0, 3)]], "triangles show every edge");
|
||||
// Edge 2 of (0, 1, 2) and edge 0 of (0, 2, 3) split the quad.
|
||||
m.diagonals = vec![0b100, 0b001];
|
||||
assert_eq!(m.wire_edges(), vec![vec![(0, 1), (1, 2), (2, 3), (0, 3)]]);
|
||||
// A diagonal whose twin a seam split off (vertex 4 copies vertex 0) stays.
|
||||
let mut seam = m.clone();
|
||||
seam.indices[3] = 4;
|
||||
assert_eq!(seam.wire_edges()[0].len(), 6);
|
||||
// Appending keeps each side's diagonals on its own triangles.
|
||||
let mut a = Mesh::from_parts(m.positions.clone(), None, m.uvs.clone(), vec![0, 1, 2], "A").unwrap();
|
||||
a.append(&m);
|
||||
assert_eq!(a.diagonals, vec![0, 0b100, 0b001]);
|
||||
assert_eq!(crate::primitives::plane(1.0, 2).wire_edges()[0].len(), 12, "a 2×2 grid of quads has 12 edges");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn validate_catches_bad_indices() {
|
||||
let mut m = quad();
|
||||
|
||||
@@ -30,6 +30,8 @@ struct Builder {
|
||||
n: Vec<Vec3>,
|
||||
uv: Vec<Vec2>,
|
||||
idx: Vec<u32>,
|
||||
/// Per triangle: its [`Mesh::diagonals`] bits.
|
||||
diag: Vec<u8>,
|
||||
}
|
||||
|
||||
impl Builder {
|
||||
@@ -55,6 +57,8 @@ impl Builder {
|
||||
let a = base + i * w + j;
|
||||
let (b, c, d) = (a + 1, a + w, a + w + 1);
|
||||
self.idx.extend_from_slice(&[a, c, d, a, d, b]);
|
||||
// Edge d-a of the first triangle and a-d of the second split the quad.
|
||||
self.diag.extend_from_slice(&[0b100, 0b001]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -70,6 +74,7 @@ impl Builder {
|
||||
colors: Vec::new(),
|
||||
submeshes: vec![SubMesh { name: material.into(), material: 0, start: 0, count }],
|
||||
materials: vec![material.into()],
|
||||
diagonals: self.diag,
|
||||
};
|
||||
m.compute_tangents();
|
||||
m
|
||||
@@ -203,6 +208,7 @@ fn disk_into(b: &mut Builder, center: Vec3, radius: f32, up: bool, segs: usize,
|
||||
} else {
|
||||
b.idx.extend_from_slice(&[c, a, bb]);
|
||||
}
|
||||
b.diag.push(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ pub fn displaced(mesh: &Mesh, sets: &[TraceSet]) -> Option<Mesh> {
|
||||
},
|
||||
indices,
|
||||
materials: mesh.materials.clone(),
|
||||
diagonals: Vec::new(),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1018,21 +1018,12 @@ impl Renderer {
|
||||
let vb = mk("tc_vb", bytemuck::cast_slice(&verts), wgpu::BufferUsages::VERTEX);
|
||||
let ib = mk("tc_ib", &idx_bytes, wgpu::BufferUsages::INDEX);
|
||||
let draws: Vec<(u32, u32, usize)> = mesh.submeshes.iter().map(|s| (s.start, s.count, s.material)).collect();
|
||||
// UV edges (each shared edge once) per material, for the 2D view wireframe.
|
||||
// Mesh edges per material (polygons, not their triangles), for the wireframes.
|
||||
let mut line_idx: Vec<u32> = Vec::new();
|
||||
let mut line_draws = Vec::new();
|
||||
for m in 0..mesh.materials.len().max(1) {
|
||||
for (m, edges) in mesh.wire_edges().into_iter().enumerate() {
|
||||
let start = line_idx.len() as u32;
|
||||
let mut seen = std::collections::HashSet::new();
|
||||
for t in mesh.triangles_of(m) {
|
||||
let Some(v) = mesh.tri(t) else { continue };
|
||||
for (a, b) in [(v[0], v[1]), (v[1], v[2]), (v[2], v[0])] {
|
||||
let key = (a.min(b), a.max(b));
|
||||
if seen.insert(key) {
|
||||
line_idx.extend_from_slice(&[key.0 as u32, key.1 as u32]);
|
||||
}
|
||||
}
|
||||
}
|
||||
line_idx.extend(edges.into_iter().flat_map(|(a, b)| [a, b]));
|
||||
line_draws.push((start, line_idx.len() as u32 - start, m));
|
||||
}
|
||||
let lines = mk("tc_lines", bytemuck::cast_slice(&line_idx), wgpu::BufferUsages::INDEX);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Embeds the optional craft-fonts UI fonts (storytold/craft-fonts) when `CRAFT_FONTS_DIR` points
|
||||
//! at a checkout: Inter for the interface (from its Latin catalog) and the CJK
|
||||
//! at a checkout: Inter for the interface (from its Latin catalog) and the CJK and Arabic
|
||||
//! faces; without it `CRAFT_FONTS` is empty and the UI uses egui's and the system's fonts. The
|
||||
//! recipe follows craft-fonts' `docs/integration.md`; no font file is committed here. The Latin
|
||||
//! faces are embedded without their Private Use Area ([`without_private_use`]).
|
||||
@@ -10,10 +10,12 @@ use std::path::PathBuf;
|
||||
/// The UI faces TextureCraft embeds (family, style) per manifest: desktop, then web (the web build
|
||||
/// has a download budget: of the CJK faces only the Japanese one, ~4.5 MB).
|
||||
const MANIFESTS: &[(&str, Faces, Faces)] = &[
|
||||
("fonts/manifest.txt", &[("BIZ UDPGothic", "Regular"), ("Noto Sans CJK SC", "Regular")], &[("BIZ UDPGothic", "Regular")]),
|
||||
("fonts/manifest.txt", &[("BIZ UDPGothic", "Regular"), ("Noto Sans CJK SC", "Regular"), ARABIC], &[("BIZ UDPGothic", "Regular"), ARABIC]),
|
||||
// The interface font, regular and semibold (0.8 MB).
|
||||
(LATIN_MANIFEST, LATIN, LATIN),
|
||||
];
|
||||
/// The Arabic face (0.8 MB, so the web build has it too).
|
||||
const ARABIC: (&str, &str) = ("Noto Sans Arabic", "Regular");
|
||||
/// Newer than the core catalog: a checkout without it keeps the default interface font.
|
||||
const LATIN_MANIFEST: &str = "fonts/latin-manifest.txt";
|
||||
const LATIN: Faces = &[("Inter", "Regular"), ("Inter", "SemiBold")];
|
||||
|
||||
+24
-16
@@ -95,6 +95,22 @@ pub(crate) fn texture_set_list(app: &mut TextureCraftApp, ui: &mut Ui) {
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
// Layers
|
||||
|
||||
/// The add-mask commands, for the selected layer or (`row`) the layer whose mask slot was clicked.
|
||||
fn add_mask_menu(app: &mut TextureCraftApp, ui: &mut Ui, row: Option<u64>) {
|
||||
let enabled = row.is_some() || app.session.selected_layer().is_some();
|
||||
for (label, id) in
|
||||
[(tr("Add white mask"), "mask.add.white"), (tr("Add black mask"), "mask.add.black"), (tr("Add mask with color selection"), "mask.add.colorSelection")]
|
||||
{
|
||||
if ui.add_enabled(enabled, egui::Button::new(label)).clicked() {
|
||||
if let Some(layer) = row {
|
||||
app.run("layer.select", json!({ "layer": layer }));
|
||||
}
|
||||
app.run(id, Value::Null);
|
||||
ui.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn layers(app: &mut TextureCraftApp, ui: &mut Ui) {
|
||||
let tk = Tokens::get(ui.ctx());
|
||||
// Wraps in a narrow column instead of widening the rows below past the panel.
|
||||
@@ -108,7 +124,6 @@ pub(crate) fn layers(app: &mut TextureCraftApp, ui: &mut Ui) {
|
||||
ui.selectable_value(&mut app.ui.layer_channel, c, tr(c.label()));
|
||||
}
|
||||
});
|
||||
let has = app.session.selected_layer().is_some();
|
||||
let selected = app.session.selected_layer().and_then(|id| app.session.doc.project.layers.get(&id)).cloned();
|
||||
ui.menu_button(RichText::new(ic::MAGIC_WAND).size(14.0), |ui| match &selected {
|
||||
Some(l) => effect_menu(app, ui, l),
|
||||
@@ -118,20 +133,7 @@ pub(crate) fn layers(app: &mut TextureCraftApp, ui: &mut Ui) {
|
||||
})
|
||||
.response
|
||||
.on_hover_text(tr("Add effect"));
|
||||
ui.menu_button(RichText::new(ic::SELECTION_BACKGROUND).size(14.0), |ui| {
|
||||
for (label, id) in [
|
||||
(tr("Add white mask"), "mask.add.white"),
|
||||
(tr("Add black mask"), "mask.add.black"),
|
||||
(tr("Add mask with color selection"), "mask.add.colorSelection"),
|
||||
] {
|
||||
if ui.add_enabled(has, egui::Button::new(label)).clicked() {
|
||||
app.run(id, Value::Null);
|
||||
ui.close();
|
||||
}
|
||||
}
|
||||
})
|
||||
.response
|
||||
.on_hover_text(tr("Add mask"));
|
||||
ui.menu_button(RichText::new(ic::SELECTION_BACKGROUND).size(14.0), |ui| add_mask_menu(app, ui, None)).response.on_hover_text(tr("Add mask"));
|
||||
if icon_button(ui, ic::PAINT_BRUSH, tr("Add paint layer"), false, 22.0).clicked() {
|
||||
app.run("layer.add.paint", Value::Null);
|
||||
}
|
||||
@@ -374,7 +376,13 @@ fn layer_row(app: &mut TextureCraftApp, ui: &mut Ui, layer: &Layer, depth: usize
|
||||
p.rect_stroke(mask_rect.expand(2.0), 1.0, Stroke::new(1.5, tk.warning), egui::StrokeKind::Outside);
|
||||
}
|
||||
} else {
|
||||
p.rect_stroke(mask_rect, 1.0, Stroke::new(1.0, tk.field_border), egui::StrokeKind::Inside);
|
||||
// The empty slot adds a mask to this layer.
|
||||
let slot = ui.interact(mask_rect, ui.scope_id().with(("mask_slot", layer.id.0)), Sense::click()).on_hover_text(tr("Add mask"));
|
||||
p.rect_stroke(mask_rect, 1.0, Stroke::new(1.0, if slot.hovered() { tk.accent } else { tk.field_border }), egui::StrokeKind::Inside);
|
||||
if slot.hovered() {
|
||||
p.text(mask_rect.center(), egui::Align2::CENTER_CENTER, ic::PLUS, egui::FontId::proportional(12.0), tk.text);
|
||||
}
|
||||
egui::Popup::menu(&slot).show(|ui| add_mask_menu(app, ui, Some(layer.id.0)));
|
||||
}
|
||||
// Name (or rename editor).
|
||||
let name_rect = Rect::from_min_max(pos2(x, rect.top() + 4.0), pos2(mask_rect.left() - 4.0, rect.bottom() - 4.0));
|
||||
|
||||
+35
-14
@@ -1,15 +1,17 @@
|
||||
//! CJK fallback fonts for the UI. egui's default fonts have no Japanese, Chinese or Korean
|
||||
//! glyphs, so translated UIs (and CJK layer or file names) need more fonts. They come from:
|
||||
//! CJK and Arabic fallback fonts for the UI. egui's default fonts have no Japanese, Chinese,
|
||||
//! Korean or Arabic glyphs, so translated UIs (and such layer or file names) need more fonts.
|
||||
//! They come from:
|
||||
//!
|
||||
//! 1. craft-fonts, embedded at build time when `CRAFT_FONTS_DIR` points at a checkout (optional;
|
||||
//! see `build.rs` and storytold/craft-fonts' `docs/integration.md`);
|
||||
//! 2. on desktop, the operating system's CJK fonts (Windows, macOS, Linux and BSD paths).
|
||||
//! 2. on desktop, the operating system's fonts (Windows, macOS, Linux and BSD paths).
|
||||
//!
|
||||
//! Fonts load lazily: one script when the UI language needs it, all three while the language
|
||||
//! Fonts load lazily: one script when the UI language needs it, all of them while the language
|
||||
//! picker shows every language's own name. They are appended after the app's fonts
|
||||
//! (`theme::font_definitions`), so Latin text and row heights keep the interface font; the current language's script goes first, so
|
||||
//! shared Han characters take that language's glyph forms. In the browser only craft-fonts
|
||||
//! can supply them (without it, a CJK language shows its English name in the picker).
|
||||
//! shared Han characters take that language's glyph forms. egui shapes Arabic and orders
|
||||
//! right-to-left runs itself. In the browser only craft-fonts can supply them (without it, the
|
||||
//! language shows its English name in the picker).
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -35,10 +37,11 @@ pub enum Script {
|
||||
Japanese,
|
||||
Chinese,
|
||||
Korean,
|
||||
Arabic,
|
||||
}
|
||||
|
||||
impl Script {
|
||||
pub const ALL: [Script; 3] = [Script::Japanese, Script::Chinese, Script::Korean];
|
||||
pub const ALL: [Script; 4] = [Script::Japanese, Script::Chinese, Script::Korean, Script::Arabic];
|
||||
|
||||
/// The script a UI language needs beyond Latin.
|
||||
pub fn of_language(code: &str) -> Option<Script> {
|
||||
@@ -46,6 +49,7 @@ impl Script {
|
||||
"ja" => Some(Script::Japanese),
|
||||
"zh-Hans" => Some(Script::Chinese),
|
||||
"ko" => Some(Script::Korean),
|
||||
"ar" => Some(Script::Arabic),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
@@ -56,6 +60,7 @@ impl Script {
|
||||
Script::Japanese => "Jpan",
|
||||
Script::Chinese => "Hans",
|
||||
Script::Korean => "Kore",
|
||||
Script::Arabic => "Arab",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +75,7 @@ impl Script {
|
||||
Script::Japanese => &["YuGothR.ttc", "meiryo.ttc", "msgothic.ttc"],
|
||||
Script::Chinese => &["msyh.ttc", "simsun.ttc", "simhei.ttf"],
|
||||
Script::Korean => &["malgun.ttf", "gulim.ttc"],
|
||||
Script::Arabic => &["segoeui.ttf", "tahoma.ttf", "arial.ttf"],
|
||||
};
|
||||
v.extend(files.iter().map(|f| (fonts.join(f), 0)));
|
||||
} else if cfg!(target_os = "macos") {
|
||||
@@ -79,13 +85,26 @@ impl Script {
|
||||
&["/System/Library/Fonts/Hiragino Sans GB.ttc", "/System/Library/Fonts/STHeiti Light.ttc", "/System/Library/Fonts/PingFang.ttc"]
|
||||
}
|
||||
Script::Korean => &["/System/Library/Fonts/AppleSDGothicNeo.ttc"],
|
||||
Script::Arabic => &["/System/Library/Fonts/SFArabic.ttf", "/System/Library/Fonts/Supplemental/GeezaPro.ttc"],
|
||||
};
|
||||
v.extend(files.iter().map(|f| (PathBuf::from(f), 0)));
|
||||
v.push((PathBuf::from("/System/Library/Fonts/Supplemental/Arial Unicode.ttf"), 0));
|
||||
} else if self == Script::Arabic {
|
||||
for f in [
|
||||
"/usr/share/fonts/truetype/noto/NotoSansArabic-Regular.ttf",
|
||||
"/usr/share/fonts/noto/NotoSansArabic-Regular.ttf",
|
||||
"/usr/share/fonts/google-noto/NotoSansArabic-Regular.ttf",
|
||||
"/usr/local/share/fonts/noto/NotoSansArabic-Regular.ttf",
|
||||
"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
|
||||
"/usr/share/fonts/dejavu/DejaVuSans.ttf",
|
||||
"/usr/local/share/fonts/dejavu/DejaVuSans.ttf",
|
||||
] {
|
||||
v.push((PathBuf::from(f), 0));
|
||||
}
|
||||
} else {
|
||||
// Noto Sans CJK collections hold JP, KR, SC, TC and HK faces, in that order.
|
||||
let face = match self {
|
||||
Script::Japanese => 0,
|
||||
Script::Japanese | Script::Arabic => 0,
|
||||
Script::Korean => 1,
|
||||
Script::Chinese => 2,
|
||||
};
|
||||
@@ -136,7 +155,7 @@ impl UiFonts {
|
||||
let mut defs = crate::theme::font_definitions();
|
||||
for s in &want {
|
||||
let Some(data) = self.data(*s) else { continue };
|
||||
let name = format!("cjk-{}", s.iso());
|
||||
let name = format!("script-{}", s.iso());
|
||||
defs.font_data.insert(name.clone(), data);
|
||||
for family in [FontFamily::Proportional, FontFamily::Monospace, FontFamily::Name(crate::theme::SEMIBOLD.into())] {
|
||||
defs.families.entry(family).or_default().push(name.clone());
|
||||
@@ -257,10 +276,12 @@ mod tests {
|
||||
assert_eq!(Script::of_language("ja"), Some(Script::Japanese));
|
||||
assert_eq!(Script::of_language("zh-Hans"), Some(Script::Chinese));
|
||||
assert_eq!(Script::of_language("ko"), Some(Script::Korean));
|
||||
assert_eq!(Script::of_language("ar"), Some(Script::Arabic));
|
||||
assert_eq!(Script::of_language("de"), None);
|
||||
for l in &crate::i18n::LANGUAGES {
|
||||
let cjk = l.name.chars().any(|c| !c.is_ascii() && c > '\u{2E80}');
|
||||
assert_eq!(cjk, Script::of_language(l.code).is_some(), "{}", l.code);
|
||||
// Past the Latin blocks and their diacritics.
|
||||
let other_script = l.name.chars().any(|c| c > '\u{036F}');
|
||||
assert_eq!(other_script, Script::of_language(l.code).is_some(), "{}", l.code);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -273,10 +294,10 @@ mod tests {
|
||||
f.update(&ctx, "ko", false);
|
||||
assert_eq!(f.installed, [Script::Korean]);
|
||||
f.update(&ctx, "ja", true);
|
||||
assert_eq!(f.installed, [Script::Japanese, Script::Chinese, Script::Korean]);
|
||||
assert_eq!(f.installed, Script::ALL);
|
||||
// Closing the picker keeps what is loaded; each script was read at most once.
|
||||
f.update(&ctx, "ja", false);
|
||||
assert_eq!(f.installed.len(), 3);
|
||||
assert_eq!(f.loaded.len(), 3);
|
||||
assert_eq!(f.installed.len(), Script::ALL.len());
|
||||
assert_eq!(f.loaded.len(), Script::ALL.len());
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@ use std::fmt::Display;
|
||||
use std::sync::OnceLock;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
||||
mod ar;
|
||||
mod de;
|
||||
mod es;
|
||||
mod fr;
|
||||
@@ -28,7 +29,7 @@ pub struct Language {
|
||||
pub table: &'static [(&'static str, &'static str)],
|
||||
}
|
||||
|
||||
const COUNT: usize = 9;
|
||||
const COUNT: usize = 10;
|
||||
|
||||
pub static LANGUAGES: [Language; COUNT] = [
|
||||
Language { code: "en", name: "English", english: "English", table: &[] },
|
||||
@@ -40,6 +41,7 @@ pub static LANGUAGES: [Language; COUNT] = [
|
||||
Language { code: "ja", name: "日本語", english: "Japanese", table: ja::TABLE },
|
||||
Language { code: "zh-Hans", name: "简体中文", english: "Chinese (Simplified)", table: zh_hans::TABLE },
|
||||
Language { code: "ko", name: "한국어", english: "Korean", table: ko::TABLE },
|
||||
Language { code: "ar", name: "العربية", english: "Arabic", table: ar::TABLE },
|
||||
];
|
||||
|
||||
static MAPS: [OnceLock<HashMap<&'static str, &'static str>>; COUNT] = [const { OnceLock::new() }; COUNT];
|
||||
@@ -270,7 +272,8 @@ mod tests",
|
||||
assert_eq!(trf("Saved {path}", &[("path", &"a.tcraft")]), "Saved a.tcraft");
|
||||
assert_eq!(trf("{a} of {b} {c}", &[("a", &1), ("b", &2)]), "1 of 2 {c}");
|
||||
assert_eq!(trf("{unclosed", &[]), "{unclosed");
|
||||
for (locale, code) in [("de-AT", "de"), ("pt_PT.UTF-8", "pt-BR"), ("zh-Hant-TW", "zh-Hans"), ("ja", "ja"), ("ko_KR", "ko"), ("nl-NL", "en"), ("", "en")]
|
||||
for (locale, code) in
|
||||
[("de-AT", "de"), ("pt_PT.UTF-8", "pt-BR"), ("zh-Hant-TW", "zh-Hans"), ("ja", "ja"), ("ko_KR", "ko"), ("ar-EG", "ar"), ("nl-NL", "en"), ("", "en")]
|
||||
{
|
||||
assert_eq!(language_for_locale(locale), code, "{locale}");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,927 @@
|
||||
//! Arabic UI text: (English key, translation). Keys are the English strings passed to `tr`.
|
||||
|
||||
pub const TABLE: &[(&str, &str)] = &[
|
||||
("0 turns autosave off. Copies go to {folder}", "0 يعطل الحفظ التلقائي. تُحفظ النُسخ في {folder}"),
|
||||
("2D view only", "عرض ثنائي الأبعاد فقط"),
|
||||
("32 bits (float)", "32 بت (فاصلة عائمة)"),
|
||||
("3D mesh", "مجسم ثلاثي الأبعاد"),
|
||||
("3D meshes", "مجسمات ثلاثية الأبعاد"),
|
||||
(
|
||||
"3D texture painting: layers, masks, smart materials, mesh map baking and export.",
|
||||
"رسم الخامات ثلاثية الأبعاد: طبقات، أقنعة، مواد ذكية، خبز خرائط المجسم والتصدير.",
|
||||
),
|
||||
("3D view only", "عرض ثلاثي الأبعاد فقط"),
|
||||
("3D/2D views", "عرض 3D/2D"),
|
||||
(
|
||||
"A folder blends its children (pass-through). Set per-channel opacity in the layer rows.",
|
||||
"المجلد يدمج عناصره الفرعية (تمرير مباشر). حدد عتامة كل قناة في صفوف الطبقات.",
|
||||
),
|
||||
("ACES filmic", "ACES سينمائي"),
|
||||
("Ambient", "المحيط"),
|
||||
("AO intensity", "شدة الانسداد المحيطي (AO)"),
|
||||
("About TextureCraft", "حول TextureCraft"),
|
||||
("About TextureCraft...", "حول TextureCraft..."),
|
||||
(
|
||||
"Add a fill layer using this image (or drag it onto the 3D view to place it as a decal)",
|
||||
"إضافة طبقة تعبئة بهذه الصورة (أو اسحبها إلى العرض ثلاثي الأبعاد لوضعها كملصق)",
|
||||
),
|
||||
("Add a fill layer using this pattern", "إضافة طبقة تعبئة بهذا النمط"),
|
||||
(
|
||||
"Add a fill layer with this material above the selected layer (or drag it into the layer stack)",
|
||||
"إضافة طبقة تعبئة بهذه المادة فوق الطبقة المحددة (أو اسحبها إلى مكدس الطبقات)",
|
||||
),
|
||||
("Add an anchor point to a layer below to use its stack as a mask.", "أضف نقطة ارتكاز إلى طبقة سفلية لاستخدام مكدسها كقناع."),
|
||||
("Add anchor point", "إضافة نقطة ارتكاز"),
|
||||
("Add as decal (view center)", "إضافة كملصق (مركز العرض)"),
|
||||
("Add black mask", "إضافة قناع أسود"),
|
||||
("Add channel", "إضافة قناة"),
|
||||
("Add color", "إضافة لون"),
|
||||
("Add compare mask", "إضافة قناع مقارنة"),
|
||||
("Add effect", "إضافة تأثير"),
|
||||
("Add fill", "إضافة تعبئة"),
|
||||
("Add fill layer", "إضافة طبقة تعبئة"),
|
||||
("Add filter", "إضافة مرشح"),
|
||||
("Add folder", "إضافة مجلد"),
|
||||
("Add generator", "إضافة مولّد"),
|
||||
("Add high definition meshes", "إضافة مجسمات عالية الدقة"),
|
||||
("Add levels", "إضافة مستويات"),
|
||||
("Add mask", "إضافة قناع"),
|
||||
("Add mask with color selection", "إضافة قناع مع تحديد لوني"),
|
||||
("Add output", "إضافة مخرج"),
|
||||
("Add paint", "إضافة رسم"),
|
||||
("Add paint layer", "إضافة طبقة رسم"),
|
||||
("Add smart material from the shelf", "إضافة مادة ذكية من الرف"),
|
||||
(
|
||||
"Add the smart material folder above the selected layer (or drag it into the layer stack)",
|
||||
"إضافة مجلد المادة الذكية فوق الطبقة المحددة (أو اسحبه إلى مكدس الطبقات)",
|
||||
),
|
||||
(
|
||||
"Add this finish to the selected layer's roughness and height (or drag it onto a layer)",
|
||||
"إضافة هذه اللمسة النهائية إلى خشونة وارتفاع الطبقة المحددة (أو اسحبها إلى طبقة)",
|
||||
),
|
||||
("Add to the layer content", "إضافة إلى محتوى الطبقة"),
|
||||
("Add to the mask", "إضافة إلى القناع"),
|
||||
(
|
||||
"Add to the selected layer's content, or its mask when the mask is selected (or drag it onto a layer)",
|
||||
"إضافة إلى محتوى الطبقة المحددة، أو إلى قناعها عند تحديد القناع (أو اسحبها إلى طبقة)",
|
||||
),
|
||||
("Add white mask", "إضافة قناع أبيض"),
|
||||
("Adjustments", "تعديلات"),
|
||||
(
|
||||
"Aligned: the offset set by the first stroke is kept. V + click sets a new source.",
|
||||
"محاذاة: يُحتفظ بالإزاحة المحددة بالضربة الأولى. V + النقر يحدد مصدراً جديداً.",
|
||||
),
|
||||
("Alignment", "محاذاة"),
|
||||
("Alignment and culling", "المحاذاة والاستبعاد"),
|
||||
("All layers", "كل الطبقات"),
|
||||
("Alpha", "ألفا"),
|
||||
("Alphas", "أقنعة ألفا"),
|
||||
("Also bound to {item} ({menu})", "مرتبط أيضاً بـ {item} ({menu})"),
|
||||
("Alt + LMB drag", "سحب بـ Alt + زر الفأرة الأيسر"),
|
||||
("Always", "دائماً"),
|
||||
("Ambient occlusion", "الانسداد المحيطي (AO)"),
|
||||
("Ambient occlusion intensity", "شدة الانسداد المحيطي"),
|
||||
("Amount", "المقدار"),
|
||||
("Anchor point", "نقطة ارتكاز"),
|
||||
("Anchor: {name}", "نقطة ارتكاز: {name}"),
|
||||
("Anchor: {name} ({channel})", "نقطة ارتكاز: {name} ({channel})"),
|
||||
("Angle", "الزاوية"),
|
||||
("Angle (degrees)", "الزاوية (بالدرجات)"),
|
||||
("Angle fade from", "تلاشي الزاوية من"),
|
||||
("Angle fade to", "تلاشي الزاوية إلى"),
|
||||
("Angle jitter", "اضطراب الزاوية"),
|
||||
("Anisotropy angle", "زاوية تباين الخواص"),
|
||||
("Anisotropy level", "مستوى تباين الخواص"),
|
||||
("Antialiasing", "تنعيم الحواف"),
|
||||
("Aperture", "فتحة العدسة"),
|
||||
("Apply", "تطبيق"),
|
||||
("Apply to all texture sets", "تطبيق على جميع مجموعات الخامات"),
|
||||
("ArtCraft website...", "موقع ArtCraft الإلكتروني..."),
|
||||
("Assets", "الأصول"),
|
||||
("Automatic (from the mesh UVs)", "تلقائي (من إحداثيات UV للمجسم)"),
|
||||
("Autosave every", "حفظ تلقائي كل"),
|
||||
("Average normals", "توسيط النواظم"),
|
||||
("Back to painting", "العودة إلى الرسم"),
|
||||
("Backface culling", "استبعاد الوجوه الخلفية"),
|
||||
("Bake Mesh Maps", "خبز خرائط المجسم"),
|
||||
("Bake mesh maps", "خبز خرائط المجسم"),
|
||||
(
|
||||
"Bake mesh maps (F8) for curvature, AO and thickness based generators.",
|
||||
"اخبز خرائط المجسم (F8) للمولدات المعتمدة على الانحناء والانسداد المحيطي والسماكة.",
|
||||
),
|
||||
("Bake selected textures ({n})", "خبز الخامات المحددة ({n})"),
|
||||
("Bake with \"Bake selected textures\"", "اخبز باستخدام \"خبز الخامات المحددة\""),
|
||||
("Baked Lighting", "إضاءة مخبوزة"),
|
||||
("Baking", "الخبز"),
|
||||
("Base color", "اللون الأساسي"),
|
||||
(
|
||||
"Base color is the diffuse color, Specular the F0 color and Glossiness 1 - roughness (add these channels in the texture set settings).",
|
||||
"اللون الأساسي هو اللون المنتشر، واللمعان هو لون F0، والصفاء هو 1 - الخشونة (أضف هذه القنوات في إعدادات مجموعة الخامات).",
|
||||
),
|
||||
("Base color, Metallic, Roughness and Specular level.", "اللون الأساسي، المعدنية، الخشونة ومستوى اللمعان."),
|
||||
("Based on each texture set's size", "بناءً على حجم كل مجموعة خامات"),
|
||||
("Basic settings", "الإعدادات الأساسية"),
|
||||
("Bent normals", "النواظم المنحنية"),
|
||||
("Bevel", "شطف الحواف"),
|
||||
("Black", "أسود"),
|
||||
("Blending", "الدمج"),
|
||||
("Blending mode of the displayed channel", "نمط الدمج للقناة المعروضة"),
|
||||
("Blur", "تمويه"),
|
||||
("Blur Directional", "تمويه اتجاهي"),
|
||||
("Blur and sharpen", "تمويه وتوضيح"),
|
||||
("Bounces", "الارتدادات"),
|
||||
("Bricks", "طوب"),
|
||||
("Brush", "فرشاة"),
|
||||
("Brush size", "حجم الفرشاة"),
|
||||
("Brush size down / up", "تصغير / تكبير حجم الفرشاة"),
|
||||
("Brushed lines", "خطوط مصقولة بالفرشاة"),
|
||||
("Built-in (read-only): duplicate it to edit", "مدمج (للقراءة فقط): انسخه لتعديله"),
|
||||
("Built-in templates are read-only: duplicate one to edit it", "القوالب المدمجة للقراءة فقط: انسخ قالباً لتعديله"),
|
||||
("Built-in: {mesh}", "مدمج: {mesh}"),
|
||||
("By mesh name", "حسب اسم المجسم"),
|
||||
("Cage: {name}", "القفص (Cage): {name}"),
|
||||
("Camera", "الكاميرا"),
|
||||
("Camera settings", "إعدادات الكاميرا"),
|
||||
("Cancel", "إلغاء"),
|
||||
("Cancel the stroke", "إلغاء ضربة الفرشاة"),
|
||||
("Cell size (texels at 2K)", "حجم الخلية (تكسل بدقة 2K)"),
|
||||
("Cells", "خلايا"),
|
||||
("Channel", "القناة"),
|
||||
("Channel source: uniform value, procedural or anchor", "مصدر القناة: قيمة موحدة، إجرائي أو نقطة ارتكاز"),
|
||||
("Channels", "القنوات"),
|
||||
("Checker", "رقعة شطرنج"),
|
||||
("Clamp", "تقييد القيم"),
|
||||
("Clear", "مسح"),
|
||||
("Clear mask", "مسح القناع"),
|
||||
("Clear recent projects", "مسح المشاريع الأخيرة"),
|
||||
("Click a mesh part to show or hide the selected layer on it.", "انقر على جزء من المجسم لإظهار أو إخفاء الطبقة المحددة عليه."),
|
||||
("Click the mesh to pick its material into the brush", "انقر على المجسم لالتقاط مادته إلى الفرشاة"),
|
||||
("Click the mesh to place the decal", "انقر على المجسم لوضع الملصق"),
|
||||
("Click, then press the new shortcut (Esc cancels)", "انقر، ثم اضغط الاختصار الجديد (Esc للإلغاء)"),
|
||||
("Clone", "استنساخ"),
|
||||
("Close", "إغلاق"),
|
||||
("Closed path", "مسار مغلق"),
|
||||
("Cloud", "سحابة"),
|
||||
("Clouds", "سحب"),
|
||||
("Coat normal", "ناظم الطبقة الشفافة"),
|
||||
("Coat roughness", "خشونة الطبقة الشفافة"),
|
||||
("Coat weight", "وزن الطبقة الشفافة"),
|
||||
("Color", "اللون"),
|
||||
("Color Balance", "توازن الألوان"),
|
||||
("Color burn", "حرق لوني (Color Burn)"),
|
||||
("Color dodge", "تفتيح لوني (Color Dodge)"),
|
||||
("Color map", "خريطة الألوان"),
|
||||
("Color of the light that travels under the surface (each channel goes as far as its value)", "لون الضوء المنتقل تحت السطح (تصل كل قناة بقدر قيمتها)"),
|
||||
("Color picker", "منتقي الألوان"),
|
||||
("Color selection", "تحديد لوني"),
|
||||
("Color to replace", "اللون المراد استبداله"),
|
||||
("Colors near the first shift towards the second, keeping their shading.", "الألوان القريبة من الأولى تتحول نحو الثانية مع الحفاظ على تظليلها."),
|
||||
("Colors read as gray. Add a levels or blur effect above to shape the result.", "تُقرأ الألوان كرمادي. أضف تأثير مستويات أو تمويه في الأعلى لتشكيل النتيجة."),
|
||||
("Combine with the layer's height", "الدمج مع ارتفاع الطبقة"),
|
||||
("Common parameters", "المعلمات المشتركة"),
|
||||
("Compare mask", "قناع مقارنة"),
|
||||
("Compositing", "التركيب"),
|
||||
("Constant", "ثابت"),
|
||||
("Constants", "ثوابت"),
|
||||
("Contrast", "التباين"),
|
||||
("Contrast/Luminosity", "التباين / الإضاءة"),
|
||||
("Converted maps", "الخرائط المحوّلة"),
|
||||
("Copy from", "نسخ من"),
|
||||
("Copy layer(s)", "نسخ الطبقة (الطبقات)"),
|
||||
("Copy the selected layer alone (its empty parts copy nothing)", "نسخ الطبقة المحددة وحدها (الأجزاء الفارغة لا تنسخ شيئاً)"),
|
||||
("Copy these bake settings to every texture set", "نسخ إعدادات الخبز هذه إلى كل مجموعة خامات"),
|
||||
("Copy to all texture sets", "نسخ إلى جميع مجموعات الخامات"),
|
||||
("Copy what the texture set shows", "نسخ ما تعرضه مجموعة الخامات"),
|
||||
("Couldn't encode the render", "تعذر ترميز التصيير"),
|
||||
("Couldn't export textures: {error}", "تعذر تصدير الخامات: {error}"),
|
||||
("Couldn't export the mesh: {error}", "تعذر تصدير المجسم: {error}"),
|
||||
("Couldn't export the template: {error}", "تعذر تصدير القالب: {error}"),
|
||||
("Couldn't import {name}: {error}", "تعذر استيراد {name}: {error}"),
|
||||
("Couldn't open {name}: {error}", "تعذر فتح {name}: {error}"),
|
||||
("Couldn't read the render back from the GPU", "تعذرت قراءة التصيير من وحدة معالجة الرسوميات (GPU)"),
|
||||
("Couldn't save the render: {error}", "تعذر حفظ التصيير: {error}"),
|
||||
("Couldn't save {name}: {error}", "تعذر حفظ {name}: {error}"),
|
||||
("Count per stamp", "العدد لكل طبعة"),
|
||||
("Crate", "صندوق"),
|
||||
("Create", "إنشاء"),
|
||||
("Create smart material", "إنشاء مادة ذكية"),
|
||||
("Cube", "مكعب"),
|
||||
("Current layer", "الطبقة الحالية"),
|
||||
("Curvature", "الانحناء"),
|
||||
("Cut layer(s)", "قص الطبقة (الطبقات)"),
|
||||
("Cyan / red", "سماوي / أحمر"),
|
||||
("Cylinder", "أسطوانة"),
|
||||
("Cylindrical projection", "إسقاط أسطواني"),
|
||||
("Dark to light: the content's luminance picks a color along these stops.", "من الداكن إلى الفاتح: تحدد إضاءة المحتوى لوناً على طول نقاط التوقف هذه."),
|
||||
("Darken (Min)", "تغميق (الحد الأدنى)"),
|
||||
("Decal", "ملصق"),
|
||||
("Decal projection", "إسقاط الملصق"),
|
||||
("Default", "افتراضي"),
|
||||
("Default camera", "الكاميرا الافتراضية"),
|
||||
("Delete the selected template", "حذف القالب المحدد"),
|
||||
("Delete this camera", "حذف هذه الكاميرا"),
|
||||
("Deleted template \"{name}\"", "تم حذف القالب \"{name}\""),
|
||||
("Denoise", "إزالة الضوضاء"),
|
||||
("Depth", "العمق"),
|
||||
("Depth of field", "عمق الميدان"),
|
||||
("Depth of field (viewport and Rendering mode)", "عمق الميدان (منفذ العرض ونمط التصيير)"),
|
||||
("Depth of the sharp plane along the view (0: the orbit center)", "عمق المستوى الحاد على طول خط النظر (0: مركز المدار)"),
|
||||
("Difference", "الفرق"),
|
||||
("Dilation + default background color", "تمديد + لون الخلفية الافتراضي"),
|
||||
("Dilation + transparent", "تمديد + شفاف"),
|
||||
("Dilation infinite", "تمديد لا نهائي"),
|
||||
("Dilation width", "عرض التمديد"),
|
||||
("Direction {axis}", "الاتجاه {axis}"),
|
||||
("Dirt", "أوساخ"),
|
||||
("Disable", "تعطيل"),
|
||||
("Dismiss", "تجاهل"),
|
||||
("Displacement (height channel)", "إزاحة (قناة الارتفاع)"),
|
||||
("Display Settings", "إعدادات العرض"),
|
||||
("Display material", "عرض المادة"),
|
||||
("Display next channel", "عرض القناة التالية"),
|
||||
("Display next mesh map", "عرض خريطة المجسم التالية"),
|
||||
("Display previous channel", "عرض القناة السابقة"),
|
||||
("Display previous mesh map", "عرض خريطة المجسم السابقة"),
|
||||
("Distance", "المسافة"),
|
||||
("Distort", "تشويه"),
|
||||
("Divide", "قسمة"),
|
||||
("Document resolution", "دقة المستند"),
|
||||
("Documentation...", "التوثيق..."),
|
||||
("Done on CPU: {n} / {max} samples, {s} s", "اكتمل على المعالج (CPU): {n} / {max} عينة، {s} ث"),
|
||||
("Done on GPU: {n} / {max} samples, {s} s", "اكتمل على المعالج الرسومي (GPU): {n} / {max} عينة، {s} ث"),
|
||||
("Double-click to rename", "انقر نقراً مزدوجاً لإعادة التسمية"),
|
||||
("Download as", "تنزيل باسم"),
|
||||
("Downloaded {name}", "تم تنزيل {name}"),
|
||||
("Drag onto an output channel", "اسحب إلى قناة إخراج"),
|
||||
("Drags the layer stack's values along the stroke into the selected layer.", "يسحب قيم مكدس الطبقات على طول الضربة إلى الطبقة المحددة."),
|
||||
(
|
||||
"Draws {name} of texture set \"{set}\". Edits to the source show in every instance.",
|
||||
"يرسم {name} لمجموعة الخامات \"{set}\". التعديلات على المصدر تظهر في كل نسخة.",
|
||||
),
|
||||
(
|
||||
"Drag the frame to move the decal, a corner to scale it, the round handle to turn it",
|
||||
"اسحب الإطار لتحريك الملصق، أو الزاوية لتغيير حجمه، أو المقبض الدائري لتدويره",
|
||||
),
|
||||
("Dry streaks", "خطوط جافة"),
|
||||
("Duplicate layer(s)", "تكرار الطبقة (الطبقات)"),
|
||||
("Duplicate the selected template", "تكرار القالب المحدد"),
|
||||
("Edge Detect", "اكتشاف الحواف"),
|
||||
("Edit", "تحرير"),
|
||||
("Edit keyboard shortcuts...", "تعديل اختصارات لوحة المفاتيح..."),
|
||||
("Edit quick mask", "تحرير القناع السريع"),
|
||||
("Editing quick mask: paint where painting is allowed (U to finish)", "تحرير القناع السريع: ارسم حيث يُسمح بالرسم (اضغط U للإنهاء)"),
|
||||
(
|
||||
"Editing the quick mask: strokes paint where painting is allowed. Press U to finish.",
|
||||
"تحرير القناع السريع: ترسم الضربات حيث يُسمح بالرسم. اضغط U للإنهاء.",
|
||||
),
|
||||
("Emissive", "إشعاع"),
|
||||
("Enable or disable the effect", "تمكين أو تعطيل التأثير"),
|
||||
("Enable quick mask", "تمكين القناع السريع"),
|
||||
("Environment blur", "تمويه البيئة"),
|
||||
("Environment exposure (EV)", "تعريض البيئة (EV)"),
|
||||
("Environment map", "خريطة البيئة"),
|
||||
("Environment opacity", "عتامة البيئة"),
|
||||
("Environment rotation", "دوران البيئة"),
|
||||
("Environment settings", "إعدادات البيئة"),
|
||||
("Environment: {name}", "البيئة: {name}"),
|
||||
("Environments", "البيئات"),
|
||||
("Eraser", "ممحاة"),
|
||||
("Exclusion", "استبعاد (Exclusion)"),
|
||||
("Expand or collapse the folder", "توسيع المجلد أو طيه"),
|
||||
("Export", "تصدير"),
|
||||
("Export Mesh...", "تصدير المجسم..."),
|
||||
("Export Textures...", "تصدير الخامات..."),
|
||||
("Export mesh", "تصدير المجسم"),
|
||||
("Export template", "تصدير القالب"),
|
||||
("Export templates", "تصدير القوالب"),
|
||||
("Export textures", "تصدير الخامات"),
|
||||
("Export the selected template (.json)", "تصدير القالب المحدد (.json)"),
|
||||
("Exported mesh to {path}", "تم تصدير المجسم إلى {path}"),
|
||||
("Exported template \"{name}\" to {path}", "تم تصدير القالب \"{name}\" إلى {path}"),
|
||||
("Exported {n} textures to {folder}", "تم تصدير {n} خامة إلى {folder}"),
|
||||
("F0 from specular level", "F0 من مستوى اللمعان"),
|
||||
("Fabric weave", "نسيج قماش"),
|
||||
("Field of view (deg)", "مجال الرؤية (بالدرجات)"),
|
||||
("File", "ملف"),
|
||||
("File name without extension; variables insert names", "اسم الملف بدون الامتداد؛ تُدرج المتغيرات الأسماء"),
|
||||
("File type", "نوع الملف"),
|
||||
("Fill", "تعبئة"),
|
||||
("Fill the closed path (lasso)", "تعبئة المسار المغلق (حبل التحديد)"),
|
||||
("Fill the path (close it first)", "تعبئة المسار (أغلقه أولاً)"),
|
||||
("Filter the remaining noise while keeping edges and texture detail", "تصفية الضوضاء المتبقية مع الحفاظ على الحواف وتفاصيل الخامة"),
|
||||
("Filters", "مرشحات"),
|
||||
("Fine noise", "ضوضاء دقيقة"),
|
||||
("Fingerprints", "بصمات أصابع"),
|
||||
("Flatten layer", "تسطيح الطبقة"),
|
||||
("Flow", "التدفق"),
|
||||
("Flow and opacity", "التدفق والعتامة"),
|
||||
("Flow jitter", "اضطراب التدفق"),
|
||||
("Focus distance", "مسافة التركيز"),
|
||||
("Folder", "مجلد"),
|
||||
("Folders", "مجلدات"),
|
||||
("Follow path", "اتباع المسار"),
|
||||
("Free and open source (MIT OR Apache-2.0), written in Rust.", "مجاني ومفتوح المصدر (MIT أو Apache-2.0)، كُتب بلغة Rust."),
|
||||
("From normal map", "من خريطة النواظم"),
|
||||
(
|
||||
"From normal map: curvature of the baked normal map's detail instead of the mesh.",
|
||||
"من خريطة النواظم: انحناء تفاصيل خريطة النواظم المخبوزة بدلاً من المجسم.",
|
||||
),
|
||||
("From template", "من قالب"),
|
||||
("From template / project", "من قالب / مشروع"),
|
||||
("Full", "كامل"),
|
||||
("Geometry mask", "قناع هندسي"),
|
||||
(
|
||||
"GGX specular with height-correlated Smith visibility, Lambert diffuse, split-sum image-based lighting with spherical-harmonics irradiance and horizon fading.",
|
||||
"لمعان GGX مع رؤية سميث المرتبطة بالارتفاع، وانتشار لامبرت، وإضاءة معتمدة على الصور بمجموع مقسم مع إشعاع توافقيات كروية وتلاشي الأفق.",
|
||||
),
|
||||
("Gamma", "غاما (Gamma)"),
|
||||
("General export parameters", "معلمات التصدير العامة"),
|
||||
("General properties", "الخصائص العامة"),
|
||||
("Generator", "مولّد"),
|
||||
("Geometry and UVs only", "الهندسة وإحداثيات UV فقط"),
|
||||
("Glossiness", "الصفاء (Glossiness)"),
|
||||
("Glossiness from roughness", "الصفاء من الخشونة"),
|
||||
("Glow", "توهج"),
|
||||
("Gradient", "تدرج لوني"),
|
||||
("Gradient Map", "خريطة التدرج"),
|
||||
("Gravity", "الجاذبية"),
|
||||
("Gray", "رمادي"),
|
||||
("Gray + A", "رمادي + A"),
|
||||
("Gray 50%", "رمادي 50%"),
|
||||
("Grayscale", "تدرج رمادي"),
|
||||
("Group layer(s)", "تجميع الطبقة (الطبقات)"),
|
||||
("Grunge", "تعتيق (Grunge)"),
|
||||
("HDR environments", "بيئات HDR"),
|
||||
("High Pass", "تمرير عالي (High Pass)"),
|
||||
("HSL Perceptive", "HSL إدراكي"),
|
||||
("Half", "نصف"),
|
||||
("Hammered", "مطروق"),
|
||||
("Hard light", "ضوء ساطع (Hard Light)"),
|
||||
("Hardness", "الصلابة"),
|
||||
("Height", "الارتفاع"),
|
||||
("Height offset", "إزاحة الارتفاع"),
|
||||
("Height to normal strength", "قوة تحويل الارتفاع إلى ناظم"),
|
||||
("Help", "مساعدة"),
|
||||
("Hide UI", "إخفاء واجهة المستخدم"),
|
||||
("High", "عالي"),
|
||||
("High definition meshes", "مجسمات عالية الدقة"),
|
||||
(
|
||||
"High poly height between the max rear (black) and max frontal (white) distances.",
|
||||
"ارتفاع المجسم عالي الدقة بين المسافة الخلفية القصوى (أسود) والأمامية القصوى (أبيض).",
|
||||
),
|
||||
("High poly mesh suffix", "لاحقة المجسم عالي الدقة"),
|
||||
("High poly: {name}", "عالي الدقة: {name}"),
|
||||
("Highlights", "المناطق المضيئة"),
|
||||
("History", "السجل"),
|
||||
(
|
||||
"Hold S: left-drag rotates, right-drag scales, middle-drag moves the stencil.",
|
||||
"استمر بالضغط على S: السحب بالزر الأيسر يدوّر، والأيمن يغيّر الحجم، والأوسط يحرّك الستنسل.",
|
||||
),
|
||||
("Hold V and click the mesh to set the clone source", "استمر بالضغط على V وانقر على المجسم لتعيين مصدر الاستنساخ"),
|
||||
(
|
||||
"Hold V and click the mesh to set the source, then paint elsewhere to copy it.",
|
||||
"استمر بالضغط على V وانقر على المجسم لتعيين المصدر، ثم ارسم في مكان آخر لنسخه.",
|
||||
),
|
||||
(
|
||||
"How far light travels under the surface, as a fraction of the mesh size (where the Scattering weight channel is painted)",
|
||||
"المسافة التي ينتقل بها الضوء تحت السطح، كنسبة من حجم المجسم (حيث تُرسَم قناة وزن التشتت)",
|
||||
),
|
||||
(
|
||||
"How strongly transmissive surfaces bend light (where the Transmission channel is painted): water 1.33, glass 1.5, diamond 2.42",
|
||||
"مدى انكسار الضوء في الأسطح النافذة (حيث تُرسَم قناة النفاذية): ماء 1.33، زجاج 1.5، ألماس 2.42",
|
||||
),
|
||||
("Hue shift (degrees)", "إزاحة تدرج اللون (بالدرجات)"),
|
||||
("ID", "المُعرّف (ID)"),
|
||||
("Image: {name}", "صورة: {name}"),
|
||||
("Images", "صور"),
|
||||
("Import HDR...", "استيراد HDR..."),
|
||||
("Import a template (.json)", "استيراد قالب (.json)"),
|
||||
("Import an image (File > Import resources) to project it onto the mesh.", "استورد صورة (ملف > استيراد الموارد) لإسقاطها على المجسم."),
|
||||
("Import images to use them in fills and masks", "استورد الصور لاستخدامها في التعبئة والأقنعة"),
|
||||
("Import resources...", "استيراد الموارد..."),
|
||||
("Import...", "استيراد..."),
|
||||
("Imported template \"{name}\"", "تم استيراد القالب \"{name}\""),
|
||||
("Imported {name}", "تم استيراد {name}"),
|
||||
("Index of refraction", "معامل الانكسار"),
|
||||
("Input high", "المدخل العالي"),
|
||||
("Input low", "المدخل المنخفض"),
|
||||
("Input maps", "خرائط المدخلات"),
|
||||
("Insert a variable", "إدراج متغير"),
|
||||
("Instance", "نسخة مرتبطة (Instance)"),
|
||||
("Instantiate across texture sets", "إنشاء نسخ مرتبطة عبر مجموعات الخامات"),
|
||||
("Intensity (texels at 2K)", "الشدة (تكسل بدقة 2K)"),
|
||||
("Interface", "الواجهة"),
|
||||
("Interface scale", "مقياس الواجهة"),
|
||||
("Inverse Subtract", "طرح عكسي"),
|
||||
("Inverse divide", "قسمة عكسية"),
|
||||
("Invert", "عكس"),
|
||||
("Invert mask", "عكس القناع"),
|
||||
("Invert mask background", "عكس خلفية القناع"),
|
||||
("Invert quick mask", "عكس القناع السريع"),
|
||||
("Jitters", "اضطرابات (Jitters)"),
|
||||
("Join the ArtCraft community on Discord", "انضم إلى مجتمع ArtCraft على Discord"),
|
||||
("Join the community (Discord)...", "الانضمام إلى المجتمع (Discord)..."),
|
||||
("Key light (shadow-casting light, direct only)", "الضوء الرئيسي (ضوء ملقي للظلال، مباشر فقط)"),
|
||||
("Keyboard", "لوحة المفاتيح"),
|
||||
("Keyboard shortcuts", "اختصارات لوحة المفاتيح"),
|
||||
("Light azimuth (degrees)", "سمت الضوء (بالدرجات)"),
|
||||
("Light elevation (degrees)", "ارتفاع الضوء (بالدرجات)"),
|
||||
("Light intensity", "شدة الضوء"),
|
||||
("LMB", "زر الفأرة الأيسر"),
|
||||
("Language", "اللغة"),
|
||||
("Layer mask", "قناع الطبقة"),
|
||||
("Layer memory: {mb} MB", "ذاكرة الطبقات: {mb} ميغابايت"),
|
||||
("Layers", "الطبقات"),
|
||||
("Lazy mouse", "الفأرة الكسولة (Lazy mouse)"),
|
||||
("Lazy mouse and symmetry", "الفأرة الكسولة والتناظر"),
|
||||
("Lazy mouse distance", "مسافة الفأرة الكسولة"),
|
||||
("Leather grain", "حبيبات جلدية"),
|
||||
("Lens size: how quickly things blur away from the focus distance", "حجم العدسة: سرعة تمويه العناصر البعيدة عن مسافة التركيز"),
|
||||
("Level", "المستوى"),
|
||||
("Levels", "المستويات"),
|
||||
("Lifetime (steps)", "عمر الجسيم (بالخطوات)"),
|
||||
("Light / direction", "الضوء / الاتجاه"),
|
||||
("Lighten (Max)", "تفتيح (الحد الأقصى)"),
|
||||
("Lightness", "الإضاءة"),
|
||||
("Linear", "خطي"),
|
||||
("Linear burn", "حرق خطي (Linear Burn)"),
|
||||
("Linear dodge (Add)", "تفتيح خطي (إضافة)"),
|
||||
("Linear light", "ضوء خطي (Linear Light)"),
|
||||
("List of exports", "قائمة الصادرات"),
|
||||
("Load UI Layout", "تحميل تخطيط الواجهة"),
|
||||
("Load a cage (the low poly, inflated)", "تحميل القفص (مجسم منخفض الدقة منتفخ)"),
|
||||
("Loaded UI layout {path}", "تم تحميل تخطيط الواجهة {path}"),
|
||||
("Log", "السجل"),
|
||||
("Low", "منخفض"),
|
||||
("Low poly mesh suffix", "لاحقة المجسم منخفض الدقة"),
|
||||
("Luminosity", "اللمعان (Luminosity)"),
|
||||
("MMB drag / Alt + MMB", "سحب بزر الفأرة الأوسط / Alt + زر الفأرة الأوسط"),
|
||||
("Made by the ArtCraft team and community.", "صُنع بواسطة فريق ArtCraft والمجتمع."),
|
||||
("Magenta / green", "أرجواني / أخضر"),
|
||||
("Main shader", "المظلل الرئيسي"),
|
||||
("Marble veins", "عروق الرخام"),
|
||||
("Mask Editor: Edge wear", "محرر الأقنعة: تآكل الحواف"),
|
||||
("Mask value (gray)", "قيمة القناع (رمادي)"),
|
||||
("Mask with height", "قناع بالارتفاع"),
|
||||
("MatFinish Grind", "إنهاء المادة: جلخ"),
|
||||
("MatFinish Hammered", "إنهاء المادة: مطروق"),
|
||||
("MatFinish Raw", "إنهاء المادة: خام"),
|
||||
("MatFinish Sanded", "إنهاء المادة: مصنفر"),
|
||||
("Match", "مطابقة"),
|
||||
("Material", "المادة"),
|
||||
("Material ball", "كرة المادة"),
|
||||
("Material finish", "إنهاء المادة"),
|
||||
("Materials", "المواد"),
|
||||
("Max frontal distance", "أقصى مسافة أمامية"),
|
||||
("Max occluder distance", "أقصى مسافة للحاجب"),
|
||||
("Max rear distance", "أقصى مسافة خلفية"),
|
||||
("Maximum", "الحد الأقصى"),
|
||||
("Mesh fill", "تعبئة المجسم"),
|
||||
("Mesh map bakers", "خَبّازو خرائط المجسم"),
|
||||
("Mesh map: {map}", "خريطة المجسم: {map}"),
|
||||
("Mesh maps", "خرائط المجسم"),
|
||||
("Mesh maps baked", "تم خبز خرائط المجسم"),
|
||||
("Meshes", "المجسمات"),
|
||||
("Metallic", "معدنية"),
|
||||
("Midtones", "درجات الإضاءة المتوسطة"),
|
||||
("Minimum", "الحد الأدنى"),
|
||||
("Minimum size (%)", "الحد الأدنى للحجم (%)"),
|
||||
("Mirror X", "مرآة X"),
|
||||
("Mirror Y", "مرآة Y"),
|
||||
("Mirror Z", "مرآة Z"),
|
||||
("Missing (bake to create)", "مفقود (اخبز للإنشاء)"),
|
||||
("Mixed AO", "انسداد محيطي مختلط"),
|
||||
("Mode", "النمط"),
|
||||
("More in Assets > Alphas: click one, or drag it here", "المزيد في الأصول > أقنعة ألفا: انقر على واحد، أو اسحبه إلى هنا"),
|
||||
("Mosaic", "فسيفساء"),
|
||||
("Move down", "تحريك لأسفل"),
|
||||
("Move up", "تحريك لأعلى"),
|
||||
(
|
||||
"Moves the surface by the height channel on a finer copy of the mesh, at the height to normal strength (viewport only: painting follows the base surface)",
|
||||
"يحرك السطح وفق قناة الارتفاع على نسخة أدق من المجسم، بقوة تحويل الارتفاع إلى ناظم (منفذ العرض فقط: الرسم يتبع السطح الأساسي)",
|
||||
),
|
||||
("Multiply", "ضرب"),
|
||||
("My smart materials", "موادي الذكية"),
|
||||
("Name", "الاسم"),
|
||||
("New project", "مشروع جديد"),
|
||||
("New project...", "مشروع جديد..."),
|
||||
("New template", "قالب جديد"),
|
||||
("No GPU renderer available", "لا يتوفر مصيّر GPU"),
|
||||
("No font on this system can show this language", "لا يوجد خط على هذا النظام يمكنه عرض هذه اللغة"),
|
||||
("No outputs yet: add one above, then drag input maps onto its channels.", "لا توجد مخرجات بعد: أضف مخرجاً بالأعلى، ثم اسحب خرائط المدخلات إلى قنواته."),
|
||||
("No padding (passthrough)", "بدون حشو (تمرير مباشر)"),
|
||||
("Noise amount", "كمية الضوضاء"),
|
||||
("Noise scale", "مقياس الضوضاء"),
|
||||
("None", "بلا"),
|
||||
("None: the low poly is its own high poly.", "بلا: المجسم منخفض الدقة هو نفسه عالي الدقة."),
|
||||
("Normal", "عادي"),
|
||||
("Normal DirectX", "ناظم DirectX"),
|
||||
("Normal Invert", "عكس الناظم"),
|
||||
("Normal OpenGL", "ناظم OpenGL"),
|
||||
("Normal from height", "ناظم من الارتفاع"),
|
||||
("Normal map combine", "دمج خرائط النواظم"),
|
||||
("Normal map detail", "تفاصيل خريطة النواظم"),
|
||||
("Normal map format", "صيغة خريطة النواظم"),
|
||||
("Normal map inverse detail", "عكس تفاصيل خريطة النواظم"),
|
||||
("Normal: painting uses the flat normal", "عادي: يستخدم الرسم الناظم المسطح"),
|
||||
("Not exported: no source in this texture set", "لم يتم التصدير: لا يوجد مصدر في مجموعة الخامات هذه"),
|
||||
("Not saved: {error}", "لم يتم الحفظ: {error}"),
|
||||
("Off", "معطل"),
|
||||
("Offset right", "إزاحة لليمين"),
|
||||
("Offset up", "إزاحة لأعلى"),
|
||||
("Offsets the textures by the height channel, at the height to normal strength", "يزيح الخامات وفق قناة الارتفاع، بقوة تحويل الارتفاع إلى ناظم"),
|
||||
("On", "مفعل"),
|
||||
("One color per mesh part.", "لون واحد لكل جزء من المجسم."),
|
||||
("Opacity", "العتامة"),
|
||||
("Open sample project...", "فتح مشروع نموذجي..."),
|
||||
("Open...", "فتح..."),
|
||||
("Opened {name}", "تم فتح {name}"),
|
||||
(
|
||||
"Optional channels add a clear coat (Coat weight, Coat roughness, Coat normal), sheen (Sheen weight, color, roughness), anisotropy (Anisotropy level, angle), subsurface scattering (Scattering weight) and transmission (Transmission).",
|
||||
"تضيف القنوات الاختيارية طبقة طلاء شفافة (وزن الطلاء، خشونة الطلاء، ناظم الطلاء)، ولمعاناً (وزن اللمعان، لونه، خشونته)، وتباين الخواص (مستوى التباين، زاويته)، وتشتتاً تحت السطح (وزن التشتت)، ونفاذية (النفاذية).",
|
||||
),
|
||||
("Orbit", "مدار"),
|
||||
("Orthographic", "متوازي (إملائي)"),
|
||||
("Output directory", "دليل الإخراج"),
|
||||
("Output high", "المخرج العالي"),
|
||||
("Output low", "المخرج المنخفض"),
|
||||
("Output size", "حجم المخرج"),
|
||||
("Output template", "قالب الإخراج"),
|
||||
("Output templates", "قوالب الإخراج"),
|
||||
("Overlay", "تراكب (Overlay)"),
|
||||
("Overlay opacity", "عتامة التراكب"),
|
||||
("PBR - Metallic Roughness (TextureCraft)", "PBR - خشونة ومعدنية (TextureCraft)"),
|
||||
("PNG image", "صورة PNG"),
|
||||
("Padding", "الحشو (Padding)"),
|
||||
("Paint", "رسم"),
|
||||
("Paint chips", "قشور الطلاء"),
|
||||
("Paint on the mesh to edit the layer content.", "ارسم على المجسم لتعديل محتوى الطبقة."),
|
||||
(
|
||||
"Paint on the mesh to edit this mask. Use the Material tab's mask value for gray.",
|
||||
"ارسم على المجسم لتعديل هذا القناع. استخدم قيمة القناع في لسان تبويب المادة للتدرج الرمادي.",
|
||||
),
|
||||
("Paint the path with the brush (Enter)", "رسم المسار بالفرشاة (Enter)"),
|
||||
("Paint with the current tool", "الرسم بالأداة الحالية"),
|
||||
(
|
||||
"Painted layer pixels {pixels} MB, composited channels {composites} MB, compositing cache {cache} MB",
|
||||
"بكسلات الطبقات المرسومة {pixels} ميغابايت، القنوات المركبة {composites} ميغابايت، ذاكرة التخزين المؤقت للتركيب {cache} ميغابايت",
|
||||
),
|
||||
("Painting", "الرسم"),
|
||||
("Pan", "تحريك العرض (Pan)"),
|
||||
("Parallax occlusion (height channel)", "إزاحة المنظور (قناة الارتفاع)"),
|
||||
("Partial mask values follow the layer's height: high parts show first", "قيم القناع الجزئية تتبع ارتفاع الطبقة: تظهر الأجزاء المرتفعة أولاً"),
|
||||
("Particle brush (slides down the surface)", "فرشاة الجسيمات (تنزلق على السطح)"),
|
||||
("Particle brush: particles slide down the surface", "فرشاة الجسيمات: تنزلق الجسيمات على السطح"),
|
||||
("Particles", "جسيمات"),
|
||||
("Passthrough", "تمرير مباشر (Passthrough)"),
|
||||
("Paste as instance", "لصق كنسخة مرتبطة (Instance)"),
|
||||
("Paste layer(s)", "لصق الطبقة (الطبقات)"),
|
||||
("Path", "مسار"),
|
||||
("Path trace on the processor instead of the graphics card (slower)", "تتبع المسار على المعالج بدلاً من بطاقة الرسوميات (أبطأ)"),
|
||||
("Path: click adds a point, drag moves it, Enter applies, Esc cancels", "المسار: النقر يضيف نقطة، والسحب يحركها، وEnter يطبق، وEsc يلغي"),
|
||||
("Pattern scale", "مقياس النمط"),
|
||||
("Perlin noise", "ضوضاء بيرلن (Perlin)"),
|
||||
("Pick focus in the viewport", "اختر نقطة التركيز في منفذ العرض"),
|
||||
("Pin light", "ضوء مثبت (Pin Light)"),
|
||||
("Place on the surface", "وضع على السطح"),
|
||||
("Place path points on the mesh", "وضع نقاط المسار على المجسم"),
|
||||
("Planar projection", "إسقاط مستوٍ"),
|
||||
("Plane", "مستوٍ"),
|
||||
("Polygon fill", "تعبئة مضلع"),
|
||||
("Pores", "مسام"),
|
||||
("Position", "الموضع"),
|
||||
("Position gradient", "تدرج الموضع"),
|
||||
("Position jitter", "اضطراب الموضع"),
|
||||
("Posterize", "تبسيط الألوان (Posterize)"),
|
||||
("Press a key...", "اضغط على مفتاح..."),
|
||||
("Procedurals", "إجرائيات"),
|
||||
("Project", "المشروع"),
|
||||
("Project Configuration...", "تكوين المشروع..."),
|
||||
("Project opened", "تم فتح المشروع"),
|
||||
("Project template", "قالب المشروع"),
|
||||
("Projection", "الإسقاط"),
|
||||
("Projects and meshes", "المشاريع والمجسمات"),
|
||||
("Properties", "الخصائص"),
|
||||
("Quarter", "ربع"),
|
||||
("Quick mask", "قناع سريع"),
|
||||
("Quit", "إنهاء"),
|
||||
("Radial axis", "المحور الدائري"),
|
||||
("Radial copies", "نُسخ دائرية"),
|
||||
("Radius (texels at 2K)", "نصف القطر (تكسل بدقة 2K)"),
|
||||
("RENDERING", "التصيير"),
|
||||
("Rebind any menu item, tool or command", "إعادة ربط أي عنصر قائمة، أو أداة أو أمر"),
|
||||
("Recent projects", "المشاريع الأخيرة"),
|
||||
(
|
||||
"Records the stack up to this layer. Fill effects in masks (and fill layers) above can read it as a source.",
|
||||
"يسجل المكدس حتى هذه الطبقة. يمكن لتأثيرات التعبئة في الأقنعة (وطبقات التعبئة) بالأعلى قراءته كمصدر.",
|
||||
),
|
||||
("Redo", "إعادة"),
|
||||
("Reimport mesh", "إعادة استيراد المجسم"),
|
||||
("Relative to the bounding box diagonal.", "نسبة إلى قطر المربع المحيط."),
|
||||
("Remove", "إزالة"),
|
||||
("Remove channel", "إزالة القناة"),
|
||||
("Remove effect", "إزالة التأثير"),
|
||||
("Remove last", "إزالة الأخير"),
|
||||
("Remove layer", "إزالة الطبقة"),
|
||||
("Remove layer(s)", "إزالة الطبقة (الطبقات)"),
|
||||
("Remove mask", "إزالة القناع"),
|
||||
("Remove resource", "إزالة المورد"),
|
||||
("Remove the cage", "إزالة القفص"),
|
||||
("Remove the path (Esc)", "إزالة المسار (Esc)"),
|
||||
("Remove the shortcut", "إزالة الاختصار"),
|
||||
("Remove this output", "إزالة هذا المخرج"),
|
||||
("Remove unused resources...", "إزالة الموارد غير المستخدمة..."),
|
||||
("Rename the selected template", "إعادة تسمية القالب المحدد"),
|
||||
("Render on the CPU", "التصيير على المعالج (CPU)"),
|
||||
("Rendering", "التصيير"),
|
||||
("Rendering (path traced)", "التصيير (بتتبع المسار)"),
|
||||
("Rendering on CPU: {n} / {max} samples, {s} s", "التصيير على المعالج (CPU): {n} / {max} عينة، {s} ث"),
|
||||
("Rendering on GPU: {n} / {max} samples, {s} s", "التصيير على المعالج الرسومي (GPU): {n} / {max} عينة، {s} ث"),
|
||||
("Rendering, path traced", "التصيير، بتتبع المسار"),
|
||||
("Replace", "استبدال"),
|
||||
("Replace Color", "استبدال اللون"),
|
||||
("Replace the selected layer's mask with this smart mask (or drag it onto a layer)", "استبدال قناع الطبقة المحددة بهذا القناع الذكي (أو اسحبه إلى طبقة)"),
|
||||
("Replacement color", "لون الاستبدال"),
|
||||
("Report a bug...", "الإبلاغ عن خطأ..."),
|
||||
("Rescan the library folder", "إعادة فحص مجلد المكتبة"),
|
||||
("Reset UI", "إعادة ضبط واجهة المستخدم"),
|
||||
("Reset all", "إعادة ضبط الكل"),
|
||||
("Reset to {shortcut}", "إعادة الضبط إلى {shortcut}"),
|
||||
("Resizing", "تغيير الحجم"),
|
||||
("Restore every default shortcut", "استعادة كل الاختصارات الافتراضية"),
|
||||
("Return to painting mode", "العودة إلى نمط الرسم"),
|
||||
("Right-click a layer > Create smart material", "انقر بزر الفأرة الأيمن على طبقة > إنشاء مادة ذكية"),
|
||||
("Rotation", "التدوير"),
|
||||
("Rotation (degrees)", "التدوير (بالدرجات)"),
|
||||
("Roughness", "الخشونة"),
|
||||
("Roughness from glossiness", "الخشونة من الصفاء"),
|
||||
("Round", "دائري"),
|
||||
("Rounded cube", "مكعب مدور الزوايا"),
|
||||
("Samples", "العينات"),
|
||||
("Saturation", "التشبع"),
|
||||
("Save", "حفظ"),
|
||||
("Save UI Layout", "حفظ تخطيط الواجهة"),
|
||||
("Save a copy...", "حفظ نسخة..."),
|
||||
("Save as...", "حفظ باسم..."),
|
||||
("Save current layout...", "حفظ التخطيط الحالي..."),
|
||||
("Save render...", "حفظ التصيير..."),
|
||||
("Save view as camera", "حفظ المنظور ككاميرا"),
|
||||
("Saved UI layout {path}", "تم حفظ تخطيط الواجهة {path}"),
|
||||
("Saved {path}", "تم الحفظ في {path}"),
|
||||
("Saving UI layouts to files is available in the desktop app", "حفظ تخطيطات الواجهة إلى ملفات متاح في تطبيق سطح المكتب"),
|
||||
("Scale", "المقياس"),
|
||||
("Scale / tiling", "المقياس / التكرار"),
|
||||
("Scatter color", "لون التشتت"),
|
||||
("Scatter radius", "نصف قطر التشتت"),
|
||||
("Scattering weight", "وزن التشتت"),
|
||||
("Scratches", "خدوش"),
|
||||
("Screen", "شاشة (Screen)"),
|
||||
("Screenshot of the viewport", "لقطة شاشة لمنفذ العرض"),
|
||||
("Search all assets", "البحث في جميع الأصول"),
|
||||
("Search commands or keys", "البحث في الأوامر أو المفاتيح"),
|
||||
("Secondary rays", "أشعة ثانوية"),
|
||||
("Seed", "البذرة العشوائية (Seed)"),
|
||||
("Select a layer", "تحديد طبقة"),
|
||||
("Select an output template", "تحديد قالب إخراج"),
|
||||
("Select source", "تحديد المصدر"),
|
||||
("Select the mask (Alt+click: show it in the viewport)", "تحديد القناع (Alt+نقر: عرضه في منفذ العرض)"),
|
||||
("Select...", "تحديد..."),
|
||||
("Settings", "الإعدادات"),
|
||||
("Settings...", "الإعدادات..."),
|
||||
("Shader Settings", "إعدادات المظلل"),
|
||||
("Shader instance", "نسخة المظلل"),
|
||||
("Shadows", "الظلال"),
|
||||
("Sharpen", "توضيح الحواف (Sharpen)"),
|
||||
("Sheen color", "لون اللمعان"),
|
||||
("Sheen color × weight", "لون اللمعان × الوزن"),
|
||||
("Sheen roughness", "خشونة اللمعان"),
|
||||
("Sheen weight", "وزن اللمعان"),
|
||||
("Shift + wheel", "Shift + عجلة الفأرة"),
|
||||
("Shortcuts list...", "قائمة الاختصارات..."),
|
||||
("Show on all parts", "إظهار على جميع الأجزاء"),
|
||||
("Show UV wireframe in the 2D view", "إظهار الهيكل السلكي لـ UV في العرض ثنائي الأبعاد"),
|
||||
("Show entire mesh", "إظهار المجسم كاملاً"),
|
||||
("Show log...", "إظهار السجل..."),
|
||||
("Show or hide the layer", "إظهار أو إخفاء الطبقة"),
|
||||
("Show or hide the texture set", "إظهار أو إخفاء مجموعة الخامات"),
|
||||
("Show wireframe in the 3D view", "إظهار الهيكل السلكي في العرض ثلاثي الأبعاد"),
|
||||
("Signed addition (AddSub)", "جمع ذو إشارة (AddSub)"),
|
||||
("Size", "الحجم"),
|
||||
("Size in screen space", "الحجم في فضاء الشاشة"),
|
||||
("Size jitter", "اضطراب الحجم"),
|
||||
(
|
||||
"Size of the textures the viewport shows: lower uses less GPU memory with large texture sets. Painting and export keep full resolution.",
|
||||
"حجم الخامات التي يعرضها منفذ العرض: الحجم الأصغر يستهلك ذاكرة GPU أقل مع مجموعات الخامات الكبيرة. يحتفظ الرسم والتصدير بالدقة الكاملة.",
|
||||
),
|
||||
("Slope Blur", "تمويه المنحدر (Slope Blur)"),
|
||||
("Slope scale", "مقياس المنحدر"),
|
||||
("Smart masks", "أقنعة ذكية"),
|
||||
("Smart material saved to {path}", "تم حفظ المادة الذكية في {path}"),
|
||||
("Smart materials", "مواد ذكية"),
|
||||
("Smudge", "تلطيخ (Smudge)"),
|
||||
("Soft light", "ضوء خافت (Soft Light)"),
|
||||
("Softness", "النعومة"),
|
||||
("Source", "المصدر"),
|
||||
("Source U {u} V {v}", "المصدر U {u} V {v}"),
|
||||
("Spacing", "التباعد"),
|
||||
("Specular", "اللمعان (Specular)"),
|
||||
("Specular level", "مستوى اللمعان"),
|
||||
("Sphere", "كرة"),
|
||||
("Spherical projection", "إسقاط كروي"),
|
||||
("Spray", "رش (Spray)"),
|
||||
("Square", "مربع"),
|
||||
("Stamp depth", "عمق الطبعة"),
|
||||
("Star", "نجمة"),
|
||||
("Starting render...", "بدء التصيير..."),
|
||||
("Stencil", "ستنسل (Stencil)"),
|
||||
("Steps", "الخطوات"),
|
||||
("Streaks", "خطوط"),
|
||||
("Strength", "القوة"),
|
||||
("Stripes", "أشرطة"),
|
||||
("Stroke opacity", "عتامة الضربة"),
|
||||
("Subsampling 2x2", "استعيان فرعي 2×2"),
|
||||
("Subsampling 4x4", "استعيان فرعي 4×4"),
|
||||
("Subsampling 8x8", "استعيان فرعي 8×8"),
|
||||
("Subsurface scattering", "تشتت تحت السطح (SSS)"),
|
||||
("Subtract", "طرح"),
|
||||
("Symmetry (X)", "تناظر (X)"),
|
||||
("Symmetry (Y)", "تناظر (Y)"),
|
||||
("Tangent | Wrap", "مماس | التفاف"),
|
||||
("Tangent-space normals of the high definition meshes.", "نواظم فضاء المماس للمجسمات عالية الدقة."),
|
||||
("Temporal anti-aliasing (refines the 3D view while it is still)", "تنعيم حواف زمني (يحسّن العرض ثلاثي الأبعاد أثناء ثباته)"),
|
||||
("Texture Set List", "قائمة مجموعات الخامات"),
|
||||
("Texture Set Settings", "إعدادات مجموعة الخامات"),
|
||||
("Texture resolution", "دقة الخامة"),
|
||||
("Texture set channels", "قنوات مجموعة الخامات"),
|
||||
("Texture set list", "قائمة مجموعات الخامات"),
|
||||
("Texture sets", "مجموعات الخامات"),
|
||||
("TextureCraft PBR - Metallic Roughness", "TextureCraft PBR - خشونة ومعدنية"),
|
||||
("TextureCraft PBR - Specular Glossiness", "TextureCraft PBR - لمعان وصفاء"),
|
||||
("TextureCraft project", "مشروع TextureCraft"),
|
||||
("TextureCraft project or mesh", "مشروع أو مجسم TextureCraft"),
|
||||
("Textures", "الخامات"),
|
||||
("Textures embedded; for game engines and most viewers", "الخامات مدمجة؛ لمحركات الألعاب ومعظم برامج العرض"),
|
||||
("Textures packaged; for USD tools and AR Quick Look", "الخامات محزومة؛ لأدوات USD وميزة المعاينة السريعة للواقع المعزز"),
|
||||
("The GPU couldn't render this scene: {error}", "تعذر على معالج الرسوميات (GPU) تصيير هذا المشهد: {error}"),
|
||||
("The bake worker stopped", "توقف عامل الخبز"),
|
||||
("The eraser removes paint from the enabled channels.", "تزيل الممحاة الطلاء من القنوات الممكنة."),
|
||||
("The first stroke sets the offset from the source.", "تحدد الضربة الأولى الإزاحة عن المصدر."),
|
||||
(
|
||||
"The image's alpha cuts the decal's shape; faces turned away and surfaces beyond its depth stay clear.",
|
||||
"تقطع ألفا الصورة شكل الملصق؛ وتبقى الوجوه المتجهة بعيداً والأسطح التي تتجاوز عمقها واضحة.",
|
||||
),
|
||||
("The next click in the 3D view moves the decal there", "النقر التالي في العرض ثلاثي الأبعاد ينقل الملصق إلى هناك"),
|
||||
("The resize worker stopped", "توقف عامل تغيير الحجم"),
|
||||
("Thickness", "السماكة"),
|
||||
("Thin areas", "المناطق الرقيقة"),
|
||||
("Threshold", "العتبة (Threshold)"),
|
||||
("Tile", "تكرار (Tile)"),
|
||||
("Tiles", "بلاطات"),
|
||||
("Tint", "صبغة"),
|
||||
("Toggle mask", "تبديل القناع"),
|
||||
("Tolerance", "التفاوت (Tolerance)"),
|
||||
("Tone mapping", "مطابقة درجات الألوان (Tone mapping)"),
|
||||
("Tools", "الأدوات"),
|
||||
("Torus", "طارة (Torus)"),
|
||||
("Transmission", "النفاذية (Transmission)"),
|
||||
("Tri-planar projection", "إسقاط ثلاثي المستويات (Tri-planar)"),
|
||||
("Triangle fill", "تعبئة مثلث"),
|
||||
("UDIM plane", "مستوي UDIM"),
|
||||
("UDIM tiles painted by this texture set, each at the set's size", "بلاطات UDIM المرسومة بمجموعة الخامات هذه، كل منها بحجم المجموعة"),
|
||||
("UI layout", "تخطيط الواجهة"),
|
||||
("UI layout: {error}", "تخطيط الواجهة: {error}"),
|
||||
("UI layouts", "تخطيطات الواجهة"),
|
||||
("UI {ms} ms", "واجهة المستخدم {ms} مللي ثانية"),
|
||||
("USD binary, textures alongside", "USD ثنائي، الخامات بجانبه"),
|
||||
("USD text, textures alongside", "USD نصي، الخامات بجانبه"),
|
||||
("USDZ with textures", "USDZ مع الخامات"),
|
||||
("UV checker", "رقعة فحص UV"),
|
||||
("UV island fill", "تعبئة جزيرة UV"),
|
||||
("UV projection", "إسقاط UV"),
|
||||
("UV tiles", "بلاطات UV"),
|
||||
("UV tiles (UDIM)", "بلاطات UV (UDIM)"),
|
||||
("Undo", "تراجع"),
|
||||
("Uniform value", "قيمة موحدة"),
|
||||
("Use an equirectangular .hdr or .exr image as the environment", "استخدم صورة .hdr أو .exr متساوية المستطيلات كبيئة"),
|
||||
("Use as the brush alpha (or drag it onto the viewport or brush properties)", "استخدم كألفا للفرشاة (أو اسحبها إلى منفذ العرض أو خصائص الفرشاة)"),
|
||||
("Use low poly mesh as high poly mesh", "استخدام المجسم منخفض الدقة كمجسم عالي الدقة"),
|
||||
("Use the control channel or `texturecraft-cli render` for screenshots", "استخدم قناة التحكم أو الأمر `texturecraft-cli render` لالتقاط لقطات الشاشة"),
|
||||
("Value", "القيمة"),
|
||||
("Version {version}", "الإصدار {version}"),
|
||||
("Version: {version} ({gpu})", "الإصدار: {version} ({gpu})"),
|
||||
("View through this camera", "الرؤية من خلال هذه الكاميرا"),
|
||||
("Viewer settings", "إعدادات العارض"),
|
||||
("Viewport", "منفذ العرض"),
|
||||
("Viewport and brush (fixed)", "منفذ العرض والفرشاة (ثابت)"),
|
||||
("Views", "طرق العرض"),
|
||||
("Vivid light", "ضوء ساطع (Vivid Light)"),
|
||||
("Voronoi", "فورونوي (Voronoi)"),
|
||||
("Warp", "التواء (Warp)"),
|
||||
("Warp Directional", "التواء اتجاهي"),
|
||||
(
|
||||
"WebGPU isn't available in this browser, so TextureCraft runs on WebGL2: Rendering mode path traces on the CPU (slower) and large texture sets show at reduced resolution. A current Chrome, Edge or Safari has WebGPU.",
|
||||
"WebGPU غير متاح في هذا المتصفح، لذا يعمل TextureCraft على WebGL2: نمط التصيير يتتبع المسار على المعالج (أبطأ) ومجموعات الخامات الكبيرة تظهر بدقة مخفضة. يتوفر WebGPU في الإصدارات الحديثة من Chrome وEdge وSafari.",
|
||||
),
|
||||
("Wheel / Alt + RMB drag", "العجلة / سحب بـ Alt + زر الفأرة الأيمن"),
|
||||
("White", "أبيض"),
|
||||
("White where the surface faces the direction, black where it faces away.", "أبيض حيث يواجه السطح الاتجاه، وأسود حيث يتجه بعيداً عنه."),
|
||||
("Width", "العرض"),
|
||||
("Width (texels at 2K)", "العرض (تكسل بدقة 2K)"),
|
||||
("Window", "نافذة"),
|
||||
("Wood grain", "حبيبات الخشب"),
|
||||
("Works in texture space, like the blur: it does not cross UV seams.", "يعمل في فضاء الخامات، مثل التمويه: لا يعبر درزات UV."),
|
||||
("World space direction", "اتجاه الفضاء العالمي"),
|
||||
("World space normal", "ناظم الفضاء العالمي"),
|
||||
("World-space normals of the high poly (or the low poly).", "نواظم الفضاء العالمي للمجسم عالي الدقة (أو منخفض الدقة)."),
|
||||
("Yellow / blue", "أصفر / أزرق"),
|
||||
("Zoom", "تكبير/تصغير"),
|
||||
("a missing layer", "طبقة مفقودة"),
|
||||
("aniso", "تباين"),
|
||||
("aniso angle", "زاوية التباين"),
|
||||
("ao", "انسداد محيطي"),
|
||||
("coat", "طلاء"),
|
||||
("coat nrm", "ناظم الطلاء"),
|
||||
("coat rough", "خشونة الطلاء"),
|
||||
("color", "لون"),
|
||||
("emiss", "إشعاع"),
|
||||
("glTF binary with textures", "glTF ثنائي مع الخامات"),
|
||||
("gloss", "صفاء"),
|
||||
("height", "ارتفاع"),
|
||||
("metal", "معدن"),
|
||||
("min", "د"),
|
||||
("missing", "مفقود"),
|
||||
("missing source", "مصدر مفقود"),
|
||||
("no GPU", "بدون GPU"),
|
||||
("none", "بلا"),
|
||||
("nrm", "ناظم"),
|
||||
("off", "معطل"),
|
||||
("op", "عتامة"),
|
||||
("rough", "خشونة"),
|
||||
("scatter", "تشتت"),
|
||||
("sheen", "لمعان"),
|
||||
("sheen color", "لون اللمعان"),
|
||||
("sheen rough", "خشونة اللمعان"),
|
||||
("spec", "لمعان"),
|
||||
("specular", "لمعان"),
|
||||
("transm", "نفاذية"),
|
||||
("{action} (undone)", "{action} (تم التراجع)"),
|
||||
(
|
||||
"{file}: add above the selected layer (or drag it into the layer stack or onto the viewport)",
|
||||
"{file}: إضافة فوق الطبقة المحددة (أو اسحبها إلى مكدس الطبقات أو إلى منفذ العرض)",
|
||||
),
|
||||
("{name} ({n} triangles)", "{name} ({n} مثلث)"),
|
||||
("{name} copy", "نسخة من {name}"),
|
||||
("{n} bits", "{n} بت"),
|
||||
(
|
||||
"{n} control points. Click the mesh (or the 2D view) to add points and drag them to adjust; click the first point to close the path. Enter paints it with the brush (a closed, filled path fills its inside), Esc cancels.",
|
||||
"{n} نقاط تحكم. انقر على المجسم (أو العرض ثنائي الأبعاد) لإضافة نقاط واسحبها للضبط؛ وانقر على النقطة الأولى لإغلاق المسار. مفتاح Enter يرسمه بالفرشاة (المسار المغلق والمملوء يملأ داخله)، وEsc يلغي.",
|
||||
),
|
||||
("{n} items share a shortcut; the first one listed wins.", "{n} عناصر تشترك في نفس الاختصار؛ العنصر الأول المدرج له الأولوية."),
|
||||
("{pattern} (scale {scale}, seed {seed})", "{pattern} (المقياس {scale}، البذرة {seed})"),
|
||||
("Template name", "اسم القالب"),
|
||||
("Save current project as template", "حفظ المشروع الحالي كقالب"),
|
||||
("Spread angle", "زاوية الانتشار"),
|
||||
("Distribution", "التوزيع"),
|
||||
("Cosine", "جيب التمام (Cosine)"),
|
||||
("Uniform", "موحد (Uniform)"),
|
||||
("Ignore backface", "تجاهل الوجه الخلفي"),
|
||||
("Self occlusion", "انسداد ذاتي"),
|
||||
("Only same mesh name", "نفس اسم المجسم فقط"),
|
||||
("Bent normal rays follow the ambient occlusion's occluder settings.", "أشعة النواظم المنحنية تتبع إعدادات حاجب الانسداد المحيطي."),
|
||||
("Sampling radius", "نصف قطر العينات"),
|
||||
("0 picks a radius from the output size.", "0 يختار نصف القطر تلقائياً من حجم المخرج."),
|
||||
("Encoding", "الترميز"),
|
||||
("Signed (-1..1)", "ذو إشارة (-1..1)"),
|
||||
("Positive (0..1)", "موجب (0..1)"),
|
||||
("Normalization", "تسوية (Normalization)"),
|
||||
("Bounding box", "المربع المحيط"),
|
||||
("Bounding sphere", "الكرة المحيطة"),
|
||||
("Position normalized to the low poly's bounding box or sphere.", "الموضع مُسوّى بالنسبة للمربع أو الكرة المحيطة للمجسم منخفض الدقة."),
|
||||
(
|
||||
"Base colors (textures, factors) and vertex colors of the high definition meshes.",
|
||||
"الألوان الأساسية (الخامات، المعاملات) وألوان الرؤوس للمجسمات عالية الدقة.",
|
||||
),
|
||||
("White where the high poly covers the low poly, times its alpha.", "أبيض حيث يغطي المجسم عالي الدقة المجسم منخفض الدقة، مضروباً في قيمة ألفا."),
|
||||
("Brightness", "السطوع"),
|
||||
("Dark", "داكن"),
|
||||
("Medium dark", "متوسط الدكنة"),
|
||||
("Medium light", "متوسط السطوع"),
|
||||
("Light", "فاتح"),
|
||||
("Accent color", "لون التمييز"),
|
||||
("Copper", "نحاسي"),
|
||||
("Coral", "مرجاني"),
|
||||
("Blue", "أزرق"),
|
||||
("Violet", "بنفسجي"),
|
||||
("Green", "أخضر"),
|
||||
("Amber", "كهرماني"),
|
||||
("Pink", "وردي"),
|
||||
("Minimize", "تصغير"),
|
||||
("Maximize", "تكبير"),
|
||||
("Restore", "استعادة"),
|
||||
("Title bar", "شريط العنوان"),
|
||||
("System title bar (applies on restart)", "شريط عنوان النظام (يُطبّق عند إعادة التشغيل)"),
|
||||
(
|
||||
"Use the operating system's window frame and buttons instead of TextureCraft's own title bar",
|
||||
"استخدام إطار وأزرار نافذة نظام التشغيل بدلاً من شريط عنوان TextureCraft الخاص",
|
||||
),
|
||||
];
|
||||
+4
-2
@@ -94,6 +94,8 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
|
||||
(compute shaders, about 25× the CPU tracer, desktop and WebGPU) or on the CPU.
|
||||
- View any channel, any baked mesh map, or a UV checker; Alt+drag to orbit, middle-drag to pan,
|
||||
wheel to zoom, F to frame, M / C / B to cycle views.
|
||||
- **3D and UV wireframes** that show the mesh's own polygons: quads and n-gons from OBJ, FBX,
|
||||
COLLADA, USD, Alembic and PLY files keep their edges, without the triangulation's diagonals.
|
||||
|
||||
## Interface
|
||||
|
||||
@@ -105,8 +107,8 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
|
||||
- **Dockable, tabbed and floating panels**, saved layouts, and panels that reopen where you closed
|
||||
them.
|
||||
- A **shortcut editor** with conflict detection, and every shortcut shown in its tooltip.
|
||||
- **9 languages:** English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese and
|
||||
Korean, switchable live.
|
||||
- **10 languages:** English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese,
|
||||
Korean and Arabic, switchable live.
|
||||
- **In the browser:** the same app compiled to WebAssembly, on WebGPU or WebGL2, with touch
|
||||
navigation and project open, save and download.
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ generator, filter and brush alpha names (**KEYS** strings, counted by the
|
||||
| Simplified Chinese | `zh-Hans` | KEYS (100%) | yes | CJK glyphs: craft-fonts (Noto Sans CJK SC) or system fonts on desktop; see below | no | full | 2 h (review) |
|
||||
| Spanish | `es` | KEYS (100%) | yes | Latin | no | full | 1 h (review) |
|
||||
| Hindi | `hi` | 0 | no | Devanagari shaping: not yet (egui has no complex shaping) | no | none | 12 h |
|
||||
| Arabic | `ar` | 0 | no | RTL layout and shaping: not yet | no | none | 20 h |
|
||||
| Arabic | `ar` | KEYS (100%) | yes | Arabic glyphs: craft-fonts (Noto Sans Arabic) or system fonts on desktop; egui shapes the text and orders it right to left (panels keep the left-to-right layout) | yes | full | 0 h |
|
||||
| French | `fr` | KEYS (100%) | yes | Latin | no | full | 1 h (review) |
|
||||
| Portuguese (Brazil) | `pt-BR` | KEYS (100%) | yes | Latin | no | full | 1 h (review) |
|
||||
| Indonesian | `id` | 0 | no | Latin | no | none | 3 h |
|
||||
@@ -38,22 +38,24 @@ user content (layer, texture set, project names), file format and technical name
|
||||
RGB, OpenGL, DirectX), and error details that come from the engine (shown after a translated
|
||||
"Couldn't …:" prefix).
|
||||
|
||||
## Fonts for Chinese, Japanese and Korean
|
||||
## Fonts for Chinese, Japanese, Korean and Arabic
|
||||
|
||||
egui's built-in fonts have no CJK glyphs. `crates/ui-egui/src/fonts.rs` adds fallbacks after the
|
||||
egui's built-in fonts have no CJK or Arabic glyphs. `crates/ui-egui/src/fonts.rs` adds fallbacks after the
|
||||
app's own fonts (Latin text and row heights keep the default font), loading them only when the
|
||||
UI language needs them or the language picker shows every language's own name:
|
||||
|
||||
1. **craft-fonts** ([storytold/craft-fonts](https://github.com/storytold/craft-fonts)), embedded at
|
||||
build time when `CRAFT_FONTS_DIR` points at a checkout (`crates/ui-egui/build.rs`, the recipe in
|
||||
craft-fonts' `docs/integration.md`; `CRAFT_FONTS_REQUIRED=1` makes it mandatory for releases).
|
||||
Desktop builds embed BIZ UDPGothic Regular (Japanese) and Noto Sans CJK SC Regular (Simplified
|
||||
Chinese); the web build embeds only BIZ UDPGothic (about 4.5 MB of the download).
|
||||
Desktop builds embed BIZ UDPGothic Regular (Japanese), Noto Sans CJK SC Regular (Simplified
|
||||
Chinese) and Noto Sans Arabic Regular; the web build embeds BIZ UDPGothic (about 4.5 MB of the
|
||||
download) and Noto Sans Arabic (0.8 MB).
|
||||
2. **System fonts** on desktop: Yu Gothic / Meiryo, Microsoft YaHei / SimSun and Malgun Gothic on
|
||||
Windows; Hiragino, PingFang / STHeiti and Apple SD Gothic Neo on macOS; Noto Sans CJK, WenQuanYi,
|
||||
Droid Sans Fallback and Nanum Gothic on Linux and FreeBSD.
|
||||
Droid Sans Fallback and Nanum Gothic on Linux and FreeBSD. Arabic: Segoe UI / Tahoma / Arial on
|
||||
Windows, SF Arabic / Geeza Pro on macOS, Noto Sans Arabic or DejaVu Sans on Linux and FreeBSD.
|
||||
|
||||
**Web limitation:** a browser page can't read system fonts, so the web build shows CJK text only
|
||||
with the fonts it embeds: Japanese (and most shared Han characters) when built with craft-fonts,
|
||||
none without it. A language no available font can draw appears in the picker under its English
|
||||
with the fonts it embeds: Japanese (and most shared Han characters) and Arabic when built with
|
||||
craft-fonts, none without it. A language no available font can draw appears in the picker under its English
|
||||
name and can't be selected.
|
||||
Reference in new issue
Block a user