Spaces:
Running
Running
Isaac Sim thumbnails, dark and light versions that follow the theme
Browse filesFiles changed (6)
34 unmodified lines3536373834 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -text*.glb filter=lfs diff=lfs merge=lfs -text*.webp filter=lfs diff=lfs merge=lfs -textenv/small_hangar_02_2k.exr filter=lfs diff=lfs merge=lfs -text29 unmodified lines3031323334333435363717 unmodified lines5556575859605859606162636465663 unmodified lines7071727073747576777829 unmodified lines## How it works
The page is static: `index.html`, `app.js` and `style.css` read `data/catalog.json`, and`viewer.js` (three.js) shows the 3D previews. Thumbnails and downloads come straight fromthe dataset, pinned to the commit the catalog was built from. The dataset is only read,`viewer.js` (three.js) shows the 3D previews. Downloads come straight from the dataset,pinned to the commit the catalog was built from. The dataset is only read,never changed.
- `tools/build_catalog.py` builds `data/catalog.json` from each package's version and the17 unmodified lines- `viewer.js` lights models with the HDRI `env/small_hangar_02_1k.hdr` (Poly Haven, CC0; lighting and reflections only, the background stays grey). See-through shells render as clear glass and whatever sits inside them draws first, so liquids show from every angle.- `tools/render_thumbs.py` renders `previews/thumbs/<asset>.webp`: 640 px studio thumbnails (Blender Cycles, transparent background, contact shadow) from the preview GLBs. It only renders missing or outdated ones.- Thumbnails are Isaac Sim (RTX path-traced) renders of the real USD packages, made by `tools/isaac_thumbs.py` on a GPU machine, one per theme: `previews/thumbs/<asset>.webp` (dark, on the card colour #1a1a1a) and `previews/thumbs-light/<asset>.webp` (grey studio floor with a grid). Lighting is the same HDRI as the 3D viewer; settings and look are described in the script. `tools/render_thumbs.py` (Blender, from the preview GLBs, transparent background) is the fallback for a new asset when no GPU machine is at hand.
## Updating
3 unmodified lineshf download projectsim/simready-library --repo-type space --local-dir simready-librarycd simready-libraryHF_TOKEN=$(hf auth token) uv run tools/make_previews.pypython3 tools/render_thumbs.py# thumbnails: on a GPU machine with Isaac Sim 6.x and the package folders of the new assets# OMNI_KIT_ACCEPT_EULA=YES python isaac_thumbs.py <assets_dir> out env/small_hangar_02_2k.exr <asset> ...# then copy out/dark/*.webp to previews/thumbs/ and out/light/*.webp to previews/thumbs-light/HF_TOKEN=$(hf auth token) uv run tools/make_scene_previews.py # only when scenes changeHF_TOKEN=$(hf auth token) uv run tools/build_catalog.pyhf upload projectsim/simready-library . --repo-type space --commit-message "Update catalog"241 unmodified lines242243244245245246247248241 unmodified linesasync function getViewer() { if (viewer || viewerFailed) return viewer; try { const { createViewer } = await import(signed("./viewer.js?v=28")); const { createViewer } = await import(signed("./viewer.js?v=29")); viewer = createViewer(); viewer.setTheme(theme()); } catch (e) {7 unmodified lines8910111112131469 unmodified lines848586878788897 unmodified lines <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=Plus+Jakarta+Sans:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap"> <link rel="stylesheet" href="style.css?v=28"> <link rel="stylesheet" href="style.css?v=29"> <script type="importmap"> { "imports": { "three": "https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js",69 unmodified lines </aside> </div>
<script src="app.js?v=28"></script> <script src="app.js?v=29"></script></body></html>.gitattributes+1
README.md+11-6
app.js+1-1
data/catalog.json
env/small_hangar_02_2k.exrAdded
Large File Pointer Details
- SHA256: 47b4f3424ea01a2fe3d6183dde42c653550532f453317589e9cc9e5fc4b87531
- Pointer size: 132 Bytes
- Size of remote file: 6.31 MB
index.html+2-2