Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/site-src/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function walk(dir) {
}

function parsePage(file) {
const raw = readFileSync(file, 'utf8');
const raw = readFileSync(file, 'utf8').replace(/\r\n/g, '\n');
const match = raw.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/);
if (!match) throw new Error(`${file}: missing front matter`);
const meta = {};
Expand Down
2 changes: 1 addition & 1 deletion docs/site-src/content/deep/3d-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The **Wireframe** button shows the edges of the original quads and n-gons, not t

## Smooth preview and mesh colours

**Smooth** (or `3`, like Maya) shows the meshes smoothed, as if they were subdivided twice. It only changes what you see. The file is not touched. It is off when a model opens, and press it again to go back to the original. Very dense models get fewer subdivisions, and a model that is too dense to smooth stays as it is with a short note. Skinned and animated-shape meshes are left as they are. The **Wireframe** button shows the smoothed lines while Smooth is on.
**Smooth** (or `3`, like Maya) shows the meshes smoothed, as if they were subdivided twice. It only changes what you see. The file is not touched. It is off when a model opens, and press it again to go back to the original. Very dense models get fewer subdivisions, and a model that is too dense to smooth stays as it is with a short note. Skinned and animated-shape meshes are left as they are. The **Wireframe** button keeps showing the original lines (the cage) over the smoothed surface, like Maya's `3` key, not the extra lines made by smoothing.

**Colors** (or `C`) gives every mesh its own colour, so it is easy to see where one part ends and the next begins. It works in the Shaded, Clay and Wireframe Overlay looks, and it is off when a model opens.

Expand Down
2 changes: 1 addition & 1 deletion docs/site-src/content/shared/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The current version is **1.20.0**. This list groups the changes by what you see

