From 9b0ba44f4f5f4f163e034852eaaebb3f5d47d820 Mon Sep 17 00:00:00 2001 From: Kai Salmen Date: Sat, 6 Jan 2024 17:36:35 +0100 Subject: [PATCH] GitHub Pages: Add models --- README.md | 6 ++++-- .../examples/scripts/copyAssetsProduction.mts | 20 +++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b9b1ede..2b607e2 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # OBJLoader2 & OBJLoader2Parallel for three.js [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/kaisalmen/WWOBJLoader/blob/dev/LICENSE) -[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/kaisalmen/WWOBJLoader) [![WWOBJLoader](https://github.com/kaisalmen/WWOBJLoader/actions/workflows/actions.yml/badge.svg)](https://github.com/kaisalmen/WWOBJLoader/actions/workflows/actions.yml) +[![Github Pages](https://img.shields.io/badge/GitHub-Pages-blue?logo=github)](https://kaisalmen.github.io/WWOBJLoader) [![NPM Version](https://img.shields.io/npm/v/wwobjloader2.svg)](https://www.npmjs.com/package/wwobjloader2) -[![NPM Download](https://img.shields.io/npm/dt/wwobjloader2.svg)](https://www.npmjs.com/package/wwobjloader2) +[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/kaisalmen/WWOBJLoader) **OBJLoader2** is a loader for the **OBJ** file format. It is an alternative to [OBJLoader](https://github.com/mrdoob/three.js/blob/dev/examples/jsm/loaders/OBJLoader.js) included in [three.js](https://threejs.org). The loader and its parser can be used on Main via **OBJLoader2** or in parallel inside a web worker via **OBJLoader2Parallel**. @@ -47,6 +47,8 @@ If you want to get started see take a look at the following examples. They get m * OBJLoader2 in react with a .mtl material: [[html](https://github.com/kaisalmen/WWOBJLoader/blob/main/packages/examples/obj2_react-mtl.html)] [[tsx](https://github.com/kaisalmen/WWOBJLoader/blob/main/packages/examples/src/examples/ReactExampleMtl.tsx)] * AssetPipelineLoader basic example: [[html](https://github.com/kaisalmen/WWOBJLoader/blob/main/packages/examples/assetpipeline.html)] [[ts](https://github.com/kaisalmen/WWOBJLoader/blob/main/packages/examples/src/examples/AssetPipelineLoaderExample.ts)] +Try out all examples here: + ### Main Branch Main development now takes place on branch [main](https://github.com/kaisalmen/WWOBJLoader/tree/main). Tags identify the releases. The stable branch has been retired. diff --git a/packages/examples/scripts/copyAssetsProduction.mts b/packages/examples/scripts/copyAssetsProduction.mts index 92664a6..a415573 100644 --- a/packages/examples/scripts/copyAssetsProduction.mts +++ b/packages/examples/scripts/copyAssetsProduction.mts @@ -1,6 +1,22 @@ import shell from 'shelljs'; +shell.mkdir('-p', './production/models/obj/main/cerberus'); +shell.cp('-f', './models/obj/main/cerberus/*', './production/models/obj/main/cerberus/'); + shell.mkdir('-p', './production/worker/generated'); shell.cp('-f', './src/worker/generated/*.js', './production/worker/generated'); -shell.cp('-f', './models/obj/main/female02/*.jpg', './production/assets'); -shell.cp('-f', './models/obj/main/male02/*.jpg', './production/assets'); + +shell.mkdir('-p', './production/models/obj/main/female02'); +shell.cp('-f', './models/obj/main/female02/*', './production/models/obj/main/female02/'); + +shell.mkdir('-p', './production/models/obj/main/male02'); +shell.cp('-f', './models/obj/main/male02/*', './production/models/obj/main/male02/'); + +shell.mkdir('-p', './production/models/obj/main/ninja'); +shell.cp('-f', './models/obj/main/ninja/*', './production/models/obj/main/ninja/'); + +shell.mkdir('-p', './production/models/obj/main/verify'); +shell.cp('-f', './models/obj/main/verify/*', './production/models/obj/main/verify/'); + +shell.mkdir('-p', './production/models/obj/main/walt'); +shell.cp('-f', './models/obj/main/walt/*', './production/models/obj/main/walt/');