Render: save wood images with physical grain controls (#1599)
* Render: save wood images with physical grain controls * Render: prepare plain glass before marking the GPU host ready
This commit is contained in:
1 parent
6d2465b52d
commit
8691cefbbf
60 files changed
+5776
-238
No files matched your search
@@ -3,8 +3,11 @@
|
||||
The renderer supports built-in sources, absolute-color mode, explicit V orientation, linear roughness/metallic maps and content-addressed texture sharing. See [built-in library](render-built-in-library.md) for its bounded resource contract. Legacy examples below retain modulation and rows-down defaults.
|
||||
|
||||
Progressive GPU jobs accept immutable per-body base-color and OpenGL tangent-space
|
||||
normal maps. No document, appearance, recovery, or saved material format changes.
|
||||
Only explicit runtime commands capture file bytes; queued work does not reopen paths.
|
||||
normal maps. Runtime commands capture file bytes once; queued work does not reopen paths.
|
||||
Existing saved built-in and temporary GPU maps retain single-level bilinear
|
||||
sampling. Newly imported design-owned maps opt into footprint-filtered mip chains. See
|
||||
[portable surfaces](render-portable-surfaces-and-stages.md) for design-owned bytes,
|
||||
physical grain orientation, offline reopening and native CPU execution.
|
||||
|
||||
```json
|
||||
{"progressive":true,"raytrace":{"textures":[{"body_index":3,"body_name":"Walnut tabletop","frame":{"origin":[0,0,480],"u":[900,0,0],"v":[0,90,0]},"base_color_srgb":"C:/art/wood.png","normal_opengl":"C:/art/wood-normal.png","normal_strength":0.35}]}}
|
||||
@@ -19,32 +22,57 @@ bounding-box corners must remain within ±128 repeats; the frame origin must be
|
||||
within 10 million mm of the camera target. These caps limit f32 coordinate loss.
|
||||
|
||||
Base RGB is explicitly sRGB, converted to linear reflectance before bilinear
|
||||
filtering and multiplied by the body's linear base color. Use a white base to
|
||||
reproduce the map's color. Normal channels are untransformed linear data. Normal
|
||||
filtering. Legacy runtime maps multiply the body's linear base color; authored
|
||||
and imported saved surfaces replace it with the map's absolute reflectance. Normal channels are untransformed linear data. Normal
|
||||
strength scales tangent XY in 0..1 before normalization; degenerate vectors, an
|
||||
invalid tangent projection, or a normal behind the geometric/view hemisphere
|
||||
fall back to the original shading normal. Alpha is ignored by this opaque-only
|
||||
consumer. Glass, scalar opacity, roughness, metalness, displacement, height and
|
||||
alpha maps are rejected or unsupported; they are not silently interpreted.
|
||||
consumer. Linear roughness and metallic maps replace those scalar parameters.
|
||||
An explicit scalar face appearance suppresses newly imported body maps on that face.
|
||||
Existing GPU built-in and temporary map roles retain their previous precedence,
|
||||
including when a request mixes legacy and imported roles.
|
||||
Displacement, height and alpha maps are unsupported.
|
||||
|
||||
Sampling uses bilinear level-zero periodic filtering at texel centers, including
|
||||
negative UV repeats. There is no mipmapping, anisotropic filter or UV mesh import
|
||||
in this increment, so fine distant patterns may alias. PNG/JPEG input is 8-bit,
|
||||
maximum 1024×1024 per map. Embedded ICC profiles and nonidentity orientation must
|
||||
be normalized beforehand; no implicit color-management guess is made. The sRGB
|
||||
Newly imported GPU maps and native CPU maps prepare complete floor-halved, linear area-filtered mip chains through
|
||||
1×1. It interpolates bilinearly within each level and linearly between levels.
|
||||
LOD uses the largest singular value of the unwrapped UV-to-texel Jacobian;
|
||||
negative repeats and repeat seams do not create false derivatives. Magnification
|
||||
retains level zero. GPU primary footprints analytically differentiate the camera ray and
|
||||
its intersection with the hit tangent plane, holding the lens sample fixed and
|
||||
using one output-pixel spacing. Secondary GPU footprints use a conservative camera ray cone scaled by
|
||||
path length and grazing angle. That approximation can blur stretched footprints;
|
||||
it does not implement anisotropic filtering or specular ray differentials. Legacy GPU
|
||||
maps retain only their exact decoded level-zero pixels and bypass LOD selection.
|
||||
Content/role sharing also includes this policy, so mixed requests cannot silently
|
||||
replace legacy sampling with the imported-map policy or conversely.
|
||||
|
||||
PNG/JPEG input is 8-bit, maximum 1024×1024 per map. Embedded ICC profiles and nonidentity orientation must
|
||||
be normalized beforehand. Temporary GPU maps retain their historical decoder
|
||||
admission and explicit-role interpretation: ancillary PNG color declarations do
|
||||
not change their encoded samples or introduce a new refusal. Portable design-owned
|
||||
imports require normalized sRGB declarations for base color and validate static
|
||||
metadata before publication. The native CPU metadata worker also rejects conflicting
|
||||
base-color declarations. Normal and scalar roles retain their raw numerical channels.
|
||||
No implicit color-profile conversion is performed. The sRGB
|
||||
base/data normal distinction follows the public
|
||||
[Khronos glTF material semantics](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#materials),
|
||||
without adopting its document format or copying implementation code.
|
||||
|
||||
At most 16 exact name-and-index body bindings retain 16 MiB encoded capacity and
|
||||
32 MiB linear pixel data collectively. Admission counts captured bytes, codec
|
||||
scratch, normalized pixels, staging and device storage against the existing job
|
||||
At most 128 exact name-and-index body bindings retain 64 MiB encoded capacity and
|
||||
96 MiB level-zero linear pixel data collectively. Admission counts captured bytes, codec
|
||||
scratch, normalized pixels, any prepared mip chains, staging and device storage against the existing job
|
||||
budget. Codecs execute on the worker with cancellation checks before/after each
|
||||
bounded decode and during conversion/upload preparation. Public status contains
|
||||
metadata only; completion or cancellation releases captured source bytes even
|
||||
when callers retain job/status/frame handles. GPU preparation also releases
|
||||
source bytes after preparing the pixel buffer.
|
||||
|
||||
The GPU executor selects a bounded opaque pipeline when the captured scene has
|
||||
no physical transmission or active volume. Glass and active volume rendering
|
||||
retain the general pipeline. Both honor each map's captured filtering and face-precedence policy.
|
||||
Disjoint media use one private stack entry; certified nested media retain their
|
||||
sixteen-entry capacity. Captured scene options select at most six cached programs.
|
||||
|
||||
The independent progressive device requests six storage buffers per shader
|
||||
stage. An adapter limited to fewer cannot install this executor; raster and
|
||||
tessellation device requirements remain unchanged.
|
||||
|
||||
Reference in new issue
Block a user