@casmo/tree.js 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +392 -1
- package/dist/{apply-CcodnAbs.js → apply-Cio2t7CZ.js} +51 -16
- package/dist/apply-Cio2t7CZ.js.map +1 -0
- package/dist/bake/index.d.ts +43 -4
- package/dist/bake/index.d.ts.map +1 -1
- package/dist/definition/defaults.d.ts +9 -1
- package/dist/definition/defaults.d.ts.map +1 -1
- package/dist/definition/index.d.ts +2 -2
- package/dist/definition/index.d.ts.map +1 -1
- package/dist/definition/schema.d.ts.map +1 -1
- package/dist/definition/types.d.ts +86 -0
- package/dist/definition/types.d.ts.map +1 -1
- package/dist/effects/effects.d.ts +51 -6
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/glow.d.ts +5 -0
- package/dist/effects/glow.d.ts.map +1 -1
- package/dist/effects/grade.d.ts +3 -0
- package/dist/effects/grade.d.ts.map +1 -1
- package/dist/effects/highlight.d.ts +35 -0
- package/dist/effects/highlight.d.ts.map +1 -0
- package/dist/effects/index.d.ts +5 -1
- package/dist/effects/index.d.ts.map +1 -1
- package/dist/effects/inner-lines.d.ts +39 -0
- package/dist/effects/inner-lines.d.ts.map +1 -0
- package/dist/effects/live.d.ts +12 -0
- package/dist/effects/live.d.ts.map +1 -0
- package/dist/effects/mask.d.ts +23 -11
- package/dist/effects/mask.d.ts.map +1 -1
- package/dist/effects/outline.d.ts +12 -0
- package/dist/effects/outline.d.ts.map +1 -1
- package/dist/effects/pass.d.ts +27 -0
- package/dist/effects/pass.d.ts.map +1 -0
- package/dist/effects/screen.d.ts +31 -0
- package/dist/effects/screen.d.ts.map +1 -0
- package/dist/effects/suggested.d.ts +5 -0
- package/dist/effects/suggested.d.ts.map +1 -1
- package/dist/effects/tree-id.d.ts +50 -0
- package/dist/effects/tree-id.d.ts.map +1 -0
- package/dist/effects.js +772 -57
- package/dist/effects.js.map +1 -1
- package/dist/forest/Forest.d.ts +29 -1
- package/dist/forest/Forest.d.ts.map +1 -1
- package/dist/forest/nodes.d.ts +2 -0
- package/dist/forest/nodes.d.ts.map +1 -1
- package/dist/{forest-DTrD8puH.js → forest-lg61rhKM.js} +1125 -191
- package/dist/forest-lg61rhKM.js.map +1 -0
- package/dist/generator/crown.d.ts +28 -0
- package/dist/generator/crown.d.ts.map +1 -0
- package/dist/generator/growth.d.ts +1 -1
- package/dist/generator/growth.d.ts.map +1 -1
- package/dist/generator/index.d.ts +2 -1
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/mesh.d.ts +10 -2
- package/dist/generator/mesh.d.ts.map +1 -1
- package/dist/generator/occlusion.d.ts +8 -0
- package/dist/generator/occlusion.d.ts.map +1 -0
- package/dist/generator/roots.d.ts +16 -0
- package/dist/generator/roots.d.ts.map +1 -0
- package/dist/generator/trunk.d.ts +8 -0
- package/dist/generator/trunk.d.ts.map +1 -1
- package/dist/generator/types.d.ts +27 -1
- package/dist/generator/types.d.ts.map +1 -1
- package/dist/growth/index.d.ts +1 -1
- package/dist/growth/index.d.ts.map +1 -1
- package/dist/growth/tsl.d.ts +2 -0
- package/dist/growth/tsl.d.ts.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +234 -28
- package/dist/index.js.map +1 -1
- package/dist/materials/crown-nodes.d.ts +20 -0
- package/dist/materials/crown-nodes.d.ts.map +1 -0
- package/dist/materials/crown-normals.d.ts +17 -0
- package/dist/materials/crown-normals.d.ts.map +1 -0
- package/dist/materials/ground-tint.d.ts +13 -0
- package/dist/materials/ground-tint.d.ts.map +1 -0
- package/dist/materials/index.d.ts +7 -1
- package/dist/materials/index.d.ts.map +1 -1
- package/dist/materials/leaf-translucency-model.d.ts +14 -0
- package/dist/materials/leaf-translucency-model.d.ts.map +1 -0
- package/dist/materials/leaf-translucency.d.ts +73 -0
- package/dist/materials/leaf-translucency.d.ts.map +1 -0
- package/dist/materials/material-features.d.ts +43 -0
- package/dist/materials/material-features.d.ts.map +1 -0
- package/dist/materials/occlusion.d.ts +10 -0
- package/dist/materials/occlusion.d.ts.map +1 -0
- package/dist/materials/toon.d.ts +18 -1
- package/dist/materials/toon.d.ts.map +1 -1
- package/dist/{names-C6-wuJ29.js → names-BE9he6CS.js} +133 -9
- package/dist/names-BE9he6CS.js.map +1 -0
- package/dist/react.js +1 -1
- package/dist/species/almond.js +12 -2
- package/dist/species/almond.json +10 -1
- package/dist/species/apple.js +12 -2
- package/dist/species/apple.json +10 -1
- package/dist/species/ash.js +12 -2
- package/dist/species/ash.json +10 -1
- package/dist/species/beech.js +12 -2
- package/dist/species/beech.json +10 -1
- package/dist/species/birch.js +12 -2
- package/dist/species/birch.json +10 -1
- package/dist/species/cedar.js +12 -2
- package/dist/species/cedar.json +10 -1
- package/dist/species/cherry.js +12 -2
- package/dist/species/cherry.json +10 -1
- package/dist/species/chestnut.js +12 -2
- package/dist/species/chestnut.json +10 -1
- package/dist/species/douglas-fir.js +12 -2
- package/dist/species/douglas-fir.json +10 -1
- package/dist/species/elm.js +12 -2
- package/dist/species/elm.json +10 -1
- package/dist/species/hemlock.js +12 -2
- package/dist/species/hemlock.json +10 -1
- package/dist/species/hickory.js +12 -2
- package/dist/species/hickory.json +10 -1
- package/dist/species/juniper.js +12 -2
- package/dist/species/juniper.json +10 -1
- package/dist/species/mahogany.js +12 -2
- package/dist/species/mahogany.json +10 -1
- package/dist/species/maple.js +12 -2
- package/dist/species/maple.json +10 -1
- package/dist/species/oak.js +12 -2
- package/dist/species/oak.json +10 -1
- package/dist/species/olive.js +12 -2
- package/dist/species/olive.json +10 -1
- package/dist/species/peach.js +12 -2
- package/dist/species/peach.json +10 -1
- package/dist/species/pear.js +12 -2
- package/dist/species/pear.json +10 -1
- package/dist/species/pine.js +12 -2
- package/dist/species/pine.json +10 -1
- package/dist/species/plum.js +12 -2
- package/dist/species/plum.json +10 -1
- package/dist/species/red-oak.js +12 -2
- package/dist/species/red-oak.json +10 -1
- package/dist/species/redwood.js +12 -2
- package/dist/species/redwood.json +10 -1
- package/dist/species/sequoia.js +12 -2
- package/dist/species/sequoia.json +10 -1
- package/dist/species/spruce.js +12 -2
- package/dist/species/spruce.json +10 -1
- package/dist/species/teak.js +12 -2
- package/dist/species/teak.json +10 -1
- package/dist/species/types.d.ts +7 -3
- package/dist/species/types.d.ts.map +1 -1
- package/dist/species/walnut.js +12 -2
- package/dist/species/walnut.json +10 -1
- package/dist/species/white-oak.js +12 -2
- package/dist/species/white-oak.json +10 -1
- package/dist/styles/apply.d.ts.map +1 -1
- package/dist/styles/low-poly.js +6 -4
- package/dist/styles/low-poly.js.map +1 -1
- package/dist/styles/material-features.d.ts +27 -0
- package/dist/styles/material-features.d.ts.map +1 -0
- package/dist/styles/realistic.js +6 -4
- package/dist/styles/realistic.js.map +1 -1
- package/dist/styles/stylized.js +6 -4
- package/dist/styles/stylized.js.map +1 -1
- package/dist/tree/Tree.d.ts +28 -1
- package/dist/tree/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/apply-CcodnAbs.js.map +0 -1
- package/dist/forest-DTrD8puH.js.map +0 -1
- package/dist/names-C6-wuJ29.js.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SkeletonBranch, Vec3 } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The Crown Volume (GLOSSARY): one smooth, axis-aligned ellipsoid around all leaves of the fully grown
|
|
4
|
+
* tree, in tree space (before Growth and Wind). Plain numbers, so it can go into glTF extras unchanged.
|
|
5
|
+
* A point `p` is inside when `crownDistance(crown, p) <= 1`.
|
|
6
|
+
*/
|
|
7
|
+
export interface CrownVolume {
|
|
8
|
+
/** Centre of the ellipsoid, tree space (metres). */
|
|
9
|
+
center: Vec3;
|
|
10
|
+
/** Half axes along x, y and z (metres, > 0). */
|
|
11
|
+
radii: Vec3;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* How far `p` sits from the Crown Volume's centre, in units of the ellipsoid:
|
|
15
|
+
* 0 at the centre, 1 on the shell, > 1 outside. (`1 - crownDistance` is how deep a point is in the crown.)
|
|
16
|
+
*/
|
|
17
|
+
export declare function crownDistance({ center, radii }: CrownVolume, p: Readonly<Vec3>): number;
|
|
18
|
+
/**
|
|
19
|
+
* The unit outward normal at `p` of the Crown Volume's ellipsoid through `p` (the shell scaled to pass
|
|
20
|
+
* through it), i.e. the normalized gradient `(p - center) / radii²`. At the centre itself: straight up.
|
|
21
|
+
*/
|
|
22
|
+
export declare function crownNormal({ center, radii }: CrownVolume, p: Readonly<Vec3>): Vec3;
|
|
23
|
+
/**
|
|
24
|
+
* Fits the Crown Volume to the leaf vertex positions of the fully grown tree. A tree without leaves gets
|
|
25
|
+
* a Volume around its branches (centre lines, Roots excluded).
|
|
26
|
+
*/
|
|
27
|
+
export declare function crownVolume(leafPositions: Float32Array, branches: readonly SkeletonBranch[]): CrownVolume;
|
|
28
|
+
//# sourceMappingURL=crown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crown.d.ts","sourceRoot":"","sources":["../../src/generator/crown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,oDAAoD;IACpD,MAAM,EAAE,IAAI,CAAC;IACb,gDAAgD;IAChD,KAAK,EAAE,IAAI,CAAC;CACb;AAYD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAKvF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAMnF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,WAAW,CAIzG"}
|
|
@@ -11,5 +11,5 @@ import type { GrowthTiming, SkeletonBranch, SkeletonLeaf } from './types';
|
|
|
11
11
|
* (its end stays put, so the order above holds), and the whole timeline is warped by `t^k`,
|
|
12
12
|
* k in 1 ± v (a monotone map that keeps 0 and 1). Together a window moves by less than v.
|
|
13
13
|
*/
|
|
14
|
-
export declare function growthTiming(definition: TreeDefinition, seed: number, branches: SkeletonBranch[], leaves: SkeletonLeaf[]): Omit<GrowthTiming, 'fruit'>;
|
|
14
|
+
export declare function growthTiming(definition: TreeDefinition, seed: number, branches: SkeletonBranch[], leaves: SkeletonLeaf[]): Omit<GrowthTiming, 'fruit' | 'roots'>;
|
|
15
15
|
//# sourceMappingURL=growth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"growth.d.ts","sourceRoot":"","sources":["../../src/generator/growth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,EAAgB,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAcxF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,cAAc,EAC1B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,cAAc,EAAE,EAC1B,MAAM,EAAE,YAAY,EAAE,GACrB,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"growth.d.ts","sourceRoot":"","sources":["../../src/generator/growth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,EAAgB,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAcxF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,cAAc,EAC1B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,cAAc,EAAE,EAC1B,MAAM,EAAE,YAAY,EAAE,GACrB,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,CA4BvC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { TreeDefinition } from '../definition';
|
|
2
2
|
import type { GeometryBuffers, TreeData, TreeSkeleton } from './types';
|
|
3
3
|
export { growthTiming } from './growth';
|
|
4
|
-
export
|
|
4
|
+
export { crownDistance, crownNormal, type CrownVolume } from './crown';
|
|
5
|
+
export type { GrowthTiming, GrowthWindow, GeometryBuffers, TreeAttributes, VertexAttribute, SkeletonBranch, SkeletonFruit, SkeletonRoot, SkeletonLeaf, SkeletonPoint, TreeData, TreeSkeleton, Vec3 } from './types';
|
|
5
6
|
/**
|
|
6
7
|
* The Generator: a pure function from a (parsed) Tree Definition and a Seed to tree data.
|
|
7
8
|
* No three.js, no GPU, no globals; runs in Node. Same input, same output, on every machine.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAepD,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AACvE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpN;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CA8D/E;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG,MAAM,CAI5E;AAED,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAE9D;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAInD"}
|
package/dist/generator/mesh.d.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import type { PartSeason } from '../season/profile';
|
|
2
2
|
import type { GeometryBuffers, GrowthWindow, SkeletonBranch } from './types';
|
|
3
3
|
import type { PartSway } from './wind';
|
|
4
|
+
/** How a Stem is swept (ADR 0007): its base ring sinks below the ground, and widens by its Root Flare. */
|
|
5
|
+
export interface StemSweep {
|
|
6
|
+
/** `trunk.flare` (0..1); 0 = no flare and no extra rings. */
|
|
7
|
+
flare: number;
|
|
8
|
+
/** Extra rings in the flare zone (`trunk.flareSections`). */
|
|
9
|
+
sections: number;
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* Sweeps a ring of `sides` vertices along a branch's points, using parallel-transport
|
|
6
|
-
* frames so branches in any direction get even rings, and caps the tip.
|
|
13
|
+
* frames so branches in any direction get even rings, and caps the tip. A Stem (`stem` given)
|
|
14
|
+
* sinks its base ring below the ground and widens by its Root Flare; its skeleton is never changed.
|
|
7
15
|
*/
|
|
8
|
-
export declare function sweepBranch(branch: SkeletonBranch, sides: number, random: number, season?: PartSeason, growth?: GrowthWindow, sway?: PartSway): GeometryBuffers;
|
|
16
|
+
export declare function sweepBranch(branch: SkeletonBranch, sides: number, random: number, season?: PartSeason, growth?: GrowthWindow, sway?: PartSway, stem?: StemSweep): GeometryBuffers;
|
|
9
17
|
/** Concatenates geometry buffers into one (indices are offset). */
|
|
10
18
|
export declare function mergeBuffers(parts: GeometryBuffers[]): GeometryBuffers;
|
|
11
19
|
//# sourceMappingURL=mesh.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mesh.d.ts","sourceRoot":"","sources":["../../src/generator/mesh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"mesh.d.ts","sourceRoot":"","sources":["../../src/generator/mesh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAQ,MAAM,SAAS,CAAC;AAEnF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,0GAA0G;AAC1G,MAAM,WAAW,SAAS;IACxB,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAUD;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,UAA0D,EAClE,MAAM,GAAE,YAAmC,EAC3C,IAAI,CAAC,EAAE,QAAQ,EACf,IAAI,CAAC,EAAE,SAAS,GACf,eAAe,CA6CjB;AAyDD,mEAAmE;AACnE,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,eAAe,CAwBtE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CrownVolume } from './crown';
|
|
2
|
+
import type { GeometryBuffers } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Adds `aOcclusion` (1 float per vertex) to each of `parts` (wood, leaves, Fruit). A tree without leaves
|
|
5
|
+
* has no crown to hide under: every vertex is open (1).
|
|
6
|
+
*/
|
|
7
|
+
export declare function bakeOcclusion(parts: readonly GeometryBuffers[], leaves: GeometryBuffers, crown: CrownVolume): void;
|
|
8
|
+
//# sourceMappingURL=occlusion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"occlusion.d.ts","sourceRoot":"","sources":["../../src/generator/occlusion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA0B/C;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,CAmBlH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TreeDefinition } from '../definition';
|
|
2
|
+
import type { Random } from '../random';
|
|
3
|
+
import type { SkeletonBranch, SkeletonRoot } from './types';
|
|
4
|
+
/** Sections along a Root while `roots.sections` is absent. */
|
|
5
|
+
export declare const ROOT_SECTIONS = 4;
|
|
6
|
+
/** Sides around a Root while `roots.sides` is absent: about two thirds of the trunk's. */
|
|
7
|
+
export declare const rootSides: (definition: TreeDefinition) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Grows the Roots (ADR 0007) of every Stem in `stems` (the Stems left after the Sculpt pass, as
|
|
10
|
+
* they are after it: a deleted Stem has none, a moved one keeps them at its base, a scaled one
|
|
11
|
+
* scales them with its length). Stem `<p>`'s Roots are `<p>/r0`, `<p>/r1`, ...; Root i draws only
|
|
12
|
+
* from `random.fork('roots/<p>/<i>')` and the Stem's turn from `random.fork('roots/<p>')`, so Roots
|
|
13
|
+
* never change the wood, leaves or Fruit, and one Stem's Sculpts never change another's Roots.
|
|
14
|
+
*/
|
|
15
|
+
export declare function growRoots(definition: TreeDefinition, stems: SkeletonBranch[], random: Random): SkeletonRoot[];
|
|
16
|
+
//# sourceMappingURL=roots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roots.d.ts","sourceRoot":"","sources":["../../src/generator/roots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAQ,MAAM,SAAS,CAAC;AAGlE,8DAA8D;AAC9D,eAAO,MAAM,aAAa,IAAI,CAAC;AAc/B,0FAA0F;AAC1F,eAAO,MAAM,SAAS,GAAI,YAAY,cAAc,KAAG,MAC+B,CAAC;AA8BvF;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY,EAAE,CAY7G"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { TreeDefinition } from '../definition';
|
|
2
2
|
import type { Random } from '../random';
|
|
3
3
|
import type { SkeletonBranch } from './types';
|
|
4
|
+
/** How far a Stem's base ring sinks straight down below the ground, as a fraction of the trunk radius (no seam on uneven terrain). */
|
|
5
|
+
export declare const BASE_SINK = 0.1;
|
|
6
|
+
/** Root Flare zone: the bottom fraction of a Stem's length (measured along it, after Sculpts) that widens. */
|
|
7
|
+
export declare const FLARE_ZONE = 0.12;
|
|
8
|
+
/** Root Flare width: at `flare` = 1 the base ring is (1 + this) × the trunk radius. */
|
|
9
|
+
export declare const FLARE_WIDTH = 0.8;
|
|
10
|
+
/** Extra rings the trunk sweep puts in the Root Flare zone while `trunk.flareSections` is absent (the low-poly Style sets 2). */
|
|
11
|
+
export declare const FLARE_SECTIONS = 3;
|
|
4
12
|
/**
|
|
5
13
|
* Builds the Stems: `trunk.stems` full trunks standing in a small ring at the base, paths "0", "1", ...
|
|
6
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trunk.d.ts","sourceRoot":"","sources":["../../src/generator/trunk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"trunk.d.ts","sourceRoot":"","sources":["../../src/generator/trunk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,SAAS,CAAC;AAcnE,sIAAsI;AACtI,eAAO,MAAM,SAAS,MAAM,CAAC;AAC7B,8GAA8G;AAC9G,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,uFAAuF;AACvF,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B,iIAAiI;AACjI,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,EAAE,CAevF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CrownVolume } from './crown';
|
|
1
2
|
export type Vec3 = [number, number, number];
|
|
2
3
|
/** One point on a branch's centre line. */
|
|
3
4
|
export interface SkeletonPoint {
|
|
@@ -20,6 +21,13 @@ export interface SkeletonBranch {
|
|
|
20
21
|
direction: Vec3;
|
|
21
22
|
points: SkeletonPoint[];
|
|
22
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* One Root (ADR 0007). It has the shape of a `SkeletonBranch`, but it is not a branch: `path` is
|
|
26
|
+
* `<stem path>/r<i>` (e.g. "0/r0") and `parent` is its Stem's path. `level` and `attach` are only
|
|
27
|
+
* placeholders for Roots (always 0) so the wood mesh can sweep a Root like the trunk; they do not mean a
|
|
28
|
+
* branching level or a place on the Stem. `direction` is the way the Root leaves the Root Flare (out and down).
|
|
29
|
+
*/
|
|
30
|
+
export type SkeletonRoot = SkeletonBranch;
|
|
23
31
|
/**
|
|
24
32
|
* One leaf. `id` is `<branch path>/<index>`, stable for a given Definition and Seed,
|
|
25
33
|
* so leaf Sculpts (painting) can address it.
|
|
@@ -75,6 +83,12 @@ export interface TreeSkeleton {
|
|
|
75
83
|
leaves: SkeletonLeaf[];
|
|
76
84
|
/** Fruit on the outermost twigs (empty without a `fruit` block). */
|
|
77
85
|
fruit: SkeletonFruit[];
|
|
86
|
+
/**
|
|
87
|
+
* Roots (ADR 0007), Stem by Stem (empty without a `roots` block), with paths `<stem path>/r<i>`
|
|
88
|
+
* (e.g. "0/r0", "0/r1") and their Stem's path as `parent` (see `SkeletonRoot`).
|
|
89
|
+
* Not in `branches`, where parentless entries are the Stems.
|
|
90
|
+
*/
|
|
91
|
+
roots: SkeletonRoot[];
|
|
78
92
|
}
|
|
79
93
|
/** A custom per-vertex attribute: `itemSize` floats per vertex. */
|
|
80
94
|
export interface VertexAttribute {
|
|
@@ -85,6 +99,10 @@ export interface VertexAttribute {
|
|
|
85
99
|
* Per-vertex attributes every tree mesh carries; Growth, Season and Wind (tickets #6-#8)
|
|
86
100
|
* are computed from these in TSL, and may add their own entries.
|
|
87
101
|
* A "part" is a branch (wood mesh) or a leaf (leaves mesh).
|
|
102
|
+
*
|
|
103
|
+
* Only when the Definition sets `materials.occlusion` (Structural Occlusion) is there also `aOcclusion`
|
|
104
|
+
* (float, 0 = occluded .. 1 = open), baked on the fully grown tree with every leaf on from the depth in the
|
|
105
|
+
* Crown Volume and the leaf cover above; independent of Season and of the strength (the material mixes that in).
|
|
88
106
|
*/
|
|
89
107
|
export interface TreeAttributes {
|
|
90
108
|
[name: string]: VertexAttribute;
|
|
@@ -138,12 +156,14 @@ export interface GrowthTiming {
|
|
|
138
156
|
leaves: GrowthWindow[];
|
|
139
157
|
/** Fruit grows only at the end of Growth (from about 0.9), on a fully grown twig. */
|
|
140
158
|
fruit: GrowthWindow[];
|
|
159
|
+
/** Roots grow like the trunk: present from Growth 0 ({ start: 0, end: 0 }), scaled with the whole tree. */
|
|
160
|
+
roots: GrowthWindow[];
|
|
141
161
|
}
|
|
142
162
|
/** Everything the Generator produces for one Definition + Seed. Pure data, Node-safe. */
|
|
143
163
|
export interface TreeData {
|
|
144
164
|
seed: number;
|
|
145
165
|
skeleton: TreeSkeleton;
|
|
146
|
-
/** Wood mesh: trunk and all branches. */
|
|
166
|
+
/** Wood mesh: trunk and all branches, then the Roots. */
|
|
147
167
|
wood: GeometryBuffers;
|
|
148
168
|
/** Leaf cards, vertex coloured. Empty buffers for a bare tree. */
|
|
149
169
|
leaves: GeometryBuffers;
|
|
@@ -151,5 +171,11 @@ export interface TreeData {
|
|
|
151
171
|
fruit: GeometryBuffers;
|
|
152
172
|
/** When each part grows (the Seed shifts it within `variation.growth`). Also in the `aGrowth` attribute. */
|
|
153
173
|
growth: GrowthTiming;
|
|
174
|
+
/**
|
|
175
|
+
* The Crown Volume: one ellipsoid around all leaves of the fully grown tree (every Stem's), in tree
|
|
176
|
+
* space. Always computed, deterministic per Definition and Seed, and not part of the geometry or its
|
|
177
|
+
* hash. Measure points against it with `crownDistance` and `crownNormal`.
|
|
178
|
+
*/
|
|
179
|
+
crown: CrownVolume;
|
|
154
180
|
}
|
|
155
181
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/generator/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAA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CAAC;IACzB;;;;OAIG;IACH,KAAK,EAAE,eAAe,CAAC;CACxB;AAED,qFAAqF;AACrF,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,YAAY,CAAC;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,YAAY,CAAC;IAClB,wDAAwD;IACxD,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,4FAA4F;AAC5F,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,qFAAqF;IACrF,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2GAA2G;IAC3G,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,yFAAyF;AACzF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,yDAAyD;IACzD,IAAI,EAAE,eAAe,CAAC;IACtB,kEAAkE;IAClE,MAAM,EAAE,eAAe,CAAC;IACxB,oFAAoF;IACpF,KAAK,EAAE,eAAe,CAAC;IACvB,4GAA4G;IAC5G,MAAM,EAAE,YAAY,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,WAAW,CAAC;CACpB"}
|
package/dist/growth/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/growth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,SAAS,EACT,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/growth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,SAAS,EACT,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC"}
|
package/dist/growth/tsl.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Node } from 'three/webgpu';
|
|
2
|
+
/** Size of the whole tree at Growth `g` (twin of `treeScale`): the scale `growthPosition` gives the tree. */
|
|
3
|
+
export declare const growthScale: (g: Node<"float">) => Node<"float">;
|
|
2
4
|
/**
|
|
3
5
|
* Growth in TSL: the vertex position of a tree part at Growth `growth` (a float node, usually the
|
|
4
6
|
* tree's Growth uniform; a Forest can pass a per-instance attribute instead). Same model and steps
|
package/dist/growth/tsl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsl.d.ts","sourceRoot":"","sources":["../../src/growth/tsl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tsl.d.ts","sourceRoot":"","sources":["../../src/growth/tsl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKzC,6GAA6G;AAC7G,eAAO,MAAM,WAAW,GAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAG,IAAI,CAAC,OAAO,CAA8D,CAAC;AAW1H;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,QAAQ,GAAE,IAAI,CAAC,MAAM,CAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,CAa1G"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createTree, Tree, type CreateTreeOptions, type TreeOptions } from './tree';
|
|
2
2
|
export * from './definition';
|
|
3
3
|
export * from './season';
|
|
4
|
-
export { hashGeometry, hashTreeData, type TreeData, type GrowthTiming, type GrowthWindow, type TreeSkeleton, type SkeletonBranch, type SkeletonPoint, type SkeletonLeaf, type SkeletonFruit, type GeometryBuffers, type TreeAttributes, type VertexAttribute, type Vec3, } from './generator';
|
|
4
|
+
export { crownDistance, crownNormal, hashGeometry, hashTreeData, type CrownVolume, type TreeData, type GrowthTiming, type GrowthWindow, type TreeSkeleton, type SkeletonBranch, type SkeletonPoint, type SkeletonLeaf, type SkeletonFruit, type SkeletonRoot, type GeometryBuffers, type TreeAttributes, type VertexAttribute, type Vec3, } from './generator';
|
|
5
5
|
export { createRandom, type Random } from './random';
|
|
6
6
|
export { createBarkMaterial, createLeafMaterial } from './materials';
|
|
7
7
|
export { DEFAULT_TEXTURE_BASE_PATH, getTextureOptions, loadTexture, resolveTextureUrl, setTextureOptions, textureReady, type TextureKind, type TextureOptions, } from './textures';
|
|
@@ -9,8 +9,9 @@ export { assertWebGPURenderer, UnsupportedRendererError } from './renderer';
|
|
|
9
9
|
export { Wind, sceneWind, WindResponse, type WindDirection, type WindOptions } from './wind';
|
|
10
10
|
export type { TreeStyle } from './styles/types';
|
|
11
11
|
export type { StyleSource } from './styles/apply';
|
|
12
|
-
export type { SpeciesDefinition, SpeciesTrunkDefinition, SpeciesBranchLevelDefinition, SpeciesFoliageDefinition, SpeciesBarkDefinition, SpeciesFruitDefinition, } from './species/types';
|
|
12
|
+
export type { SpeciesDefinition, SpeciesTrunkDefinition, SpeciesBranchLevelDefinition, SpeciesFoliageDefinition, SpeciesBarkDefinition, SpeciesFruitDefinition, SpeciesRootsDefinition, } from './species/types';
|
|
13
13
|
export { loadStyle, STYLE_NAMES, styleLabel, styleOfShading, type StyleName } from './styles/registry';
|
|
14
|
-
export {
|
|
14
|
+
export { materialFeaturesOf, SUGGESTED_MATERIAL_FEATURES, withMaterialFeatures } from './styles/material-features';
|
|
15
|
+
export { bakeTree, disposeBakedTree, exportBakedTree, type BakeOptions, type ExportBakedTreeOptions, type MaterialFeatureExtras, } from './bake';
|
|
15
16
|
export { createForest, Forest, ForestTree, ForestVariant, type ForestOptions, type ForestPlacement, type ForestInstanceState, type ForestTreeTraits, } from './forest';
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AACpF,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,IAAI,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,aAAa,EA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