princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.14k stars 430 forks source link

Support for exporting gltf/glb file formats #248

Open alexanderjophus opened 3 weeks ago

alexanderjophus commented 3 weeks ago

Similar to the other exporters, it would be amazing to see an exporter for gltf/glb.

I've cloned the repo and may be able to work on it (but my python is rusty), helpful resource for anyone interested in taking this up: https://gltf-viewer.donmccurdy.com/

alexanderjophus commented 2 weeks ago

I tried working on this. I've got a few leads as to why it's not working perfectly for me, but I'm new to blender, and not great at python so some may be red herrings.

I can push up a branch with the changes I made, but essentially it adds glb/gltf as -f options, and adds them to the export_usd bool, finally uses this exporter

  1. Following this video, I still only see the placeholders (or nothing), but never the actual generated entity.

  2. I get an error midway through the exporting;

    11:01:45 | ERROR: Draco mesh compression is not available because library could not be found at ${location}