Compare commits
6 Commits
paul/wip
...
1b97c989db
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b97c989db | |||
| 4a9bca98ef | |||
| 29f5e84312 | |||
| ee7f5e9595 | |||
| 6966c5d45f | |||
| 33733c6fe4 |
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
FROM node:23-alpine as skycraft-deps
|
||||||
|
|
||||||
|
WORKDIR /workspace/skycraft
|
||||||
|
ADD ./skycraft/package.json ./
|
||||||
|
ADD ./skycraft/yarn.lock ./
|
||||||
|
RUN yarn install
|
||||||
|
|
||||||
|
|
||||||
|
FROM skycraft-deps as skycraft-build
|
||||||
|
|
||||||
|
ADD . /workspace
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
|
||||||
|
FROM skycraft-deps as skycraft-dev
|
||||||
|
|
||||||
|
ENTRYPOINT ["yarn"]
|
||||||
|
CMD ["run", "serve"]
|
||||||
|
|
||||||
|
|
||||||
|
FROM scratch as skycraft-export
|
||||||
|
|
||||||
|
COPY --from=skycraft-build /workspace/skycraft/app.js /
|
||||||
|
COPY --from=skycraft-build /workspace/skycraft/static/* /
|
||||||
31
Makefile
Normal file
31
Makefile
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
export DOCKER_BUILDKIT=1
|
||||||
|
|
||||||
|
skycraft-dev-image := skycraft-dev
|
||||||
|
|
||||||
|
.PHONY: skycraft
|
||||||
|
skycraft: ## build skycraft
|
||||||
|
docker build \
|
||||||
|
--output=out/skycraft \
|
||||||
|
--target=skycraft-export \
|
||||||
|
.
|
||||||
|
|
||||||
|
.PHONY: skycraft-dev-image
|
||||||
|
skycraft-dev-image:
|
||||||
|
docker build \
|
||||||
|
-t $(skycraft-dev-image) \
|
||||||
|
--target=skycraft-dev \
|
||||||
|
.
|
||||||
|
|
||||||
|
.PHONY: skycraft-dev
|
||||||
|
skycraft-dev: skycraft-dev-image
|
||||||
|
docker run -it --rm \
|
||||||
|
-v .:/workspace \
|
||||||
|
-v /workspace/skycraft/node_modules \
|
||||||
|
-p 8000:8000 \
|
||||||
|
$(skycraft-dev-image)
|
||||||
|
|
||||||
|
.PHONY: help
|
||||||
|
help: ## Show this help
|
||||||
|
@echo Noteworthy targets:
|
||||||
|
@egrep '^[a-zA-Z_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||||
|
.DEFAULT_GOAL := help
|
||||||
8
common/package.json
Normal file
8
common/package.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"name": "wmc-common",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"esbuild": "^0.14.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -86,6 +86,42 @@ export function orientationOnly(m) {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function fromBases(x, y, z) {
|
||||||
|
return [
|
||||||
|
x[0], x[1], x[2], 0,
|
||||||
|
y[0], y[1], y[2], 0,
|
||||||
|
z[0], z[1], z[2], 0,
|
||||||
|
0, 0, 0, 1,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
export function positionOnly(m) {
|
||||||
|
return [
|
||||||
|
1, 0, 0, 0,
|
||||||
|
0, 1, 0, 0,
|
||||||
|
0, 0, 1, 0,
|
||||||
|
m[12], m[13], m[14], m[15],
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setOrientation(m, o) {
|
||||||
|
return [
|
||||||
|
o[0], o[1], o[2], m[3],
|
||||||
|
o[4], o[5], o[6], m[7],
|
||||||
|
o[8], o[9], o[10], m[11],
|
||||||
|
m[12], m[13], m[14], m[15],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setPosition(m, x) {
|
||||||
|
return [
|
||||||
|
m[0], m[1], m[2], m[3],
|
||||||
|
m[4], m[5], m[6], m[7],
|
||||||
|
m[8], m[9], m[10], m[11],
|
||||||
|
x[0], x[1], x[2], 1,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
export function inverse(m) {
|
export function inverse(m) {
|
||||||
const t = apply(m, [0, 0, 0, 1]);
|
const t = apply(m, [0, 0, 0, 1]);
|
||||||
const r = orientationOnly(m);
|
const r = orientationOnly(m);
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import { makeFace } from '../geometry';
|
import { makeFace } from 'wmc-common/geometry';
|
||||||
import * as linalg from './linalg';
|
import * as linalg from './linalg';
|
||||||
import {memoize} from '../memoize';
|
import {memoize} from 'wmc-common/memoize';
|
||||||
|
|
||||||
type direction = ('-x' | '+x' | '-y' | '+y' | '-z' | '+z');
|
type direction = ('-x' | '+x' | '-y' | '+y' | '-z' | '+z');
|
||||||
|
|
||||||
const BlockType = {
|
export const BlockType = {
|
||||||
UNDEFINED: 0,
|
UNDEFINED: 0,
|
||||||
AIR: 1,
|
AIR: 1,
|
||||||
DIRT: 2,
|
DIRT: 2,
|
||||||
@@ -18,7 +18,6 @@ const BlockType = {
|
|||||||
|
|
||||||
const CHUNKSIZE = 32;
|
const CHUNKSIZE = 32;
|
||||||
|
|
||||||
|
|
||||||
/** seed: some kind of number uniquely defining the body
|
/** seed: some kind of number uniquely defining the body
|
||||||
* x, y, z: space coordinates in the body's frame
|
* x, y, z: space coordinates in the body's frame
|
||||||
*
|
*
|
||||||
@@ -304,10 +303,115 @@ function getBodyChunks(seed: number) {
|
|||||||
return chunks;
|
return chunks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** fake chunk map re-using the memoize */
|
||||||
|
class ChunkMap {
|
||||||
|
constructor(seed) {
|
||||||
|
this.seed = seed;
|
||||||
|
}
|
||||||
|
|
||||||
|
get(i, j, k) {
|
||||||
|
return getChunk(this.seed, i, j, k);
|
||||||
|
}
|
||||||
|
|
||||||
|
has(i, j, k) {
|
||||||
|
return getChunk(this.seed, i, j, k) !== undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export function getBodyGeometry(seed: number) {
|
export function getBodyGeometry(seed: number) {
|
||||||
const faces = getBodyChunks(seed)
|
const faces = getBodyChunks(seed)
|
||||||
.filter(chunk => !chunk.underground)
|
.filter(chunk => !chunk.underground)
|
||||||
.map(chunk => [...makeChunkFaces(chunk)]);
|
.map(chunk => [...makeChunkFaces(chunk)]);
|
||||||
|
|
||||||
return faces.reduce((a, b) => a.concat(b));
|
return {
|
||||||
}
|
faces: faces.reduce((a, b) => a.concat(b)),
|
||||||
|
chunkMap: new ChunkMap(seed),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function blockLookup(chunkMap, x, y, z) {
|
||||||
|
const chunki = Math.floor((x + CHUNKSIZE / 2) / CHUNKSIZE);
|
||||||
|
const chunkj = Math.floor((y + CHUNKSIZE / 2) / CHUNKSIZE);
|
||||||
|
const chunkk = Math.floor((z + CHUNKSIZE / 2) / CHUNKSIZE);
|
||||||
|
|
||||||
|
const chunk = chunkMap.get(chunki, chunkj, chunkk);
|
||||||
|
if (chunk === undefined) {
|
||||||
|
return {
|
||||||
|
type: BlockType.UNDEFINED,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const i = Math.floor(x - chunk.position[0] + 0.5);
|
||||||
|
const j = Math.floor(y - chunk.position[1] + 0.5);
|
||||||
|
const k = Math.floor(z - chunk.position[2] + 0.5);
|
||||||
|
|
||||||
|
const blockIndex = CHUNKSIZE * (CHUNKSIZE * i + j) + k;
|
||||||
|
|
||||||
|
return {
|
||||||
|
type: chunk.blocks[blockIndex],
|
||||||
|
centerPosition: [
|
||||||
|
chunk.position[0] + i,
|
||||||
|
chunk.position[1] + j,
|
||||||
|
chunk.position[2] + k,
|
||||||
|
],
|
||||||
|
chunk,
|
||||||
|
blockIndex,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function movePoint(p, s, u) {
|
||||||
|
return linalg.add(p, linalg.scale(u, s));
|
||||||
|
}
|
||||||
|
|
||||||
|
function minIndex(arr) {
|
||||||
|
return arr.reduce((min, val, i) => val >= arr[min] ? min : i, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Imported from wmc, looks like it calculates the distance to the next grid block */
|
||||||
|
function rayThroughGrid(origin, direction, maxDistance) {
|
||||||
|
const range = i => [...Array(i).keys()];
|
||||||
|
|
||||||
|
const nextGrid = range(3).map(i => direction[i] > 0 ?
|
||||||
|
Math.floor(origin[i] + 0.5) + 0.5 :
|
||||||
|
Math.floor(origin[i] + 0.5) - 0.5);
|
||||||
|
const distanceToGrid = range(3).map(i => (nextGrid[i] - origin[i]) / direction[i])
|
||||||
|
.map(v => v === 0.0 ? Number.POSITIVE_INFINITY : v);
|
||||||
|
const axis = minIndex(distanceToGrid);
|
||||||
|
const rayLength = distanceToGrid[axis];
|
||||||
|
|
||||||
|
if (rayLength > maxDistance) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
const position = movePoint(origin, distanceToGrid[axis], direction);
|
||||||
|
const normal = range(3).map(i => i === axis ? -Math.sign(direction[i]) : 0);
|
||||||
|
|
||||||
|
return {position, normal, distance: rayLength};
|
||||||
|
}
|
||||||
|
|
||||||
|
/** needs a blockLookup function, finds the first non-air block along a ray */
|
||||||
|
export function castRay(chunkMap, origin, direction, maxDistance=CHUNKSIZE) {
|
||||||
|
let currentPoint = origin;
|
||||||
|
|
||||||
|
while (maxDistance > 0) {
|
||||||
|
const {position, normal, distance} = rayThroughGrid(currentPoint, direction, maxDistance);
|
||||||
|
|
||||||
|
if (position === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
maxDistance -= distance;
|
||||||
|
currentPoint = movePoint(position, 0.01, direction);
|
||||||
|
const blockCenter = movePoint(position, -0.5, normal);
|
||||||
|
const block = blockLookup(chunkMap, ...blockCenter);
|
||||||
|
|
||||||
|
if (block.type === BlockType.AIR) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
block,
|
||||||
|
normal,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {makeBufferFromFaces } from '../geometry';
|
import {makeBufferFromFaces } from 'wmc-common/geometry';
|
||||||
import { loadTexture, makeProgram } from '../gl';
|
import { loadTexture, makeProgram } from 'wmc-common/gl';
|
||||||
import * as linalg from './linalg';
|
import * as linalg from './linalg';
|
||||||
import * as se3 from '../se3';
|
import * as se3 from 'wmc-common/se3';
|
||||||
import { makeOrbitObject } from './orbit';
|
import { makeOrbitObject } from './orbit';
|
||||||
|
|
||||||
const VSHADER = `
|
const VSHADER = `
|
||||||
@@ -15,12 +15,14 @@ uniform mat4 uView;
|
|||||||
uniform vec3 uLightDirection;
|
uniform vec3 uLightDirection;
|
||||||
uniform float uAmbiantLight;
|
uniform float uAmbiantLight;
|
||||||
uniform vec3 uGlowColor;
|
uniform vec3 uGlowColor;
|
||||||
|
uniform vec3 uSpecularColor;
|
||||||
|
|
||||||
varying highp vec2 vTextureCoord;
|
varying highp vec2 vTextureCoord;
|
||||||
varying lowp vec3 vLighting;
|
varying lowp vec3 vLighting;
|
||||||
varying lowp vec3 vRay;
|
varying lowp vec3 vRay;
|
||||||
varying lowp vec3 vLightDir;
|
varying lowp vec3 vLightDir;
|
||||||
varying lowp vec3 vNormal;
|
varying lowp vec3 vNormal;
|
||||||
|
varying lowp vec3 vSpecularColor;
|
||||||
|
|
||||||
highp mat3 transpose(in highp mat3 inmat) {
|
highp mat3 transpose(in highp mat3 inmat) {
|
||||||
highp vec3 x = inmat[0];
|
highp vec3 x = inmat[0];
|
||||||
@@ -50,6 +52,7 @@ void main() {
|
|||||||
vRay = -normalize((uModel * vec4(aPosition, 1.0)).xyz - camPos);
|
vRay = -normalize((uModel * vec4(aPosition, 1.0)).xyz - camPos);
|
||||||
vLightDir = -uLightDirection;
|
vLightDir = -uLightDirection;
|
||||||
vNormal = normal;
|
vNormal = normal;
|
||||||
|
vSpecularColor = uSpecularColor;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -61,6 +64,7 @@ varying lowp vec3 vLighting;
|
|||||||
varying lowp vec3 vRay;
|
varying lowp vec3 vRay;
|
||||||
varying lowp vec3 vLightDir;
|
varying lowp vec3 vLightDir;
|
||||||
varying lowp vec3 vNormal;
|
varying lowp vec3 vNormal;
|
||||||
|
varying lowp vec3 vSpecularColor;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
highp vec4 color = texture2D(uSampler, vTextureCoord);
|
highp vec4 color = texture2D(uSampler, vTextureCoord);
|
||||||
@@ -69,7 +73,7 @@ void main() {
|
|||||||
}
|
}
|
||||||
lowp vec3 specularDir = 2.0 * dot(vLightDir, vNormal) * vNormal - vLightDir;
|
lowp vec3 specularDir = 2.0 * dot(vLightDir, vNormal) * vNormal - vLightDir;
|
||||||
lowp float specularAmount = smoothstep(0.92, 1.0, dot(vRay, specularDir));
|
lowp float specularAmount = smoothstep(0.92, 1.0, dot(vRay, specularDir));
|
||||||
lowp vec3 specular = 0.8 * specularAmount * vec3(1.0, 1.0, 0.8);
|
lowp vec3 specular = specularAmount * vSpecularColor;
|
||||||
gl_FragColor = vec4(vLighting * color.rgb + specular, color.a);
|
gl_FragColor = vec4(vLighting * color.rgb + specular, color.a);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -86,6 +90,7 @@ export async function initWorldGl(gl: WebGLRenderingContext) {
|
|||||||
const lightDirectionLoc = gl.getUniformLocation(program, 'uLightDirection');
|
const lightDirectionLoc = gl.getUniformLocation(program, 'uLightDirection');
|
||||||
const ambiantLoc = gl.getUniformLocation(program, 'uAmbiantLight');
|
const ambiantLoc = gl.getUniformLocation(program, 'uAmbiantLight');
|
||||||
const glowColorLoc = gl.getUniformLocation(program, 'uGlowColor');
|
const glowColorLoc = gl.getUniformLocation(program, 'uGlowColor');
|
||||||
|
const specularColorLoc = gl.getUniformLocation(program, 'uSpecularColor');
|
||||||
|
|
||||||
const positionLoc = gl.getAttribLocation(program, 'aPosition');
|
const positionLoc = gl.getAttribLocation(program, 'aPosition');
|
||||||
const normalLoc = gl.getAttribLocation(program, 'aNormal');
|
const normalLoc = gl.getAttribLocation(program, 'aNormal');
|
||||||
@@ -123,12 +128,14 @@ export async function initWorldGl(gl: WebGLRenderingContext) {
|
|||||||
numVertices,
|
numVertices,
|
||||||
lightDirection,
|
lightDirection,
|
||||||
glowColor,
|
glowColor,
|
||||||
|
specularColor,
|
||||||
} = objectParams;
|
} = objectParams;
|
||||||
|
|
||||||
gl.uniformMatrix4fv(modelLoc, false, new Float32Array(se3.product(
|
gl.uniformMatrix4fv(modelLoc, false, new Float32Array(se3.product(
|
||||||
se3.translation(...position), orientation)));
|
se3.translation(...position), orientation)));
|
||||||
gl.uniform3fv(lightDirectionLoc, lightDirection);
|
gl.uniform3fv(lightDirectionLoc, lightDirection);
|
||||||
gl.uniform3fv(glowColorLoc, glowColor);
|
gl.uniform3fv(glowColorLoc, glowColor);
|
||||||
|
gl.uniform3fv(specularColorLoc, specularColor);
|
||||||
|
|
||||||
gl.bindBuffer(gl.ARRAY_BUFFER, glBuffer);
|
gl.bindBuffer(gl.ARRAY_BUFFER, glBuffer);
|
||||||
|
|
||||||
@@ -240,10 +247,10 @@ export function getOrbitDrawContext(gl: WebGLRenderingContext) {
|
|||||||
function getObjects(context, body, parentPosition = undefined) {
|
function getObjects(context, body, parentPosition = undefined) {
|
||||||
const objects = [];
|
const objects = [];
|
||||||
const {gl, glContext, player} = context;
|
const {gl, glContext, player} = context;
|
||||||
const {position, orientation, glowColor} = body;
|
const {position, orientation, glowColor, specularColor} = body;
|
||||||
|
|
||||||
if (body.glBuffer === undefined) {
|
if (body.glBuffer === undefined) {
|
||||||
body.glBuffer = makeBufferFromFaces(gl, body.geometry);
|
body.glBuffer = makeBufferFromFaces(gl, body.geometry.faces);
|
||||||
}
|
}
|
||||||
|
|
||||||
objects.push({
|
objects.push({
|
||||||
@@ -252,22 +259,31 @@ function getObjects(context, body, parentPosition = undefined) {
|
|||||||
position,
|
position,
|
||||||
glContext,
|
glContext,
|
||||||
glowColor,
|
glowColor,
|
||||||
|
specularColor,
|
||||||
});
|
});
|
||||||
if (parentPosition !== undefined) {
|
if (parentPosition !== undefined) {
|
||||||
const orbitObject = makeOrbitObject(gl, context.orbitGlContext, body.orbit, parentPosition);
|
const orbitObject = makeOrbitObject(gl, context.orbitGlContext, body.orbit, parentPosition);
|
||||||
objects.push(orbitObject);
|
//objects.push(orbitObject);
|
||||||
} else {
|
} else {
|
||||||
|
const tfs = [player.tf];
|
||||||
|
if (context.landed) {
|
||||||
|
const body = context.landedBody;
|
||||||
|
const bodyTf = se3.product(se3.translation(...body.position), body.orientation);
|
||||||
|
tfs.splice(0, 0, bodyTf);
|
||||||
|
}
|
||||||
|
const tf = tfs.reduce(se3.product);
|
||||||
const shipOrientation = [
|
const shipOrientation = [
|
||||||
se3.rotationOnly(player.tf),
|
se3.rotationOnly(tf),
|
||||||
//se3.rotationOnly(context.camera.tf),
|
//se3.rotationOnly(context.camera.tf),
|
||||||
se3.rotxyz(-Math.PI / 2, Math.PI / 2, Math.PI / 2),
|
se3.rotxyz(-Math.PI / 2, Math.PI / 2, Math.PI / 2),
|
||||||
].reduce(se3.product);
|
].reduce(se3.product);
|
||||||
const shipPos = player.position;
|
const shipPos = se3.apply(tf, [0, 0, 0, 1]);
|
||||||
objects.push({
|
objects.push({
|
||||||
geometry: makeBufferFromFaces(gl, context.spaceship),
|
geometry: makeBufferFromFaces(gl, context.spaceship),
|
||||||
orientation: shipOrientation,
|
orientation: shipOrientation,
|
||||||
position: shipPos,
|
position: shipPos,
|
||||||
glContext,
|
glContext,
|
||||||
|
specularColor: [0.8, 0.8, 0.8],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,7 +304,7 @@ export function draw(context) {
|
|||||||
const {gl, camera, player, universe, orbit, orbitGlContext, orbitBody} = context;
|
const {gl, camera, player, universe, orbit, orbitGlContext, orbitBody} = context;
|
||||||
const {skyColor, ambiantLight, projMatrix} = context;
|
const {skyColor, ambiantLight, projMatrix} = context;
|
||||||
const objects = getObjects(context, universe);
|
const objects = getObjects(context, universe);
|
||||||
if (orbit !== undefined && orbit.excentricity < 1) {
|
if (orbit !== undefined && orbit.excentricity < 1 && !context.landing) {
|
||||||
objects.push(makeOrbitObject(gl, orbitGlContext, orbit, orbitBody.position));
|
objects.push(makeOrbitObject(gl, orbitGlContext, orbit, orbitBody.position));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -304,14 +320,21 @@ export function draw(context) {
|
|||||||
|
|
||||||
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
const viewMatrix = se3.inverse([
|
const playerView = [
|
||||||
player.tf, // player position & orientation
|
player.tf, // player position & orientation
|
||||||
camera.tf, // camera orientation relative to player
|
camera.tf, // camera orientation relative to player
|
||||||
se3.translation(0, 1, 4), // step back from the player
|
se3.translation(0, 1, 4), // step back from the player
|
||||||
].reduce(se3.product));
|
];
|
||||||
|
if (context.landed) {
|
||||||
|
const body = context.landedBody;
|
||||||
|
const bodyTf = se3.product(se3.translation(...body.position), body.orientation);
|
||||||
|
playerView.splice(0, 0, bodyTf);
|
||||||
|
}
|
||||||
|
|
||||||
|
const viewMatrix = se3.inverse(playerView.reduce(se3.product));
|
||||||
let lastGlContext;
|
let lastGlContext;
|
||||||
|
|
||||||
for (const {position, orientation, geometry, glContext, glowColor} of objects) {
|
for (const {position, orientation, geometry, glContext, glowColor, specularColor} of objects) {
|
||||||
if (glContext !== lastGlContext) {
|
if (glContext !== lastGlContext) {
|
||||||
glContext.setupScene({
|
glContext.setupScene({
|
||||||
projectionMatrix: projMatrix,
|
projectionMatrix: projMatrix,
|
||||||
@@ -330,6 +353,7 @@ export function draw(context) {
|
|||||||
numVertices: geometry.numVertices,
|
numVertices: geometry.numVertices,
|
||||||
lightDirection,
|
lightDirection,
|
||||||
glowColor: glowColor || [0, 0, 0],
|
glowColor: glowColor || [0, 0, 0],
|
||||||
|
specularColor: specularColor || [0, 0, 0],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { makeFace } from '../geometry';
|
import { makeFace } from 'wmc-common/geometry';
|
||||||
|
|
||||||
import * as linalg from './linalg';
|
import * as linalg from './linalg';
|
||||||
import { loadObjModel } from './obj';
|
import { loadObjModel } from './obj';
|
||||||
import * as se3 from '../se3';
|
import * as se3 from 'wmc-common/se3';
|
||||||
import { computeOrbit, findSoi, getCartesianState, updateBodyPhysics } from './orbit';
|
import { computeOrbit, findSoi, getCartesianState, updateBodyPhysics, isInSoi } from './orbit';
|
||||||
import { getBodyGeometry } from './chunk';
|
import { getBodyGeometry, castRay, BlockType } from './chunk';
|
||||||
import { draw, getOrbitDrawContext, initWorldGl } from './draw';
|
import { draw, getOrbitDrawContext, initWorldGl } from './draw';
|
||||||
import * as quat from './quat';
|
import * as quat from './quat';
|
||||||
|
|
||||||
@@ -157,18 +157,10 @@ function initUiListeners(canvas: HTMLCanvasElement, context) {
|
|||||||
delete context.orbit;
|
delete context.orbit;
|
||||||
return false;
|
return false;
|
||||||
case 'KeyL':
|
case 'KeyL':
|
||||||
if (closeToPlanet(context)) {
|
context.landing = !context.landing;
|
||||||
context.landing = True;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
case 'Space':
|
case 'Space':
|
||||||
if (!context.flying) {
|
context.pause = !context.pause;
|
||||||
if (context.jumpAmount > 0) {
|
|
||||||
const amount = context.jumpForce;
|
|
||||||
context.player.velocity[1] = amount;
|
|
||||||
context.jumpAmount -= 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -236,6 +228,16 @@ function handleInput(context) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const roll = (amount: number) => {
|
||||||
|
if (context.keys.has('ShiftLeft')) {
|
||||||
|
amount *= 10;
|
||||||
|
}
|
||||||
|
context.camera.tf =[
|
||||||
|
context.camera.tf,
|
||||||
|
se3.rotz(amount),
|
||||||
|
].reduce(se3.product);
|
||||||
|
};
|
||||||
|
|
||||||
context.keys.forEach(key => {
|
context.keys.forEach(key => {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case 'KeyW':
|
case 'KeyW':
|
||||||
@@ -250,6 +252,12 @@ function handleInput(context) {
|
|||||||
case 'KeyD':
|
case 'KeyD':
|
||||||
move(0.0, 0.5);
|
move(0.0, 0.5);
|
||||||
return;
|
return;
|
||||||
|
case 'KeyQ':
|
||||||
|
roll(0.02);
|
||||||
|
return;
|
||||||
|
case 'KeyE':
|
||||||
|
roll(-0.02);
|
||||||
|
return;
|
||||||
case 'KeyR':
|
case 'KeyR':
|
||||||
context.timeOffset += 1;
|
context.timeOffset += 1;
|
||||||
return;
|
return;
|
||||||
@@ -259,15 +267,120 @@ function handleInput(context) {
|
|||||||
|
|
||||||
function slerp(current: linalg.Mat4, target: linalg.Mat4, maxVelocity: number) : linalg.Mat4 {
|
function slerp(current: linalg.Mat4, target: linalg.Mat4, maxVelocity: number) : linalg.Mat4 {
|
||||||
const q0 = quat.mat2Quat(current);
|
const q0 = quat.mat2Quat(current);
|
||||||
const q1 = quat.mat2Quat(target);
|
let q1 = quat.mat2Quat(target);
|
||||||
|
|
||||||
const dq = quat.diff(q1, q0);
|
const dq = quat.diff(q1, q0);
|
||||||
const maxt = maxVelocity / quat.norm(dq);
|
const maxt = maxVelocity / quat.norm(dq);
|
||||||
|
|
||||||
const q = quat.normalize(quat.add(q0, quat.scale(dq, Math.min(1, maxt))));
|
//const q = quat.normalize(quat.add(q0, quat.scale(dq, Math.min(1, maxt))));
|
||||||
|
const t = maxVelocity;
|
||||||
|
if (quat.dot(q0, q1) < 0) {
|
||||||
|
q1 = quat.scale(q1, -1);
|
||||||
|
}
|
||||||
|
const q = quat.normalize(quat.add(quat.scale(q0, 1 - t), quat.scale(q1, t)));
|
||||||
return quat.quat2Mat(q);
|
return quat.quat2Mat(q);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function distanceToGround(body: Body, position: number[], direction: number[]) : number {
|
||||||
|
const inChunkOrientation = se3.inverse(body.orientation);
|
||||||
|
const toChunk = vec => se3.apply(inChunkOrientation, vec.concat([0]));
|
||||||
|
const directionInChunk = toChunk(direction);
|
||||||
|
const positionInChunk = toChunk(linalg.diff(position, body.position));
|
||||||
|
|
||||||
|
const hit = castRay(body.geometry.chunkMap, positionInChunk, directionInChunk);
|
||||||
|
|
||||||
|
if (hit === undefined || hit.block.type === BlockType.UNDEFINED || hit.block.type === undefined) {
|
||||||
|
const ray = linalg.diff(position, body.position);
|
||||||
|
return {
|
||||||
|
distance: linalg.norm(ray),
|
||||||
|
normal: linalg.normalize(ray),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const distance = linalg.norm(linalg.diff(positionInChunk, hit.block.centerPosition));
|
||||||
|
const normal = se3.apply(body.orientation, hit.normal.concat([0]));
|
||||||
|
return {distance, normal};
|
||||||
|
}
|
||||||
|
|
||||||
|
function autoLand(context) {
|
||||||
|
const p = context.player;
|
||||||
|
// 0. check prereqs:
|
||||||
|
// - none
|
||||||
|
// 1. adjust tangential speed to match body rotational
|
||||||
|
// 2. cast ray towards center
|
||||||
|
// 3. while high, go towards center
|
||||||
|
// 4. when low, go towards ground
|
||||||
|
// 5. stop when on ground
|
||||||
|
const kShipRotateSpeed = 0.1;
|
||||||
|
|
||||||
|
const body = findSoi(context.universe, p.position);
|
||||||
|
const toBodyCenter = linalg.diff(body.position, p.position);
|
||||||
|
const {distance: altitude, normal: surfaceNormal} = distanceToGround(body, p.position, linalg.normalize(toBodyCenter));
|
||||||
|
|
||||||
|
// figure out tangential speed
|
||||||
|
const spinSpeed = linalg.add(body.velocity, linalg.cross(body.spin, linalg.scale(toBodyCenter, -1)));
|
||||||
|
const dv = linalg.diff(spinSpeed, p.velocity);
|
||||||
|
// remove vertical component
|
||||||
|
const vertical = linalg.scale(surfaceNormal, -linalg.dot(dv, surfaceNormal));
|
||||||
|
const smallDv = linalg.scale(linalg.add(dv, vertical), 0.01);
|
||||||
|
// const smallDv = linalg.scale(dv, 0.05);
|
||||||
|
p.velocity = linalg.add(p.velocity, smallDv);
|
||||||
|
|
||||||
|
// up is up
|
||||||
|
const shipZ = se3.apply(p.tf, [0, 0, 1, 0]);
|
||||||
|
const ny = surfaceNormal;
|
||||||
|
const nx = linalg.normalize(linalg.cross(ny, shipZ));
|
||||||
|
const nz = linalg.normalize(linalg.cross(nx, ny));
|
||||||
|
|
||||||
|
const targetOrientation = se3.fromBases(nx, ny, nz);
|
||||||
|
const currentOrientation = slerp(p.tf, targetOrientation, kShipRotateSpeed);
|
||||||
|
p.tf = se3.setOrientation(p.tf, currentOrientation);
|
||||||
|
|
||||||
|
if (altitude < 1.5) {
|
||||||
|
const upward = linalg.dot(linalg.diff(p.velocity, body.velocity), surfaceNormal);
|
||||||
|
if (upward < -2) {
|
||||||
|
p.velocity = linalg.add(p.velocity, linalg.scale(surfaceNormal, -2*upward));
|
||||||
|
context.landing = false;
|
||||||
|
} else if (upward < 0) {
|
||||||
|
context.landed = true;
|
||||||
|
context.landedBody = body;
|
||||||
|
|
||||||
|
p.tf = [
|
||||||
|
se3.inverse(body.orientation),
|
||||||
|
se3.inverse(se3.translation(...body.position)),
|
||||||
|
p.tf,
|
||||||
|
].reduce(se3.product);
|
||||||
|
p.velocity = [0, 0, 0];
|
||||||
|
p.position = se3.apply(p.tf, [0, 0, 0, 1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// p.velocity = linalg.add(p.velocity, linalg.scale(surfaceNormal, dvup));
|
||||||
|
}
|
||||||
|
|
||||||
|
function effectiveGravity(position: number[], rootBody: Body) : number[] {
|
||||||
|
let body = rootBody;
|
||||||
|
let acceleration = [0, 0, 0];
|
||||||
|
while (body !== undefined) {
|
||||||
|
const toBodyCenter = linalg.diff(body.position, position);
|
||||||
|
const d = linalg.norm(toBodyCenter);
|
||||||
|
const gravity = body.mass / d**3;
|
||||||
|
acceleration = linalg.add(acceleration, linalg.scale(toBodyCenter, gravity));
|
||||||
|
|
||||||
|
const parentMass = body.mass;
|
||||||
|
const children = body.children || [];
|
||||||
|
body = undefined;
|
||||||
|
for (const child of children) {
|
||||||
|
if (!isInSoi(child, parentMass, position)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
body = child;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return acceleration;
|
||||||
|
}
|
||||||
|
|
||||||
function updatePhysics(time: number, context) {
|
function updatePhysics(time: number, context) {
|
||||||
const {player} = context;
|
const {player} = context;
|
||||||
const dt = time - (context.lastTime || 0);
|
const dt = time - (context.lastTime || 0);
|
||||||
@@ -275,37 +388,41 @@ function updatePhysics(time: number, context) {
|
|||||||
|
|
||||||
player.position = se3.apply(player.tf, [0, 0, 0, 1]);
|
player.position = se3.apply(player.tf, [0, 0, 0, 1]);
|
||||||
|
|
||||||
updateBodyPhysics(time, context.universe);
|
if (!context.pause) {
|
||||||
|
updateBodyPhysics(time, context.universe);
|
||||||
|
}
|
||||||
|
|
||||||
const dr = slerp(se3.identity(), context.camera.tf, 0.007);
|
const kShipRotateSpeed = 0.1;
|
||||||
player.tf = se3.product(player.tf, dr);
|
|
||||||
context.camera.tf = se3.product(context.camera.tf, se3.inverse(dr));
|
|
||||||
|
|
||||||
if (!context.flying) {
|
if (context.landed) {
|
||||||
if (context.orbit === undefined) {
|
return; // TODO: implement
|
||||||
const newPos = linalg.add(player.position, linalg.scale(player.velocity, dt));
|
}
|
||||||
const dx = linalg.diff(newPos, player.position);
|
|
||||||
player.tf = se3.product(se3.translation(...dx), player.tf);
|
|
||||||
|
|
||||||
const body = findSoi(context.universe, context.player.position);
|
if (context.landing) {
|
||||||
context.orbit = computeOrbit(player, body, time);
|
autoLand(context);
|
||||||
console.log(`orbiting ${body.name}, excentricity: ${context.orbit.excentricity}`);
|
} else {
|
||||||
context.orbitBody = body;
|
// allow acdjusting camera
|
||||||
} else {
|
const dr = slerp(se3.identity(), context.camera.tf, kShipRotateSpeed);
|
||||||
const {position: orbitPos, velocity: orbitVel} = getCartesianState(
|
player.tf = se3.product(player.tf, dr);
|
||||||
context.orbit, context.orbitBody.mass, time);
|
context.camera.tf = se3.product(context.camera.tf, se3.inverse(dr));
|
||||||
if (orbitPos === undefined) {
|
}
|
||||||
const newPos = linalg.add(player.position, linalg.scale(player.velocity, dt));
|
|
||||||
const dx = linalg.diff(newPos, player.position);
|
if (context.flying) {
|
||||||
player.tf = se3.product(se3.translation(...dx), player.tf);
|
// no physics, just magically moving around
|
||||||
} else {
|
return;
|
||||||
const position = linalg.add(orbitPos, context.orbitBody.position);
|
}
|
||||||
const velocity = linalg.add(orbitVel, context.orbitBody.velocity);
|
|
||||||
player.velocity = velocity;
|
const gravity = effectiveGravity(player.position, context.universe);
|
||||||
const dx = linalg.diff(position, player.position);
|
player.velocity = linalg.add(player.velocity, linalg.scale(gravity, dt));
|
||||||
player.tf = se3.product(se3.translation(...dx), player.tf);
|
|
||||||
}
|
const newPos = linalg.add(player.position, linalg.scale(player.velocity, dt));
|
||||||
}
|
player.tf = se3.setPosition(player.tf, newPos);
|
||||||
|
|
||||||
|
if (context.orbit === undefined) {
|
||||||
|
const body = findSoi(context.universe, context.player.position);
|
||||||
|
context.orbit = computeOrbit(player, body, time);
|
||||||
|
console.log(`orbiting ${body.name}, excentricity: ${context.orbit.excentricity}`);
|
||||||
|
context.orbitBody = body;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -336,14 +453,16 @@ function tick(time: number, context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function makeCube(texture) {
|
function makeCube(texture) {
|
||||||
return [
|
return {
|
||||||
makeFace('-x', texture, [-0.5, 0, 0]),
|
faces: [
|
||||||
makeFace('+x', texture, [+0.5, 0, 0]),
|
makeFace('-x', texture, [-0.5, 0, 0]),
|
||||||
makeFace('-y', texture, [0, -0.5, 0]),
|
makeFace('+x', texture, [+0.5, 0, 0]),
|
||||||
makeFace('+y', texture, [0, +0.5, 0]),
|
makeFace('-y', texture, [0, -0.5, 0]),
|
||||||
makeFace('-z', texture, [0, 0, -0.5]),
|
makeFace('+y', texture, [0, +0.5, 0]),
|
||||||
makeFace('+z', texture, [0, 0, +0.5]),
|
makeFace('-z', texture, [0, 0, -0.5]),
|
||||||
];
|
makeFace('+z', texture, [0, 0, +0.5]),
|
||||||
|
]
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
@@ -399,11 +518,10 @@ async function main() {
|
|||||||
initUiListeners(canvas, context);
|
initUiListeners(canvas, context);
|
||||||
|
|
||||||
const starshipGeom = await modelPromise;
|
const starshipGeom = await modelPromise;
|
||||||
console.log(`loaded ${starshipGeom.length} triangles`);
|
|
||||||
|
|
||||||
context.spaceship = starshipGeom;
|
context.spaceship = starshipGeom;
|
||||||
|
|
||||||
requestAnimationFrame(time => tick(time, context));
|
requestAnimationFrame(time => tick(time, context));
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onload = main;
|
window.onload = main;
|
||||||
|
|||||||
@@ -38,4 +38,8 @@ export function scale(a: Vec3, s: number) : Vec3 {
|
|||||||
a[1] * s,
|
a[1] * s,
|
||||||
a[2] * s,
|
a[2] * s,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function normalize(a: Vec3) : Vec3 {
|
||||||
|
return scale(a, 1/norm(a));
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import * as se3 from '../se3';
|
import * as se3 from 'wmc-common/se3';
|
||||||
import * as linalg from './linalg';
|
import * as linalg from './linalg';
|
||||||
import {Vec3} from './linalg';
|
import {Vec3} from './linalg';
|
||||||
|
|
||||||
@@ -52,6 +52,14 @@ export function updateBodyPhysics(time: number, body: Body, parentBody : Body |
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function isInSoi(body: Body, parentMass: number, position: number[]) : boolean {
|
||||||
|
const soi = body.orbit.semimajorAxis * Math.pow(body.mass / parentMass, 2/5);
|
||||||
|
const pos = position;
|
||||||
|
const bod = body.position;
|
||||||
|
const dr = [pos[0] - bod[0], pos[1] - bod[1], pos[2] - bod[2]];
|
||||||
|
return (dr[0]**2 + dr[1]**2 + dr[2]**2 < soi**2);
|
||||||
|
}
|
||||||
|
|
||||||
export function findSoi(rootBody: Body, position: number[]) : Body {
|
export function findSoi(rootBody: Body, position: number[]) : Body {
|
||||||
const bodies = [rootBody];
|
const bodies = [rootBody];
|
||||||
let body : Body;
|
let body : Body;
|
||||||
@@ -63,11 +71,7 @@ export function findSoi(rootBody: Body, position: number[]) : Body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const child of body.children) {
|
for (const child of body.children) {
|
||||||
const soi = child.orbit.semimajorAxis * Math.pow(child.mass / body.mass, 2/5);
|
if (isInSoi(child, body.mass, position)) {
|
||||||
const pos = position;
|
|
||||||
const bod = child.position;
|
|
||||||
const dr = [pos[0] - bod[0], pos[1] - bod[1], pos[2] - bod[2]];
|
|
||||||
if (dr[0]**2 + dr[1]**2 + dr[2]**2 < soi**2) {
|
|
||||||
bodies.push(child);
|
bodies.push(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -277,4 +281,4 @@ export function makeOrbitObject(gl: WebGLRenderingContext, glContext: any, orbit
|
|||||||
position,
|
position,
|
||||||
glContext,
|
glContext,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,12 @@
|
|||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.14.2"
|
"esbuild": "^0.14.2",
|
||||||
|
"wmc-common": "link:../common"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "esbuild --outfile=app.js index.ts --bundle --sourcemap=inline --watch",
|
"watch": "esbuild --outfile=static/app.js index.ts --bundle --sourcemap=inline --watch",
|
||||||
"serve": "esbuild --outfile=app.js index.ts --bundle --sourcemap=inline --servedir=.",
|
"serve": "esbuild --outfile=static/app.js index.ts --bundle --sourcemap=inline --servedir=static",
|
||||||
"build": "esbuild --outfile=app.js index.ts --bundle --minify"
|
"build": "esbuild --outfile=app.js index.ts --bundle --minify"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {Mat4} from './linalg';
|
import {Mat4} from './linalg';
|
||||||
import * as se3 from '../se3';
|
import * as se3 from 'wmc-common/se3';
|
||||||
|
|
||||||
export interface Quat {
|
export interface Quat {
|
||||||
x: number,
|
x: number,
|
||||||
@@ -121,4 +121,8 @@ export function scale(q: Quat, a: number): Quat {
|
|||||||
z: a * q.z,
|
z: a * q.z,
|
||||||
w: a * q.w,
|
w: a * q.w,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function dot(q0: Quat, q1: Quat): number {
|
||||||
|
return q0.x*q1.x + q0.y*q1.y + q0.z*q1.z + q0.w*q1.w;
|
||||||
|
}
|
||||||
|
|||||||
BIN
skycraft/static/texture.png
Normal file
BIN
skycraft/static/texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
@@ -1 +0,0 @@
|
|||||||
../texture.png
|
|
||||||
@@ -44,7 +44,7 @@ esbuild-linux-32@0.14.54:
|
|||||||
|
|
||||||
esbuild-linux-64@0.14.54:
|
esbuild-linux-64@0.14.54:
|
||||||
version "0.14.54"
|
version "0.14.54"
|
||||||
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz#de5fdba1c95666cf72369f52b40b03be71226652"
|
resolved "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz"
|
||||||
integrity sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==
|
integrity sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==
|
||||||
|
|
||||||
esbuild-linux-arm64@0.14.54:
|
esbuild-linux-arm64@0.14.54:
|
||||||
@@ -109,7 +109,7 @@ esbuild-windows-arm64@0.14.54:
|
|||||||
|
|
||||||
esbuild@^0.14.2:
|
esbuild@^0.14.2:
|
||||||
version "0.14.54"
|
version "0.14.54"
|
||||||
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.54.tgz#8b44dcf2b0f1a66fc22459943dccf477535e9aa2"
|
resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.14.54.tgz"
|
||||||
integrity sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==
|
integrity sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
"@esbuild/linux-loong64" "0.14.54"
|
"@esbuild/linux-loong64" "0.14.54"
|
||||||
@@ -133,3 +133,7 @@ esbuild@^0.14.2:
|
|||||||
esbuild-windows-32 "0.14.54"
|
esbuild-windows-32 "0.14.54"
|
||||||
esbuild-windows-64 "0.14.54"
|
esbuild-windows-64 "0.14.54"
|
||||||
esbuild-windows-arm64 "0.14.54"
|
esbuild-windows-arm64 "0.14.54"
|
||||||
|
|
||||||
|
"wmc-common@link:../common":
|
||||||
|
version "0.0.0"
|
||||||
|
uid ""
|
||||||
|
|||||||
Reference in New Issue
Block a user