- 3D viewer with lighting presets, shading modes, matcaps, wireframe, cameras and turntable.
- 3D viewer wireframe now shows the original quads and n-gons instead of triangles. A Normals panel softens or hardens edges by angle, like Maya, and a UV view (button or `U`) shows the UV layout.
- Smooth preview in the 3D viewer (button or `3`, like Maya) shows the meshes subdivided so curves look smooth. A Colors button (or `C`) gives each mesh its own colour so parts are easy to tell apart. Both start off.
- Smooth preview in the 3D viewer (button or `3`, like Maya) shows the meshes smoothed, with the wireframe staying on the original lines. A Colors button (or `C`) gives each mesh its own colour so parts are easy to tell apart. Both start off.
- USD, Alembic and Blender files converted in the background with Blender, plus a 3D model outliner.
- HDR and EXR inspector with a 360° view, exposure, tone mapping, channel solo, eyedropper and probes.
- Render textures (`.tx`, `.tex`) with mip levels and a "sharp enough?" check.
Expand Down
2 changes: 1 addition & 1 deletion docs/site/assets/search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/site/deep/3d-models.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2 id="wireframe-normals-and-uv-view">Wireframe, normals and UV view</h2>
<p><strong>Normals</strong> opens a panel that softens or hardens edges by angle, like Maya. <strong>Original</strong> uses the normals from the file, <strong>Hard</strong> makes every edge hard, <strong>Soft</strong> makes every edge soft, and the angle slider (or number box) makes an edge soft when the two faces meet at less than that angle. Try the Normal Vectors shading look to see the result. It only changes what you see. The file is not touched. Smooth preview has its own smooth normals, so the setting waits until Smooth is off. A model that is too dense stays as it is with a short note.</p>
<p><strong>UV</strong> (or <code>U</code>) opens a panel with the UV layout. It shows the object picked in the outliner, or every mesh when nothing is picked. The 0 to 1 tile is outlined. Scroll to zoom, drag to move, and double-click to fit. <strong>Colors</strong> gives each mesh its own colour.</p>
<h2 id="smooth-preview-and-mesh-colours">Smooth preview and mesh colours</h2>
<p><strong>Smooth</strong> (or <code>3</code>, like Maya) shows the meshes smoothed, as if they were subdivided twice. It only changes what you see. The file is not touched. It is off when a model opens, and press it again to go back to the original. Very dense models get fewer subdivisions, and a model that is too dense to smooth stays as it is with a short note. Skinned and animated-shape meshes are left as they are. The <strong>Wireframe</strong> button shows the smoothed lines while Smooth is on.</p>
<p><strong>Smooth</strong> (or <code>3</code>, like Maya) shows the meshes smoothed, as if they were subdivided twice. It only changes what you see. The file is not touched. It is off when a model opens, and press it again to go back to the original. Very dense models get fewer subdivisions, and a model that is too dense to smooth stays as it is with a short note. Skinned and animated-shape meshes are left as they are. The <strong>Wireframe</strong> button keeps showing the original lines (the cage) over the smoothed surface, like Maya's <code>3</code> key, not the extra lines made by smoothing.</p>
<p><strong>Colors</strong> (or <code>C</code>) gives every mesh its own colour, so it is easy to see where one part ends and the next begins. It works in the Shaded, Clay and Wireframe Overlay looks, and it is off when a model opens.</p>
<h2 id="lights-and-the-turntable">Lights and the turntable</h2>
<p>The lighting list sets the studio rig: the softbox, sunset, neutral and cyber presets. The <strong>Light</strong> slider turns the light rig around the model. <strong>Turntable</strong> spins the model at an adjustable speed for a quick look from every side.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/shared/release-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1>Release notes</h1>
<h2 id="folders-network-and-navigation">Folders, network and navigation</h2>
<ul><li>The sidebar always fits its width. Drive and network drive cards shrink, long names are cut with an ellipsis (hover shows the full name), and there is no bottom scroll bar.</li><li>Folder navigation with a history, back and forward, and the mouse side buttons.</li><li>Mapped and typed network shares in the sidebar, with sign-in for shares that refuse guest access. Saved sign-ins reconnect when the app starts.</li><li>Recent folders, pinned folders and starred files in the sidebar.</li><li>A details view like File Explorer's, with sortable columns.</li><li>In-place refresh with <code>F5</code>, <code>Ctrl</code> + <code>R</code> and the header button; the selection and view stay.</li></ul>
<h2 id="viewers">Viewers</h2>
<ul><li>3D viewer with lighting presets, shading modes, matcaps, wireframe, cameras and turntable.</li><li>3D viewer wireframe now shows the original quads and n-gons instead of triangles. A Normals panel softens or hardens edges by angle, like Maya, and a UV view (button or <code>U</code>) shows the UV layout.</li><li>Smooth preview in the 3D viewer (button or <code>3</code>, like Maya) shows the meshes subdivided so curves look smooth. A Colors button (or <code>C</code>) gives each mesh its own colour so parts are easy to tell apart. Both start off.</li><li>USD, Alembic and Blender files converted in the background with Blender, plus a 3D model outliner.</li><li>HDR and EXR inspector with a 360° view, exposure, tone mapping, channel solo, eyedropper and probes.</li><li>Render textures (<code>.tx</code>, <code>.tex</code>) with mip levels and a &quot;sharp enough?&quot; check.</li><li>Image sequences that play as one sequence, PDF viewing, video and audio players.</li><li>Markdown (<code>.md</code>) documents in a clean reading page, with pictures and animated GIFs from next to the file or from a network drive, tables, code blocks, task lists, links and a heading outline.</li><li>Compare with wipe, side-by-side, A/B toggle and diff, for pictures, videos and 3D models. Align Features scales a smaller picture up to match the larger one.</li></ul>
<ul><li>3D viewer with lighting presets, shading modes, matcaps, wireframe, cameras and turntable.</li><li>3D viewer wireframe now shows the original quads and n-gons instead of triangles. A Normals panel softens or hardens edges by angle, like Maya, and a UV view (button or <code>U</code>) shows the UV layout.</li><li>Smooth preview in the 3D viewer (button or <code>3</code>, like Maya) shows the meshes smoothed, with the wireframe staying on the original lines. A Colors button (or <code>C</code>) gives each mesh its own colour so parts are easy to tell apart. Both start off.</li><li>USD, Alembic and Blender files converted in the background with Blender, plus a 3D model outliner.</li><li>HDR and EXR inspector with a 360° view, exposure, tone mapping, channel solo, eyedropper and probes.</li><li>Render textures (<code>.tx</code>, <code>.tex</code>) with mip levels and a &quot;sharp enough?&quot; check.</li><li>Image sequences that play as one sequence, PDF viewing, video and audio players.</li><li>Markdown (<code>.md</code>) documents in a clean reading page, with pictures and animated GIFs from next to the file or from a network drive, tables, code blocks, task lists, links and a heading outline.</li><li>Compare with wipe, side-by-side, A/B toggle and diff, for pictures, videos and 3D models. Align Features scales a smaller picture up to match the larger one.</li></ul>
<h2 id="browsing-and-working-with-files">Browsing and working with files</h2>
<ul><li>Multi-select with <code>Ctrl</code> and <code>Shift</code>, box selection, and a right-click menu.</li><li>Quick Look with <code>Space</code>: a floating preview that follows the arrow keys and can scrub video.</li><li>Colour labels and tags for files and folders, with a label filter.</li><li>Custom folder icons from a CG library, plus your own PNG, SVG, ICO, WebP and JPG files.</li><li>Send to apps from the right-click menu.</li><li>Batch conversion of images to PNG, JPG, TIFF, BMP, TGA and WebP, without overwriting files.</li><li>A duplicate finder: right-click a folder and choose <strong>Find duplicates…</strong> to list the folders and files under it that are copies of each other, with a 0 to 100% similarity score. It checks by name and size, or by file contents, and never moves or deletes anything.</li><li>Delete to the Recycle Bin, with a confirmation; permanent delete only on <code>Shift</code> + <code>Delete</code>.</li><li>Keyboard shortcut card on <code>?</code> and <code>F1</code>.</li><li>A Help button in the top bar (and a Documentation entry in Settings) that opens this guide in your browser. The guide is built into the app and works offline.</li></ul>
<h2 id="speed-and-stability">Speed and stability</h2>
Expand Down
19 changes: 4 additions & 15 deletions src/components/Viewport3D.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ function getOrCreateWireframeHelper(mesh) {
return mesh.userData.wireframeHelper;
}

