Skip to content

Commit

Permalink
GitHub Pages: Add models
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Salmen committed Jan 6, 2024
1 parent 7151ae2 commit 9b0ba44
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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**.

Expand Down Expand Up @@ -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: <https://kaisalmen.github.io/WWOBJLoader>

### 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.
Expand Down
20 changes: 18 additions & 2 deletions packages/examples/scripts/copyAssetsProduction.mts
Original file line number Diff line number Diff line change
@@ -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/');

0 comments on commit 9b0ba44

Please sign in to comment.