File size: 3,715 Bytes
885ffaa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Scanned Objects GLB</title>
<meta name="description" content="Search and orbit web-ready Google Scanned Objects (glb, meshopt, WebP) at real-world scale.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<script type="importmap">
{
  "imports": {
    "three": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.module.js",
    "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.180.0/examples/jsm/"
  }
}
</script>
</head>
<body>
<header class="top">
  <a class="brand" href="#/">Scanned Objects GLB</a>
  <p class="summary">1,033 real household scans at real size, web-ready. <strong>13.7 GB → 344.8 MB</strong>.</p>
  <a class="dataset-link" href="https://huggingface.co/datasets/codepawl/scanned-objects-glb" target="_blank" rel="noopener">Dataset</a>
</header>

<main id="browse" class="browse">
  <div class="filters">
    <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="query" type="search" placeholder="Search 1,033 objects" autocomplete="off" spellcheck="false">
    </label>
    <select id="category" aria-label="Category"></select>
    <span id="count" class="count"></span>
  </div>
  <ul id="grid" class="grid"></ul>
  <div id="sentinel" class="sentinel"></div>
  <p id="empty" class="empty" hidden>No object matches that search.</p>
</main>

<main id="detail" class="detail" hidden>
  <a class="back" href="#/">
    <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 6l-6 6 6 6"/></svg>
    All objects
  </a>
  <div class="detail-body">
    <div class="stage">
      <canvas id="view"></canvas>
      <div id="stage-status" class="stage-status"></div>
      <p class="stage-hint">Drag to orbit, scroll to zoom</p>
    </div>
    <aside class="facts">
      <h1 id="asset-name" class="asset-name"></h1>
      <p id="asset-category" class="asset-category"></p>
      <div class="ratio">
        <span id="ratio-value" class="ratio-value"></span>
        <span class="ratio-label">than the source OBJ and PNG</span>
      </div>
      <dl id="stats" class="stats"></dl>
      <div class="actions">
        <a id="download" class="button primary" download>
          <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11m-5-5 5 5 5-5M5 20h14"/></svg>
          <span id="download-label">Download .glb</span>
        </a>
        <button id="copy-code" class="button" type="button">
          <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3"/></svg>
          <span id="copy-label">Copy three.js code</span>
        </button>
      </div>
      <a id="source-link" class="source-link" target="_blank" rel="noopener">Original on Gazebo Fuel</a>
    </aside>
  </div>
</main>

<footer class="credit">
  Scans by Google, from <a href="https://app.gazebosim.org/GoogleResearch/fuel/collections/Scanned%20Objects%20by%20Google%20Research" target="_blank" rel="noopener">Google Scanned Objects</a>,
  CC BY 4.0. Converted and compressed by <a href="https://huggingface.co/codepawl" target="_blank" rel="noopener">CodePawl</a>.
  Brands and logos on the packaging belong to their owners.
</footer>
<script type="module" src="./app.js"></script>
</body>
</html>