const geom = mesh.geometry;
// Always the file's own geometry, even while Smooth preview or softened normals show another copy.
// So the wireframe is the original cage, like Maya's 3 key, and it stays valid when the display geometry changes.
const geom = mesh.userData.origGeometry || mesh.geometry;
if (!geom || !geom.attributes?.position) return null;

const posAttr = geom.attributes.position;
Expand Down Expand Up @@ -129,16 +131,6 @@ function getOrCreateWireframeHelper(mesh) {
return wireHelper;
}

// Throw away a mesh's wireframe overlay so it is rebuilt from the mesh's current geometry
function dropWireframeHelper(mesh) {
const helper = mesh.userData.wireframeHelper;
if (!helper) return;
helper.geometry?.dispose();
helper.material?.dispose();
mesh.remove(helper);
mesh.userData.wireframeHelper = null;
}

// Option styling shared by the HUD dropdowns
const OPTION_STYLE = { color: '#000000', backgroundColor: '#ffffff' };
const MATCAP_PREFIX = 'matcap:';
Expand Down Expand Up @@ -781,7 +773,6 @@ export default function Viewport3D({
const base = getBaseGeometry(mesh);
if (mesh.geometry !== base) {
mesh.geometry = base;
dropWireframeHelper(mesh);
changed = true;
}
});
Expand Down Expand Up @@ -819,7 +810,6 @@ export default function Viewport3D({
const base = getBaseGeometry(mesh);
if (mesh.geometry !== base) {
mesh.geometry = base;
dropWireframeHelper(mesh);
changed = true;
}
});
Expand Down Expand Up @@ -865,7 +855,6 @@ export default function Viewport3D({
if (!levels[level]) levels[level] = buildSmoothGeometry(orig, level);
if (mesh.geometry !== levels[level]) {
mesh.geometry = levels[level];
dropWireframeHelper(mesh);
}
outTris += countGeometryTriangles(levels[level]);
});
Expand Down Expand Up @@ -1107,7 +1096,7 @@ export default function Viewport3D({
<button
className={`hud-btn ${smoothPreview ? 'active' : ''}`}
onClick={() => setSmoothPreview(!smoothPreview)}
title="Smooth preview: subdivide the meshes on screen (3 key). The file is not changed."
title="Smooth preview: show the meshes smoothed, wireframe stays on the original cage (3 key, like Maya). The file is not changed."
>
<Spline size={14} />
<span className="hud-label">Smooth</span>
Expand Down
Loading