Keep the 3D files in Google Drive and put only the preview pictures on your WordPress site. A small nightly script links the two together.
The task
Anyone who explores the OpenSim Hypergrid ends up collecting things: furniture, buildings, plants and props, often saved as Collada (.dae) mesh files with their texture images. After a while the collection becomes a loose pile of folders on a PC. It’s hard to browse, easy to lose, and awkward to share.
The goal here is a browsable catalogue with these features:
- Every object has a picture, a descriptive name and a category.
- It’s private for now, so only the owner can download the files.
- It can be shared later without rebuilding anything.
- Adding new objects is close to automatic.
- The web server’s disk isn’t filled up with large model files.
The solution at a glance
The solution has three parts, and each does the job it’s best at:
| Part | What it holds | Why |
|---|---|---|
| Google Drive | Every object folder: the .dae, its textures and a preview picture |
Cheap, large storage you already pay for, with private sharing built in |
| WooCommerce on WordPress | One product page per object: preview picture, name, category, details | A ready-made catalogue with categories, search, filters and members’ options |
| A nightly sync script | Nothing permanent; it links the two | It turns new Drive folders into product pages without any manual work |
You add objects by dropping folders into Google Drive. The next morning, they appear in the catalogue. Each product page has a View on Google Drive button that opens that object’s folder, and Drive itself decides who is allowed in.
Why not store the models on the web server?
You could upload every model to WordPress, but it’s the most expensive way to do it:
- Disk space: mesh files and textures add up quickly. A few hundred objects can run to many gigabytes, and a small virtual server usually has only tens of gigabytes free. That space is shared with the website, its database and anything else the server runs, such as an OpenSim grid.
- Backups: if your nightly backup includes the WordPress uploads folder, every model is copied again each night. Backups get bigger and slower, and they use more of your off-site storage.
- Cost: when the server fills up, the next step is a bigger server, which costs more every month. When a cloud storage plan fills up, the next tier is usually far cheaper per gigabyte.
The preview pictures are small, so keeping them on the website costs almost nothing. They’re what visitors see first anyway.
Step 1: Organise the folders in Google Drive
The folder layout is what makes everything automatic. The script reads it like this:
- the first folder level is the category
- the second level is one object
- the folder name becomes the product title
Collection/
├── Furniture/
│ ├── Rustic Wooden Bench – oak, 2 seats/
│ │ ├── bench.dae
│ │ ├── oak_diffuse.png
│ │ ├── oak_normal.png
│ │ └── preview.jpg
│ └── Victorian Armchair – green velvet/
│ ├── armchair.dae
│ ├── velvet.png
│ └── preview.jpg
├── Plants/
│ └── Potted Palm – tall, low poly/
│ └── …
└── Buildings/
└── …
Rules for each object folder:
- Name it with a useful description. Include what it is, plus a detail or two you’d search for (material, size, style). For example,
Victorian Armchair – green velvetrather thanchair2. - Put the
.daeand all its textures inside. Keep the texture file names exactly as the.daerefers to them, or the model will load without its textures. - Add one
preview.jpg. It’s a snapshot of the object, such as an in-world photo or a render. This is the picture shown in the catalogue. - Optionally add a
notes.txt. The script can use it as the product description: the original creator, the grid it came from, the licence, and the land impact or polygon count.
Step 2: Set up WooCommerce as a show-only catalogue
WooCommerce is built for selling, but it makes a good catalogue with a few settings:
- Leave the price empty. A product with no price has no Add to cart button. Visitors see the picture, title and description, and nothing else. That gives you a catalogue with no extra plugin.
- Use Private for anything not ready to show. A product set to Private is visible only to logged-in administrators. That’s handy while you tidy up descriptions.
- Create the categories once to match the category folders in Drive: Furniture, Plants, Buildings and so on. The script can also create missing ones automatically.
- Add attributes for the details you’ll want to filter by later: the original creator, the grid it came from, the licence, and the land impact.
WooCommerce’s “My Account” page is only a login area. If you later want a true members-only section, add a membership plugin at that point. Nothing in this setup needs to change for it.
Step 3: The nightly sync
A short script on the web server does the joining. It uses two free command-line tools:
- rclone to read Google Drive
- WP-CLI to create WordPress and WooCommerce content
Scheduled with cron, it runs once a night and works through these steps:
- List the object folders. rclone lists every folder two levels under
Collection/, with Google Drive’s unique ID for each folder. - Skip what’s already done. Each product stores its folder’s Drive ID as its SKU. WooCommerce won’t allow two products with the same SKU, so an object can never be added twice, even if it’s renamed.
- Fetch only the preview. It copies
preview.jpg(andnotes.txtif there is one) to a temporary folder. The model and textures stay in Drive. - Import the picture into the WordPress media library.
- Create the product with these settings:
- type External/Affiliate product
- the folder name as the title
- the category folder as the category
- the preview as the main image
notes.txtas the description- the product URL set to the object’s Drive folder, with the button text View on Google Drive
- Clean up the temporary files and write a line to a log, so you can check what was added.
The main commands look like this:
# 1. List object folders with their Drive IDs (path;id)
rclone lsf "gdrive:Collection" --dirs-only --max-depth 2 --format "pi" --separator ";"
# 3. Copy just the preview picture of one object
rclone copyto "gdrive:Collection/Furniture/Rustic Wooden Bench – oak, 2 seats/preview.jpg" /tmp/catalogue/preview.jpg
# 4. Add it to the media library and keep its ID
wp media import /tmp/catalogue/preview.jpg --porcelain
# 5. Create the catalogue entry
wp wc product create --user=1 --type=external \
--name="Rustic Wooden Bench – oak, 2 seats" --sku="<drive folder id>" \
--categories='[{"id":<category id>}]' --images='[{"id":<media id>}]' \
--product_url="https://drive.google.com/drive/folders/<drive folder id>" \
--button_text="View on Google Drive"
The folder link follows Google Drive’s normal pattern, drive.google.com/drive/folders/<id>, so the script builds it from the folder ID. It doesn’t need to create a public share link.
Private now, shared later
Access is controlled entirely by Google Drive’s sharing settings, so the website never has to protect the files itself.
| Stage | Drive setting on the Collection folder | What visitors get |
|---|---|---|
| Private (the starting point) | Restricted: only you | Pictures and descriptions. The Drive button asks them to request access. |
| Selected friends | Shared with named Google accounts | Those people can open and download. Everyone else sees pictures only. |
| Fully shared | Anyone with the link can view | Everyone can open and download each object. |
Settings on the top folder flow down to every folder inside it, so one change shares the whole collection. You can also share just one category folder.
Google Drive offers a Download button on any folder and zips it automatically, so visitors get the model and its textures together without you zipping anything. Very popular files can occasionally hit Google’s download limits for a day. That’s rarely a problem for a hobby collection.
Tips and pitfalls
- The preview picture matters most. Texture files are flat images of wood grain or fabric and don’t show what the object looks like. A quick in-world snapshot against a plain background makes the catalogue far easier to browse.
- Check permission before you share. Objects collected around the Hypergrid come with all kinds of terms. Share only items that are clearly free to redistribute, such as full-permission freebies or Creative Commons licences, and record the creator and licence in
notes.txt. Anything you’re unsure of can stay in a separate folder that you never share. - Watch your Drive space. Your collection shares the plan’s space with everything else, including any server backups you send to Drive. If you also use Drive for backups, make sure old ones are deleted permanently. Otherwise they sit in the bin, still counting against your storage, for 30 days. With rclone, add
--drive-use-trash=falseto the delete commands. - Rename freely. Because products are matched by folder ID, not by name, renaming a folder in Drive won’t create a duplicate. The script can be extended to update the product title to match.
- Use web-safe names. Avoid
/,\,:and?in folder names. Dashes, commas and spaces are fine. - Optional 3D preview. Web browsers can’t display Collada directly. If you want visitors to spin an object on its page, convert the
.daeto.glb(Blender can batch this) and add a 3D viewer plugin to WooCommerce.
Summary
The heavy files live in cloud storage you already pay for. The website holds only light preview pictures and product pages, and a nightly script keeps the two in step. Adding to the catalogue means dropping a well-named folder with a preview.jpg into Drive. Sharing the collection later means changing one Drive setting, without touching the website or the server.













