Relief Mark
Install the component, then paste your configured usage. Your settings are included in the code below.
Pro source comes with Arclen UI Pro. See plans
| Property | Type | Default |
|---|---|---|
svgSourceSVG source Canonical geometry-only SVG. Empty uses the bundled Arclen mark. 32768 UTF-8 bytes maximum; invalid XML is rejected, never truncated. Up to 32768 characters | text | "" |
useFallbackUse Arclen fallback Force original Arclen artwork without deleting the stored custom SVG. | boolean | false |
labelAccessible label Accessible name. Trimmed and limited to 120 UTF-16 code units without splitting a Unicode code point; empty uses the default. Up to 120 characters | text | "Interactive 3D logo" |
themeTheme Select background and readable control styling; material values do not change. Options: dark, light, system | select | "dark" |
backgroundDarkDark background Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#000000" |
backgroundLightLight background Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#F1F2F4" |
depthExtrusion depth Total solid depth in normalized model units, including bevel. 0.02–0.6Step 0.01 | number | 0.24 |
bevelBevel radius Requested rounded edge radius. Thin features may use a smaller radius to preserve the outline; geometry diagnostics retain adjustment details. 0–0.08Step 0.001 | number | 0.018 |
bevelSegmentsBevel segments Integer segments around each rounded bevel; subject to geometry budget. 1–4Step 1 | number | 3 |
faceColorFace colour Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#17191C" |
edgeColorSide colour Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#24272D" |
roughnessRoughness Unitless physical material roughness. 0–1Step 0.01 | number | 0.28 |
metalnessMetalness Unitless conductor fraction. 0–1Step 0.01 | number | 0.05 |
transmissionTransmission Unitless physical transmission; strongest with metalness zero. 0–1Step 0.01 | number | 0 |
iorIndex of refraction Dimensionless refractive index; visible on transmissive/reflective surfaces. 1–2.333Step 0.001 | number | 1.5 |
thicknessOptical thickness Normalized model units for transmission attenuation/refraction; separate from geometry depth. 0–2Step 0.01 | number | 0.24 |
iridescenceIridescence Unitless thin-film contribution. 0–1Step 0.01 | number | 0 |
iridescenceIorFilm refractive index Dimensionless thin-film refractive index. 1–2.333Step 0.001 | number | 1.3 |
filmThicknessMinFilm thickness minimum Nanometres; resolved minimum cannot exceed maximum. 0–2000Step 10 | number | 100 |
filmThicknessMaxFilm thickness maximum Nanometres; resolved maximum cannot be below minimum. 0–2000Step 10 | number | 400 |
textureStrengthTexture strength Unitless fraction of a maximum 0.0006 normalized-unit optical height. Changes surface normals, not the silhouette. 0–1Step 0.01 | number | 0.22 |
textureDensityTexture density Cycles per normalized model unit, not source SVG pixels. 20–240Step 1 | number | 140 |
texturePatternTexture pattern Original procedural pattern only; never overrides any material or light value. Options: woven, brushed, grain, none | select | "woven" |
keyColorKey colour Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#CBD4E2" |
keyIntensityKey intensity Unitless multiplier on the fixed key light rig. 0–8Step 0.1 | number | 2.4 |
fillColorFill colour Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#204AFF" |
fillIntensityFill intensity Radiance multiplier for the adjustable rectangular fill emitter. 0–8Step 0.1 | number | 1.2 |
fillPositionXFill position X World-space X position in normalized model units. The emitter always aims at the origin. -3–3Step 0.05 | number | 1 |
fillPositionYFill position Y World-space Y position in normalized model units. The emitter always aims at the origin. -3–3Step 0.05 | number | 0.5 |
fillPositionZFill position Z World-space Z position in normalized model units. The emitter always aims at the origin. -3–3Step 0.05 | number | 0.3 |
fillWidthFill width Area-emitter width in normalized model units; smaller sizes concentrate the reflected shape. 0.02–3Step 0.01 | number | 0.6 |
fillHeightFill height Area-emitter height in normalized model units; smaller sizes concentrate the reflected shape. 0.02–3Step 0.01 | number | 1.4 |
rimColorRim colour Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#8CAEFF" |
rimIntensityRim intensity Unitless multiplier on the fixed rim light rig. 0–8Step 0.1 | number | 2.5 |
environmentColorEnvironment tint Six-digit sRGB base colour or light colour; not a promised rendered pixel value. | color | "#FFFFFF" |
environmentIntensityReflection environment intensity Unitless strength of the original procedural reflection environment. 0–4Step 0.05 | number | 0.15 |
exposureExposure Unitless tone-mapping exposure multiplier. 0.3–2.5Step 0.05 | number | 2.2 |
scaleObject size Desired neutral object height as percentage of stage height; safety fit can reduce it. 20–82Step 1 | number | 52 |
heightStage height CSS pixels; actual host dimensions govern fitting. 240–900Step 10 | number | 520 |
radiusStage radius CSS pixels. 0–40Step 1 | number | 0 |
tiltStarting pitch Degrees about model X. -55–55Step 1 | number | 12 |
rotationStarting yaw Degrees about model Y; live yaw remains unwrapped. -180–180Step 1 | number | -25 |
rotationSpeedIdle speed Degrees per second. 0–40Step 0.5 | number | 9.5 |
autoRotateIdle rotation Runs only when all lifecycle and reduced-motion gates allow. | boolean | true |
directionIdle direction Right increases yaw; left decreases it. Options: right, left | select | "right" |
interactiveAllow interaction Enables pointer/keyboard input and mouse-follow; idle is independently controlled. | boolean | true |
dragSensitivityDrag sensitivity Degrees per CSS pixel. 0.1–1Step 0.05 | number | 0.35 |
dampingRelease time constant Seconds for exponential release velocity decay. 0.04–0.4Step 0.01 | number | 0.14 |
keyboardStepKeyboard step Degrees per arrow keydown, including repeats. 2–45Step 1 | number | 12 |
followStrengthMouse-follow strength Unitless multiplier of configured angular limits; zero disables follow. 0–1Step 0.01 | number | 0.35 |
followYawLimitMouse-follow yaw limit Degrees at horizontal stage edge before strength multiplier. 0–35Step 1 | number | 12 |
followPitchLimitMouse-follow pitch limit Degrees at vertical stage edge before strength multiplier. 0–25Step 1 | number | 8 |
followTimeConstantMouse-follow time constant Seconds for exponential approach; 99% settled within five time constants. 0.04–0.5Step 0.01 | number | 0.18 |
showHintShow visual instructions Show visible interaction instructions. Keyboard instructions remain available to assistive technology when hidden. | boolean | false |
pixelRatioPixel ratio cap Maximum backing ratio; min(device DPR, cap), not a multiplier. 1–2Step 0.25 | number | 1.5 |
backdropModeBackground Auto uses an image for transmissive materials. Solid keeps the plain stage; Studio uses the procedural cue; Image forces the selected picture. Options: auto, solid, studio, image | select | "auto" |
backdropImageBackground image Bundled glass-backdrop, project path, HTTPS image or raster data URL. Raster uploads up to 60 KiB are portable within the combined 128 KiB export limit; external blob URLs are preview-only. Up to 122912 characters | image | "glass-backdrop" |
backdropBrightnessImage brightness 0–2Step 0.05 | number | 1 |
backdropPositionXImage position X 0–100Step 1 | number | 50 |
backdropPositionYImage position Y 0–100Step 1 | number | 50 |
Relief Mark
Turn an SVG logo or icon into a dimensional object with independently adjustable material, light and motion controls. Relief Mark uses local geometry preparation and Three.js physical materials. It includes an original Arclen mark when no custom source is supplied.
import { ReliefMark } from './components/relief-mark';
export default function Example() {
return <ReliefMark label="Company logo" autoRotate rotationSpeed={9.5} />;
}Pass SVG XML as the svgSource string. A temporary object URL is not an SVG source. In the library editor, drop an SVG onto the upload area or choose **Browse files**. The selected file can be replaced or removed; removing it returns to the Arclen mark. Files are limited to 32 KiB UTF-8. **Paste SVG** is available as a secondary option for XML. Preparation happens on your device; the source is sent to configured delivery only when you request an export. You are responsible for permission to use and redistribute your uploaded artwork.
SVG support
Filled paths, compound holes, rectangles, circles, ellipses, polygons and affine transforms are supported within finite complexity limits. Ordinary simple solid strokes support butt/round/square caps and miter/bevel/round joins. Horizontal touch gestures rotate the complete object through repeated turns. Pitch is limited to 55 degrees in either direction and is available with mouse/pen or keyboard input.
Some SVGs need cleanup before conversion. Convert text to paths and flatten filters, clipping, masks, gradients and linked resources. Dashed strokes, markers, embedded images, use/symbol references and arbitrary CSS are not supported. Overlapping or self-intersecting stroke outlines, collapsed inner rings and overlapping separate solids are rejected rather than partially displayed. Simplify those paths or convert strokes to nonoverlapping filled outlines.
Source is limited to 32 KiB UTF-8, 64 elements, 8 nesting levels, 1024 path commands, 64 contours and 2048 prepared outline vertices. Output is limited to 40,000 triangles. Very detailed curves, extreme transforms and tiny or ambiguous features can require simplification. A rejected upload keeps the last accepted preview. useFallback selects Arclen without deleting the custom source.
Materials and light
Carbon is the default finish, with a dark woven face, cool-neutral key, blue fill and rim lighting, and exposure 2.2. Carbon, Chrome, Glass, Prism and Ember are material/light configurations. Applying one updates the complete material/light domain; it preserves your SVG, extrusion, layout and motion. Every later custom value remains effective. There is no hidden preset that overrides your settings. Chrome uses a polished metallic response. Glass uses full physical transmission with a low-roughness dielectric surface. Transmission, IOR and optical thickness remain independently adjustable. Ember pairs dark polished metal with red/pink reflections and restrained neutral light. Its reflections move with the existing rotation and input controls. Selecting Ember preserves your scene/image choice and introduces no background asset.
Metalness and roughness affect reflected light. Transmission, optical thickness and IOR control the physical glass response; transmission is most visible with metalness at zero and the reflection environment enabled. Iridescence has its own film IOR and minimum/maximum thickness in nanometres. Both thickness controls feed a smooth object-space thickness map; equal values give a uniform film. Setting iridescence to zero keeps these settings but disables their contribution.
Key, fill and rim lights have independent colours and strengths. Each uses a rectangular area emitter aimed at the origin. Fill position X/Y/Z and Fill width/height expose its physical position and size in normalized model units. The fill remains fixed in world space as the mark rotates; it does not track a particular surface or camera angle. The default position (1, 0.5, 0.3) and size (0.6, 1.4) preserve the original rig. Smaller emitter dimensions change the reflection footprint rather than painting a highlight. Material presets contain all 28 material/light values and reset these five controls with the rest of the finish. Existing configurations that omit them receive the original defaults. The procedural environment supplies neutral studio reflection bands; its tint and intensity do not replace those lights. In Auto mode, transmissive materials refract the bundled image backdrop. Studio mode retains the procedural cue, whose base follows your chosen background. Custom HTTPS or project image URLs load only when image mode is active. Reflection lighting is generated locally; no external HDR, model or font is fetched.
Depth includes the rounded bevel. Model units are relative to normalized object height 1. Inward bevel rings preserve the source sidewall outline and use locally bounded radii. Shapes that cannot pass the local geometry checks retain conservative extrusion with a reduced bevel when necessary. Geometry preparation yields between bounded work chunks and cancels when a newer shape is selected. Texture density is cycles per model unit, not SVG pixels. Object size is a desired percentage of stage height. Perspective framing moves the camera back as needed to keep the full rotating solid clear of the container edges and visible instructions.
Visible interaction hints are off by default; enable Show hint to display them. Keyboard instructions remain connected to the interactive mark for assistive technology. Routine bevel adjustments stay in geometry diagnostics rather than overlaying the artwork. Loading failures and other actionable errors remain visible.
Interaction and performance
Drag with mouse or pen to turn and tilt. On touchscreens, horizontal intent rotates yaw while vertical gestures retain page scrolling and pinch zoom. Focus the figure and use arrow keys; Escape resets the configured starting pose. The optional visual hint can be hidden without removing accessible instructions.
Reduced motion disables idle spin, release inertia and mouse-follow. Explicit pointer/keyboard changes still work immediately. Hidden, offscreen and paused instances stop their animation loops. Resume preserves pose without catching up elapsed background time. pixelRatio caps exported rendering quality at the smaller of device DPR and the configured limit.
Relief Mark is intended for hardware-accelerated WebGL. Chromium SwiftShader exceeded the 50 ms steady long-task budget in testing; software rendering can be substantially slower and varies by device and scene size. Disable Auto rotate or use reduced motion to keep a still frame between explicit interactions.
The editor's **Live preview** switch is preview-only. Off retains the frame; **Refresh frame** draws pending settings once. Re-enable resumes from the retained pose. Export always carries the actual component settings, not this editor pause state. The React paused prop and vanilla pause()/resume() are available separately for your application.
Fallbacks and portable use
The original Arclen artwork has a static SVG fallback. A custom upload uses a readable label/status before JavaScript or when WebGL is unavailable; it does not inject uploaded markup or show an unrelated logo. Context loss reveals that fallback until a successful restored frame. Changing colours or lights preserves geometry and current pose. Source/geometry replacement is cancellable and swaps only after successful preparation.
import { mount, render, resolveSettings } from './src/core';
const settings = resolveSettings({ svgSource: yourSvgXml, label: 'Company logo' });
host.innerHTML = render(settings);
const instance = mount(host, settings);
instance.update({ roughness: 0.2 });
instance.pause();
instance.resume();
// When the host leaves your application:
instance.destroy();Configured React usage and HTML include the canonical SVG string and selected values. Large source configurations use the ordinary installer plus configured usage or a settings-file download; oversized share links are disabled explicitly. Keep the supplied original asset notice, Three.js MIT license, and LTC lookup license and paper citation with redistributed files.
Procedural texture strength scales an optical height bounded by 0.0006 normalized model units. Its tangent normal changes reflections without displacing the silhouette. Woven, brushed and grain patterns do not override any material or lighting control. Area-light lookup data is packed from the exact licensed Three.js half-float tables; attribution is included in assets/LTC-NOTICE.md.
Image backdrop
The five Scene controls bring Relief Mark to 60 controls including the five fill-emitter controls. Auto shows the bundled original silver artwork when transmission is above zero and a plain stage for opaque materials. Image forces the chosen image for any material; Studio keeps the procedural refraction cue; Solid keeps the plain stage. Material presets preserve these scene choices.
The image is a real textured plane behind the mark, so Glass refracts its detail. Reflection lighting stays separate. Brightness and horizontal/vertical position control the cover crop. Photo colors remain consistent between light and dark themes.
Use the bundled backdrop, a project image path, or a CORS-enabled HTTPS raster image. The editor accepts PNG, JPEG, WebP or GIF uploads up to 60 KiB as portable data URLs. Combined SVG, image and settings must fit the existing 128 KiB export limit. Blob URLs are preview-only and must be replaced before export. Images above 8192 pixels per dimension or 16 megapixels are rejected. A failed image load shows the studio backdrop and a status message while retaining the valid SVG. Pausing stops automatic image-ready redraws; an explicit refresh authorizes the pending frame.
The preview runs the component’s own JavaScript. It respects reduced motion and pauses when off screen. The HTML bundle includes a static fallback.
Every setting in this panel comes from the component manifest. Preview size, pause and replay stay in the inspector.