Skip to content

Commit

Permalink
release v0.8.3
Browse files Browse the repository at this point in the history
## [0.8.3](v0.8.2...v0.8.3) (2024-08-28)

### Bug Fixes

* fix frameRate and camera resize ([c4b8626](c4b8626))
* fix InstanceDraw destroy error ([4529594](4529594))
* **GUI:** add option to receive post effects ([#426](#426)) ([af74bb1](af74bb1))
* **inputsystem:** capture pointer on pointerdown ([#432](#432)) ([cc90b82](cc90b82))
* **shadow:** fix acceptShadow ([4d6a838](4d6a838))
* **transform:** fix lookAt at vertical angle ([#431](#431)) ([1922f18](1922f18))


### Features

* add GridObject ([#436](#436)) ([a939ce6](a939ce6))
* **geometry:** add extra geometry package, extrude geometry and text geometry ([#442](#442)) ([069e6d4](069e6d4))
* **graphic:** move graphic3D to @orillusion/graphic ([#427](#427)) ([a1d1b2a](a1d1b2a))
* **physics:** add RopeSoftBody, rigidbody dragger, and enhance collisionShapeUtil ([#448](#448)) ([452d730](452d730))
* **physics:** Refactor physics plugin with extensive enhancements and new features ([#440](#440)) ([7c18db5](7c18db5))
  • Loading branch information
lslzl3000 authored Aug 31, 2024
2 parents bafad6a + 917acd3 commit fc3614e
Show file tree
Hide file tree
Showing 327 changed files with 23,926 additions and 3,528 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## [0.8.3](https://github.com/Orillusion/orillusion/compare/v0.8.2...v0.8.3) (2024-08-28)


### Bug Fixes

* fix frameRate and camera resize ([c4b8626](https://github.com/Orillusion/orillusion/commit/c4b8626c91937d50fba1a2d94101e84053a83d4c))
* fix InstanceDraw destroy error ([4529594](https://github.com/Orillusion/orillusion/commit/4529594491e111e2d98ca4319189215614d97654))
* **GUI:** add option to receive post effects ([#426](https://github.com/Orillusion/orillusion/issues/426)) ([af74bb1](https://github.com/Orillusion/orillusion/commit/af74bb1c14a1ee42af749868271f9b45a65c2384))
* **inputsystem:** capture pointer on pointerdown ([#432](https://github.com/Orillusion/orillusion/issues/432)) ([cc90b82](https://github.com/Orillusion/orillusion/commit/cc90b82d4d9ab8250553263e3c0499a84e3e503c))
* **shadow:** fix acceptShadow ([4d6a838](https://github.com/Orillusion/orillusion/commit/4d6a8387310381d158fc13bc168cc7482cc656b3))
* **transform:** fix lookAt at vertical angle ([#431](https://github.com/Orillusion/orillusion/issues/431)) ([1922f18](https://github.com/Orillusion/orillusion/commit/1922f185f67b450dcbb04216ee30dfba8cc0e0a2))


### Features

* add GridObject ([#436](https://github.com/Orillusion/orillusion/issues/436)) ([a939ce6](https://github.com/Orillusion/orillusion/commit/a939ce62ccbe3e6db6e964ebcf2921d975b23a1c))
* **geometry:** add extra geometry package, extrude geometry and text geometry ([#442](https://github.com/Orillusion/orillusion/issues/442)) ([069e6d4](https://github.com/Orillusion/orillusion/commit/069e6d40d4510be09dfe3c7af9ac1b97bb855ccd))
* **graphic:** move graphic3D to @orillusion/graphic ([#427](https://github.com/Orillusion/orillusion/issues/427)) ([a1d1b2a](https://github.com/Orillusion/orillusion/commit/a1d1b2aa9fc0b6abc55ad7894312f1100f6b466e))
* **physics:** add RopeSoftBody, rigidbody dragger, and enhance collisionShapeUtil ([#448](https://github.com/Orillusion/orillusion/issues/448)) ([452d730](https://github.com/Orillusion/orillusion/commit/452d730ef3377867cd81fe6d78e3a1b744c4e2b5))
* **physics:** Refactor physics plugin with extensive enhancements and new features ([#440](https://github.com/Orillusion/orillusion/issues/440)) ([7c18db5](https://github.com/Orillusion/orillusion/commit/7c18db5157a0001c9f056e6c7a158e62ff5f0e2b))



## [0.8.2](https://github.com/Orillusion/orillusion/compare/v0.8.1...v0.8.2) (2024-07-21)


Expand Down
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orillusion/core",
"version": "0.8.2",
"version": "0.8.3",
"author": "Orillusion",
"description": "Orillusion WebGPU Engine",
"type": "module",
Expand Down Expand Up @@ -31,13 +31,20 @@
"scripts": {
"dev": "vite",
"build": "tsc --p tsconfig.build.json && vite build && npm run build:types && npm run minify",
"build:test": "tsc --p tsconfig.build.json && vite build",
"build:test": "tsc --p tsconfig.build.json && vite build && npm run build:packages",
"build:packages": "npm run build:physics && npm run build:media && npm run build:stats && npm run build:particle && npm run build:graphic && npm run build:geometry",
"build:physics": "cd packages/physics && npm run build",
"build:media": "cd packages/media-extention && npm run build",
"build:stats": "cd packages/stats && npm run build",
"build:particle": "cd packages/particle && npm run build",
"build:graphic": "cd packages/graphic && npm run build",
"build:geometry": "cd packages/geometry && npm run build",
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json && rm -rf dist/packages && mv dist/src dist/types",
"minify": "./node_modules/vite/node_modules/.bin/esbuild dist/orillusion.es.max.js --sourcemap --minify --outfile=dist/orillusion.es.js && ./node_modules/vite/node_modules/.bin/esbuild dist/orillusion.umd.max.js --minify --sourcemap --outfile=dist/orillusion.umd.js",
"test": "electron test/ci/main.js",
"test:ci": "xvfb-maybe -- electron --enable-unsafe-webgpu --enable-features=Vulkan --use-vulkan=swiftshader --use-webgpu-adapter=swiftshader --no-sandbox test/ci/main.js",
"docs": "npm run docs:core && npm run docs:physics && npm run docs:media && npm run docs:stats && npm run docs:particle && npm run docs:graphic",
"docs:typedoc": "npx typedoc --plugin typedoc-plugin-markdown --plugin ./script/typedoc-plugin-not-exported.cjs --tsconfig tsconfig.build.json --gitRevision main --hideBreadcrumbs true --allReflectionsHaveOwnDocument true --readme none --excludeInternal --excludePrivate --excludeProtected --sort source-order --out",
"docs:typedoc": "npx typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.build.json --gitRevision main --hideBreadcrumbs true --allReflectionsHaveOwnDocument true --readme none --excludeInternal --excludePrivate --excludeProtected --sort source-order --out",
"docs:core": "npm run docs:typedoc docs/api src/index.ts",
"docs:physics": "cd packages/physics && npm run docs",
"docs:media": "cd packages/media-extention && npm run docs",
Expand All @@ -49,7 +56,6 @@
"devDependencies": {
"@webgpu/types": "^0.1.40",
"conventional-changelog-cli": "^2.2.2",
"earcut": "^2.2.4",
"electron": "^31.1.0",
"typedoc": "^0.25.7",
"typedoc-plugin-markdown": "^3.17.1",
Expand Down
15 changes: 15 additions & 0 deletions packages/ammo/ammo.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ammo/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/debug/GUIHelp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class _GUIHelp {
}
}
}

/**
* @internal
*/
Expand Down
15 changes: 0 additions & 15 deletions packages/effect/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/effect/grass/GrassNode.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/effect/index.ts

This file was deleted.

24 changes: 0 additions & 24 deletions packages/effect/package.json

This file was deleted.

58 changes: 58 additions & 0 deletions packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { Vector2 } from "@orillusion/core";
import { Curve2D } from "./Curve2D";

export class CubicBezierCurve2D extends Curve2D {
public v0: Vector2;
public v1: Vector2;
public v2: Vector2;
public v3: Vector2;

constructor(v0: Vector2, v1: Vector2, v2: Vector2, v3: Vector2) {
super();
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
this.v3 = v3;
}

public get points(): Vector2[] {
return [this.v0, this.v1, this.v2, this.v3];
}

public getPoint(t: number, result: Vector2 = new Vector2()): Vector2 {
result.set(
this.cubicBezier(t, this.v0.x, this.v1.x, this.v2.x, this.v3.x),
this.cubicBezier(t, this.v0.y, this.v1.y, this.v2.y, this.v3.y)
);
return result;
}

public copyFrom(other: CubicBezierCurve2D) {
this.v0.copyFrom(other.v0);
this.v1.copyFrom(other.v1);
this.v2.copyFrom(other.v2);
this.v3.copyFrom(other.v3);
}

protected cubicBezierP0(t: number, p: number) {
const k = 1 - t;
return k * k * k * p;
}

protected cubicBezierP1(t: number, p: number) {
const k = 1 - t;
return 3 * k * k * t * p;
}

protected cubicBezierP2(t: number, p: number) {
return 3 * (1 - t) * t * t * p;
}

protected cubicBezierP3(t: number, p: number) {
return t * t * t * p;
}

protected cubicBezier(t: number, p0: number, p1: number, p2: number, p3: number) {
return this.cubicBezierP0(t, p0) + this.cubicBezierP1(t, p1) + this.cubicBezierP2(t, p2) + this.cubicBezierP3(t, p3);
}
}
30 changes: 30 additions & 0 deletions packages/geometry/ExtrudeGeometry/Curve/Curve2D.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Vector2 } from "@orillusion/core";

export enum CurveType {
LineCurve,
SplineCurve,
EllipseCurve,
QuadraticBezierCurve,
}

export class Curve2D {
public curveType: CurveType;

public get points(): Vector2[] {
console.warn("points not implementation!");
return [];
}

public getPoint(t: number, result: Vector2 = new Vector2()): Vector2 {
console.warn("getPoint not implementation!");
return result;
}

public getPoints(divisions = 5): Vector2[] {
let points: Vector2[] = [];
for (let d = 0; d <= divisions; d++) {
points.push(this.getPoint(d / divisions));
}
return points;
}
}
47 changes: 47 additions & 0 deletions packages/geometry/ExtrudeGeometry/Curve/LineCurve2D.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { Vector2 } from "@orillusion/core";
import { Curve2D, CurveType } from "./Curve2D";

export class LineCurve2D extends Curve2D {
public v0: Vector2;
public v1: Vector2;

constructor(v0: Vector2, v1: Vector2) {
super();
this.v0 = v0;
this.v1 = v1;
this.curveType = CurveType.LineCurve;
}

public get points(): Vector2[] {
return [this.v0, this.v1];
}

public getPoint(t: number, result: Vector2 = new Vector2()): Vector2 {
if (t >= 1) {
result.copyFrom(this.v1);
} else {
this.v1.sub(this.v0, result);
result.multiplyScaler(t).add(this.v0, result);
}
return result;
}

public getPointAt(u: number, result: Vector2 = new Vector2()): Vector2 {
return this.getPoint(u, result);
}

public getTangent(t: number, result: Vector2 = new Vector2()): Vector2 {
this.v1.sub(this.v0, result);
result.normalize();
return result;
}

public getTangentAt(u: number, result: Vector2 = new Vector2()): Vector2 {
return this.getTangent(u, result);
}

public copyFrom(other: LineCurve2D) {
this.v0.copyFrom(other.v0);
this.v1.copyFrom(other.v1);
}
}
51 changes: 51 additions & 0 deletions packages/geometry/ExtrudeGeometry/Curve/QuadraticBezierCurve2D.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { Vector2 } from "@orillusion/core";
import { Curve2D, CurveType } from "./Curve2D";

export class QuadraticBezierCurve2D extends Curve2D {
public v0: Vector2;
public v1: Vector2;
public v2: Vector2;

constructor(v0: Vector2, v1: Vector2, v2: Vector2) {
super();
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
this.curveType = CurveType.QuadraticBezierCurve;
}

public get points(): Vector2[] {
return [this.v0, this.v1, this.v2];
}

public getPoint(t: number, result: Vector2 = new Vector2()): Vector2 {
result.set(
this.quadraticBezier(t, this.v0.x, this.v1.x, this.v2.x),
this.quadraticBezier(t, this.v0.y, this.v1.y, this.v2.y)
);
return result;
}

public copyFrom(other: QuadraticBezierCurve2D) {
this.v0.copyFrom(other.v0);
this.v1.copyFrom(other.v1);
this.v2.copyFrom(other.v2);
}

protected quadraticBezierP0(t: number, p: number) {
const k = 1 - t;
return k * k * p;
}

protected quadraticBezierP1(t: number, p: number) {
return 2 * (1 - t) * t * p;
}

protected quadraticBezierP2(t: number, p: number) {
return t * t * p;
}

protected quadraticBezier(t: number, p0: number, p1: number, p2: number): number {
return this.quadraticBezierP0(t, p0) + this.quadraticBezierP1(t, p1) + this.quadraticBezierP2(t, p2);
}
}
Loading

0 comments on commit fc3614e

Please sign in to comment.