simready-library / README.md
volodymyrsvirhun's picture
Move linked joints together in the 3D view (Isaac mimic joints, e.g. the accordion coat rack)
96ebbc7 verified
|
Raw History Blame Contribute Delete
5.19 kB
---
title: projectsim SimReady Library
emoji: 📦
colorFrom: red
colorTo: gray
sdk: static
short_description: Browse projectsim's sim-ready objects for Isaac Sim in 3D
tags:
- robotics
- simulation
- simready
- isaac-sim
- openusd
- articulated
license: cc-by-4.0
---
# projectsim SimReady Library
Browse every object in [projectsim/simready-assets](https://huggingface.co/datasets/projectsim/simready-assets):
sim-ready OpenUSD assets for NVIDIA Isaac Sim, with physics and moving parts. Filter by
category, moving parts, size and mass, open any asset in 3D, move its doors, lids and
drawers, and copy the download command.
All assets are CC BY 4.0. Credit "projectsim by Kaedim".
Need more variations, or your own objects? See the
[projectsim API](https://docs.projectsim.ai/getting-started/quickstart?utm_source=hf_space&utm_medium=readme&utm_content=simready-library)
or email team@projectsim.ai.
## 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. 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 the
SimReady metadata in its root USD layer: category, Wikidata class, mass, size, rigid
bodies, joints, and whether the base is fixed to the world. `tools/groups.json` cleans
up the categories and groups them. Metadata is cached in `tools/meta_cache.json` by
package version, so a rebuild only downloads new or changed packages.
- `tools/hidden.json` lists packages the Library leaves out (held back until their physics
tests pass). Delete a line to show that asset again; the update steps rebuild its preview.
- `tools/make_previews.py` makes `previews/<asset>.glb` (a small Draco GLB made with
Blender from the USD, textures at 1024 px) and `previews/<asset>.json` (each hinge and
slider: the part it moves, pivot, axis and range). Cached in `tools/preview_cache.json`.
Joints linked in Isaac Sim (PhysX mimic joints, e.g. the accordion coat rack's scissor
links) also record the joint they follow and the ratio, so the 3D view moves them together.
`--rig-only` rewrites just the `.json` files (no Blender) when only joint data changes.
- Scenes (the **Scenes** group) come from the gated dataset
[projectsim/scenes-and-worlds](https://huggingface.co/datasets/projectsim/scenes-and-worlds),
listed in `tools/scenes.json`. `tools/make_scene_previews.py` downloads each scene's GLB and
preview image (read only, needs an HF token with access) and writes a smaller GLB to
`previews/scenes/` and a thumbnail to `previews/thumbs/` (name scenes to do only those). A
scene with `"room": false` is a layout without walls, so the 3D view orbits it from outside
instead of standing inside a room.
- The detail panel ends with Copy URL and Download. Download zips the asset's package folder in
the browser (files fetched from the dataset at the catalog's commit, `.metadata/` reports left
out); its menu also copies the `hf download` command. Scenes link to their gated dataset.
- `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.
- Thumbnails are Isaac Sim (RTX path-traced) renders of the real USD packages, made by
`tools/isaac_thumbs.py` on a GPU machine, two per asset: `previews/thumbs-light/<asset>.webp`
(grey studio floor with a grid, shown by default) and `previews/thumbs/<asset>.webp` (dark,
on #1a1a1a). The page itself is always dark; the header switch only swaps the thumbnails. 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
After new packages are uploaded to the dataset:
```bash
hf download projectsim/simready-library --repo-type space --local-dir simready-library
cd simready-library
HF_TOKEN=$(hf auth token) uv run tools/make_previews.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 [scene ...] # only when scenes change
HF_TOKEN=$(hf auth token) uv run tools/build_catalog.py
hf upload projectsim/simready-library . --repo-type space --commit-message "Update catalog"
```
`make_previews.py` needs Blender 5 (`--blender /path/to/blender` if it isn't in
/Applications). The token only raises Hugging Face's download rate limit.
If the build warns about a category it can't place, add it to `tools/groups.json`
(under `aliases` to rename it, or under `categories` to give it a group) and run it again.