Skip to content

Commit

Permalink
all files again
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Jul 29, 2023
1 parent e35ba79 commit 33b8ecf
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "submodules/glTF-Sample-Models"]
path = submodules/glTF-Sample-Models
url = https://github.com/needle-tools/glTF-Sample-Models.git
[submodule "submodules/three.js"]
path = submodules/three.js
url = https://github.com/needle-tools/three.js.git
43 changes: 27 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Asset Explorer

## Howto

This is currently quite hacky. Vanilla three doesn't run on node.
To run file conversion,
- open dynamicFiles.ts
- set the various "generate" flags at the top to true
- npm link /path/to/three/on/the/hacky/branch
- (optional) adjust the file slicing in dynamicFiles.ts to e.g. only test with a few
- npm run dev
- this will generate files. However, settings aren't good for actually using the server; local three doesn't work for some reason.

## TODO Hacks

- would be nice not having to hack three for nodejs support
- could probably mock ImageBitmapLoader instead of ImageLoader, maybe even from the outside
- currently can't import the better USDZExporter from needle-tools/engine (same problems running in node)
- copied it here but better would be one codecase

## Goals

- allow for multiple submodules and structure callbacks for each of them (where to find files and readmes)
Expand Down Expand Up @@ -33,28 +51,21 @@
- glTF-sample-models // model source
README.md
- Avocado // model name
Avocado.glb
Avocado.glb.png
README.md
- three-usdz // conversion step
- Avocado.glb
- Avocado.glb.png
- README.md
- Avocado.glb.three.usdz
- Avocado.glb.three.usdz.png
- three-glb // conversion step
- Avocado.glb.three.usdz.three.glb
- Avocado.glb.three.usdz.three.glb.png
- blender-glb
- Avocado.glb.three.usdz.blender.glb
- Avocado.glb.three.usdz.blender.glb.png
- blender-usdz
- Avocado.glb.three.usdz.three.glb
- Avocado.glb.three.usdz.three.glb.png
- Avocado.glb.three.usdz.blender.glb
- Avocado.glb.three.usdz.blender.glb.png
- Avocado.glb.blender.usdz
- Avocado.glb.blender.usdz.png
- blender-glb
- Avocado.glb.blender.usdz.blender.glb
- Avocado.glb.blender.usdz.blender.glb.png
- omniverse-usdz
- Avocado.glb.blender.usdz.blender.glb
- Avocado.glb.blender.usdz.blender.glb.png
- Avocado.glb.omniverse.usdz
- Avocado.glb.omniverse.usdz.png
- three-glb
- Avocado.glb.three.glb
- Avocado.glb.three.glb.png
- usd-wg-assets
Expand Down
2 changes: 1 addition & 1 deletion src/dynamicFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function collectFileInformation(runConversions = false) {

let files = globSync(sourceDir + "**/**.glb").sort();
// take only 1
//files = files.slice(0, 10);
// files = files.slice(6, 7);
const images = [];
// console.log("ALL FILES", files);

Expand Down
1 change: 1 addition & 0 deletions submodules/three.js
Submodule three.js added at 3bf679

0 comments on commit 33b8ecf

Please sign in to comment.