Spaces:
Running

vomp-viewer / index.html
rishitdagli's picture
Cursor: make a viewer
1b9c262
Raw History Blame Contribute Delete
15.6 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>VoMP Physical Assets Explorer</title>
<meta name="description" content="Browse the NVIDIA VoMP physical-assets dataset: 3D objects with per-part and per-voxel Young's modulus, Poisson's ratio and density.">
<meta property="og:title" content="VoMP Physical Assets Explorer">
<meta property="og:description" content="Interactive viewer for 3D assets with volumetric mechanical property fields (VoMP, ICLR 2026).">
<meta name="theme-color" content="#ffffff">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%2376b900' d='M16 2 3 9v14l13 7 13-7V9z'/%3E%3Cpath fill='%23fff' fill-opacity='.35' d='M16 2 3 9l13 7 13-7z'/%3E%3Cpath fill='%23000' fill-opacity='.18' d='M16 16v14l13-7V9z'/%3E%3C/svg%3E">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Serif:ital,wght@1,400;1,600&family=Titillium+Web:wght@600;700&display=swap">
<link rel="preconnect" href="https://huggingface.co" crossorigin>
<link rel="preconnect" href="https://us.aws.cdn.hf.co" crossorigin>
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<link rel="stylesheet" href="assets/style.css">
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.min.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
}
}
</script>
<link rel="modulepreload" href="assets/app.js">
<link rel="preload" href="data/index.json.gz.b64" as="fetch" crossorigin>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<header class="site-header">
<div class="wrap header-row">
<div class="brand">
<svg class="logo" viewBox="0 0 32 32" aria-hidden="true"><path fill="#76b900" d="M16 2 3 9v14l13 7 13-7V9z"/><path fill="#fff" fill-opacity=".35" d="M16 2 3 9l13 7 13-7z"/><path fill="#000" fill-opacity=".18" d="M16 16v14l13-7V9z"/></svg>
<div>
<h1>VoMP Physical Assets Explorer</h1>
<p class="tagline">3D assets with volumetric mechanical properties: Young's modulus, Poisson's ratio and density for every part and voxel.</p>
</div>
</div>
<nav class="links" aria-label="Project links">
<a href="https://arxiv.org/abs/2510.22975" target="_blank" rel="noopener">Paper</a>
<a href="https://research.nvidia.com/labs/sil/projects/vomp/" target="_blank" rel="noopener">Project page</a>
<a href="https://huggingface.co/datasets/nvidia/PhysicalAI-Robotics-PhysicalAssets-VoMP" target="_blank" rel="noopener">Dataset</a>
<a href="https://huggingface.co/nvidia/PhysicalAI-Simulation-VoMP-Model" target="_blank" rel="noopener">Model</a>
<a href="https://huggingface.co/spaces/nvidia/PhysicalAI-Robotics-VoMP-Demo" target="_blank" rel="noopener">Demo</a>
</nav>
</div>
<div class="wrap">
<div class="stats" id="stats"></div>
</div>
<div class="wrap">
<div class="tabs" role="tablist" aria-label="Views">
<button class="tab" role="tab" data-tab="gallery" aria-selected="true" aria-controls="tab-gallery" id="tabbtn-gallery">Gallery</button>
<button class="tab" role="tab" data-tab="space" aria-selected="false" aria-controls="tab-space" id="tabbtn-space" tabindex="-1">Material space</button>
</div>
</div>
</header>
<main id="main" class="wrap">
<section id="tab-gallery" class="gallery-layout" role="tabpanel" aria-labelledby="tabbtn-gallery">
<div class="drawer-scrim"></div>
<aside class="filters" id="filters" aria-label="Filters">
<div class="filters-head">
<h2>Filters</h2>
<button class="link-btn" type="button" id="filters-reset">Reset</button>
<button class="icon-btn filters-close" type="button" id="filters-close" aria-label="Close filters">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg>
</button>
</div>
<div class="filters-body" id="filters-body"></div>
<div class="filters-foot"><button class="btn btn-primary" type="button" id="filters-apply">Show results</button></div>
</aside>
<div class="results">
<div id="results-top"></div>
<div class="toolbar">
<label class="search">
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
<input id="search" type="search" placeholder="Search objects, parts or materials…" title="Try: chair, steel, rubber feet, glass" autocomplete="off" spellcheck="false" aria-label="Search objects, parts or materials">
<kbd class="kbd" aria-hidden="true">/</kbd>
</label>
<div class="toolbar-row">
<button class="btn filters-open" type="button" id="filters-open" aria-controls="filters" aria-expanded="false">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6h16M7 12h10M10 18h4"/></svg>Filters <span class="badge" id="filters-count" hidden></span>
</button>
<div class="seg thumb-toggle" role="group" aria-label="Thumbnail style">
<button type="button" data-thumb="photo" aria-pressed="true">Render</button>
<button type="button" data-thumb="E" aria-pressed="false" title="Voxels coloured by Young's modulus">E field</button>
</div>
<label class="select"><span class="sr-only">Sort by</span><select id="sort" aria-label="Sort by"></select></label>
<label class="select select-sm"><span class="sr-only">Per page</span>
<select id="per" aria-label="Objects per page"><option value="24">24</option><option value="48" selected>48</option><option value="96">96</option></select>
</label>
</div>
</div>
<div class="result-line">
<p id="result-count" class="result-count" aria-live="polite">Loading…</p>
</div>
<div id="active-filters" class="active-filters" hidden></div>
<div id="grid" class="grid">
<div class="card skeleton"></div><div class="card skeleton"></div><div class="card skeleton"></div><div class="card skeleton"></div>
<div class="card skeleton"></div><div class="card skeleton"></div><div class="card skeleton"></div><div class="card skeleton"></div>
</div>
<nav id="pager" class="pager" aria-label="Pagination"></nav>
</div>
</section>
<section id="tab-space" class="space" role="tabpanel" aria-labelledby="tabbtn-space" hidden>
<div class="space-grid">
<div class="card-panel ashby-panel">
<div class="panel-head">
<h2>Material property space</h2>
</div>
<div class="ashby-wrap">
<div id="ashby" class="ashby"></div>
<div id="ashby-tip" class="tip" hidden></div>
</div>
<div id="ashby-legend" class="legend-chips" aria-label="Toggle families"></div>
</div>
<div class="side-panels">
<div class="card-panel">
<h3>Material families</h3>
<div class="table-scroll">
<table id="fam-table" class="fam-table">
<thead><tr><th>Family</th><th>Parts</th><th>Objects</th><th>Median <i class="sym">E</i></th><th><i class="sym">ν</i></th><th><i class="sym">ρ</i> <span class="unit">(kg/m³)</span></th></tr></thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="card-panel">
<h3>Top categories</h3>
<div id="cat-bars" class="bars"></div>
</div>
</div>
</div>
<div class="hist-grid">
<div class="card-panel mini-hist" id="h-E"></div>
<div class="card-panel mini-hist" id="h-nu"></div>
<div class="card-panel mini-hist" id="h-rho"></div>
</div>
</section>
</main>
<div id="detail" class="detail" role="dialog" aria-modal="true" aria-labelledby="d-title" hidden>
<div class="detail-backdrop"></div>
<div class="detail-panel">
<header class="detail-head">
<button class="icon-btn" type="button" id="d-close" aria-label="Close (Esc)">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 18l-6-6 6-6"/></svg>
</button>
<div class="d-titles">
<h2 id="d-title"></h2>
<div class="d-chips" id="d-chips"></div>
</div>
<div class="d-actions">
<div class="d-nav">
<button class="icon-btn" type="button" id="d-prev" aria-label="Previous object (←)"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 18l-6-6 6-6"/></svg></button>
<span id="d-pos" class="d-pos"></span>
<button class="icon-btn" type="button" id="d-next" aria-label="Next object (→)"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 6l6 6-6 6"/></svg></button>
</div>
<button class="btn" type="button" id="d-copy"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1"/></svg><span class="btn-text">Copy link</span></button>
<a class="btn btn-ghost" id="d-hub" href="#" target="_blank" rel="noopener"><span class="btn-text">Files on Hub</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/></svg></a>
</div>
</header>
<div class="detail-body">
<section class="d-stage-col" aria-label="Visualisation">
<div class="stage-tabs" role="tablist" aria-label="Visualisation type">
<button class="stage-tab" role="tab" data-view="3d" aria-selected="true">3D property field</button>
<button class="stage-tab" role="tab" data-view="renders" aria-selected="false">Renders</button>
<button class="stage-tab" role="tab" data-view="mesh" aria-selected="false">Mesh</button>
</div>
<div class="stage" id="stage" data-mode="3d">
<div id="viewer-host" class="viewer-host"></div>
<img id="stage-ph" class="stage-ph" alt="" hidden>
<div id="orbit-host" class="orbit-host"></div>
<div class="mesh-idle">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2 3 7v10l9 5 9-5V7z"/><path d="M3 7l9 5 9-5M12 12v10"/></svg>
<p><strong>Render mesh</strong><br><span id="mesh-size">…</span></p>
<p class="mesh-warn" id="mesh-warn" hidden></p>
<button class="btn btn-primary" type="button" id="mesh-load">Load mesh</button>
</div>
<div id="mesh-progress" class="mesh-progress" hidden></div>
<div id="legend" class="legend" hidden></div>
<div id="vox-tip" class="tip" hidden></div>
<div id="stage-msg" class="stage-msg"></div>
<div class="stage-spinner" aria-hidden="true"></div>
</div>
<div class="stage-status" id="stage-status" aria-live="polite"></div>
<div class="stage-controls" id="stage-controls">
<div class="ctl-row" id="ctl-3d">
<div class="seg" id="ctl-color" role="group" aria-label="Colour by">
<button type="button" data-color="E" aria-pressed="true" title="Young's modulus"><i class="sym">E</i></button>
<button type="button" data-color="nu" aria-pressed="false" title="Poisson's ratio"><i class="sym">ν</i></button>
<button type="button" data-color="rho" aria-pressed="false" title="Density"><i class="sym">ρ</i></button>
<button type="button" data-color="part" aria-pressed="false">Part</button>
<button type="button" data-color="fam" aria-pressed="false">Family</button>
</div>
<div class="seg" id="ctl-range" role="group" aria-label="Colour scale">
<button type="button" data-range="global" aria-pressed="true" title="Same colour scale for every object">Global</button>
<button type="button" data-range="object" aria-pressed="false" title="Stretch the colour scale to this object">Object</button>
</div>
<span class="ctl-spacer"></span>
<button class="btn btn-sm" type="button" id="ctl-isolate" aria-pressed="false" hidden>Isolate part</button>
<button class="btn btn-sm" type="button" id="ctl-rotate" aria-pressed="true" title="Auto-rotate">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M21 12a9 9 0 1 1-3-6.7M21 4v5h-5"/></svg><span>Rotate</span>
</button>
<button class="btn btn-sm" type="button" id="ctl-reset" title="Reset camera">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h4M17 12h4M12 3v4M12 17v4"/><circle cx="12" cy="12" r="3"/></svg><span>Reset</span>
</button>
<button class="btn btn-sm" type="button" id="ctl-png" title="Save the current view as PNG">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"/></svg><span>PNG</span>
</button>
</div>
<div class="ctl-row">
<div class="ctl-group" id="ctl-slice">
<span class="ctl-label">Slice</span>
<label class="select select-sm"><span class="sr-only">Slice axis</span>
<select id="slice-axis" aria-label="Slice axis"><option value="0">X</option><option value="1">Y</option><option value="2">Z</option></select>
</label>
<input type="range" id="slice" min="0" max="100" value="100" aria-label="Slice position">
<span id="slice-val" class="ctl-val">off</span>
<button class="icon-btn sm" type="button" id="slice-flip" aria-pressed="false" title="Cut from the other side" aria-label="Flip slice direction"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 7h11l-3-3M17 17H6l3 3"/></svg></button>
</div>
<div class="ctl-group" id="ctl-variant">
<span class="ctl-label">Orientation</span>
<div class="seg" role="group" aria-label="Augmentation variant">
<button type="button" data-var="0" aria-pressed="true">Canonical</button>
<button type="button" data-var="1" aria-pressed="false">Rot. 1</button>
<button type="button" data-var="2" aria-pressed="false">Rot. 2</button>
</div>
</div>
</div>
<div class="ctl-row" id="ctl-renders" hidden>
<button class="btn btn-sm" type="button" id="ctl-spin" aria-pressed="false">Turntable</button>
</div>
</div>
</section>
<section class="d-info-col" aria-label="Object details">
<div class="d-summary" id="d-summary"></div>
<h3 class="d-h3">Parts &amp; materials</h3>
<ol class="parts" id="d-parts"></ol>
</section>
</div>
</div>
</div>
<script type="module" src="assets/app.js"></script>
</body>
</html>