mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-01-19 20:25:01 +00:00
add camera controls to README
This commit is contained in:
parent
2a7af04023
commit
c20ca94953
19
README.md
19
README.md
|
|
@ -4,6 +4,25 @@
|
|||
|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
👉 **[Open the app!](https://exogen.github.io/t2-mapper/)**
|
||||
|
||||
### Camera Controls
|
||||
|
||||
Click inside the map preview area to capture the mouse.
|
||||
|
||||
| Key | Action |
|
||||
|-----|--------|
|
||||
| <kbd>W</kbd> | Forward |
|
||||
| <kbd>A</kbd> | Left |
|
||||
| <kbd>S</kbd> | Backward |
|
||||
| <kbd>D</kbd> | Right |
|
||||
| <kbd>Space</kbd> | Up |
|
||||
| <kbd>Shift</kbd> | Down |
|
||||
| <kbd>Esc</kbd> | Release mouse |
|
||||
|
||||
|
||||
## Development
|
||||
|
||||
Install dependencies:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
import fs from "node:fs/promises";
|
||||
import { execFileSync } from "node:child_process";
|
||||
|
||||
const blender = `/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
const BLENDER_PATH =
|
||||
process.env.BLENDER_PATH ||
|
||||
`/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
|
||||
/**
|
||||
* Find all .dif files in `public/base` and convert them to glTF.
|
||||
|
|
@ -10,7 +12,7 @@ async function run() {
|
|||
for await (const inFile of fs.glob("public/base/**/*.dif")) {
|
||||
const outFile = inFile.replace(/\.dif$/i, ".gltf");
|
||||
execFileSync(
|
||||
blender,
|
||||
BLENDER_PATH,
|
||||
[
|
||||
"--background",
|
||||
"--python",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
import fs from "node:fs/promises";
|
||||
import { execFileSync } from "node:child_process";
|
||||
|
||||
const blender = `/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
const BLENDER_PATH =
|
||||
process.env.BLENDER_PATH ||
|
||||
`/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
|
||||
/**
|
||||
* Find all .dts files in `public/base` and convert them to glTF.
|
||||
|
|
@ -10,7 +12,7 @@ async function run() {
|
|||
for await (const inFile of fs.glob("public/base/**/*.dts")) {
|
||||
const outFile = inFile.replace(/\.dts$/i, ".gltf");
|
||||
execFileSync(
|
||||
blender,
|
||||
BLENDER_PATH,
|
||||
[
|
||||
"--background",
|
||||
"--python",
|
||||
|
|
|
|||
Loading…
Reference in a new issue