Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v0.8.3 #449

Merged
merged 25 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4b34685
chore: update ClearCoat sample
lslzl3000 Jul 22, 2024
af74bb1
fix(GUI): add option to receive post effects (#426)
Codeboy-cn Jul 23, 2024
a1d1b2a
feat(graphic): move graphic3D to @orillusion/graphic (#427)
lslzl3000 Jul 23, 2024
2a446a2
chore: update graphic tsconfig
lslzl3000 Jul 23, 2024
fbc00a6
chore: update ssr sample
lslzl3000 Jul 23, 2024
5ad10a2
chore: fix compute samples
lslzl3000 Jul 24, 2024
369a65a
chore(docs): fix typedoc plugin script
lslzl3000 Jul 24, 2024
b6b4bce
chore: remove typedoc script
lslzl3000 Jul 25, 2024
14c80e4
chore: remove earcut npm package (#428)
Codeboy-cn Jul 25, 2024
1922f18
fix(transform): fix lookAt at vertical angle (#431)
lslzl3000 Jul 27, 2024
cc90b82
fix(inputsystem): capture pointer on pointerdown (#432)
lslzl3000 Jul 27, 2024
fc74fa1
chore: clear shader docs
lslzl3000 Jul 27, 2024
a939ce6
feat: add GridObject (#436)
lslzl3000 Jul 29, 2024
4d6a838
fix(shadow): fix acceptShadow
lslzl3000 Aug 7, 2024
7c18db5
feat(physics): Refactor physics plugin with extensive enhancements an…
ID-Emmett Aug 13, 2024
069e6d4
feat(geometry): add extra geometry package, extrude geometry and text…
Codeboy-cn Aug 13, 2024
5a9ff20
chore: add README for @orillusion/geometry
lslzl3000 Aug 14, 2024
ba26dc8
refactor: deprecate packages/effect, move Terrain Grass into packages…
lslzl3000 Aug 14, 2024
c154fe1
chore: fix sample import
lslzl3000 Aug 14, 2024
9d8ae6b
Fix: depthCompare
Codeboy-cn Aug 18, 2024
23868d0
chore: use peerDependencies in packages
lslzl3000 Aug 19, 2024
4529594
fix: fix InstanceDraw destroy error
lslzl3000 Aug 25, 2024
452d730
feat(physics): add RopeSoftBody, rigidbody dragger, and enhance colli…
ID-Emmett Aug 28, 2024
c4b8626
fix: fix frameRate and camera resize
lslzl3000 Aug 28, 2024
917acd3
bump v0.8.3
lslzl3000 Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading