[1.2.1] - 2026-12-02
Changed
- Collapsed 6-tier woody LODs to 2 real 3D tiers (removed
plant_build_lod2.h) and baked canonical 31-species icons (248 PNGs), pruning 36 orphan directories.
[1.2.0] - 2026-12-02
Added
- 6-Tier Woody LOD Builders, Crown AO Parity & Pheno-Fitted Proxies (
include/nd/plant_build_woody.h,include/nd/plant_mesh3d.h,include/nd/plant_mesh_prim.h): - Added 6-tier woody LOD geometry builders, crown ambient occlusion parity, and pheno-fitted canopy proxies (
2d78286). - Continuous Canopy & Scree Light Competition (
include/nd/plant.h,src/libnd-plant.c): - Added
nd_plant_eval_cover()andnd_plant_eval_cover_dims()backed bynd_plant_noise_eval_core()to drive overstory canopy budgets, feathered forest-edge thinning, heavy-scree herb suppression, and shade competition from continuous cover fields (canopy_u8,rock_u8) (a29077b).
[1.1.0] - 2026-12-02
Added
- Cross-Platform 9/9 Packaging (
Makefile,.github/workflows/ci.yml): - Added Windows MinGW64 link flags (
-lcorm -lstele,-Wl,--export-all-symbols), explicitlibcorm/per-OSxxhashdependencies, and enabled Arch Linux (pacman), Windows (winget+ Scoop), Android (android-lib), and iOS (ios-lib+ SwiftPM XCFramework) packaging alongsidedeb,apk,rpm,brew, andopenbsd. - 31-Species Botanical Catalog, Modular 3D Mesh Engine & 5-Stage Ontogeny (
include/nd/plant_model.h,include/nd/plant_mesh3d.h,include/nd/plant.h,data/plants.dsv,src/libnd-plant.c): - Expanded botanical catalog to 31 species with continuous-trait emitters (
645b579). - Introduced modular 3D botanical mesh engine, single-source species table, and 5-stage ontogeny (
83f5718). - Parametric 3D Botanical Model & Fractal Skeleton Engine (
include/nd/plant_model.h,include/nd/plant.h,IDEA.md,docs/species/): - Added
<nd/plant_model.h>with parametric botanical growth simulation (PlantSpeciesDef,PlantGenome,PlantInstance,plant_species_init_preset(),plant_simulate_at_time(),plant_sim_solve_pipe_model_allometry(),plant_build_light_voxel_grid(), and wire serializationplant_genome_serialize()/deserialize()). - Implemented true 4-order fractal tree branching, conical conifer spire whorls, sympodial crown-break forking, and proportional tree stature calibrated to a 40 cm lamb (
lamb.png,IDEA.md, and 10 species botanical dossiers underdocs/species/). - Extended
<nd/plant.h>with foliage, bark, and floral accent genetics (ND_PLANT_FOLIAGE_*,ND_PLANT_BARK_*,ND_PLANT_ACCENT_*,nd_plant_skel_genes_t,nd_plant_genes_t) and 4-variant bit packing (ND_PLANT_VAR_MAX = 4,ND_PLANT_ART_VAR_MAX = 4). - Procedural 3D Botanical Mesh Builder (
include/nd/plant_mesh3d.h): - Added pure-C 3D botanical geometry synthesis (
plant_geometry_build(),nd_m3d_build_plant_from_genes(), spline trunk/bough tubes, leaf/frond cards, blossoms, berries) alongside compound meadow grass clumps (nd_m3d_build_meadow_clump()), understory props (nd_m3d_build_understory_prop()), and shrubs (nd_m3d_build_shrub_prop()). - Procedural Foliage, Grass, Bark & Terrain Atlases (
include/nd/plant_foliage_atlas.h): - Added RGBA albedo + tangent-space normal map bakers and mip downsamplers for conifer/broadleaf/lobed/blade foliage (
nd_foliage_atlas_bake_level0()), 1024ร512 meadow/prairie grass tufts (nd_grass_atlas_bake_level0()) with wispy tufts and brighter shrub palettes, seamless 256ร256 bark (nd_bark_atlas_bake_level0()), and 256ร256 terrain detail (nd_terr_atlas_bake_level0()). - Botanical Sprite Generation Pipeline & 3D-Baked Flora Art (
scripts/gen.py,prompt_template.md,art/plant/,data/plants.dsv,ref/): - Added
scripts/gen.pysupporting multi-variant (1,2,3) and multi-stage (small,big) world-space sprite generation with auto-sync intodata/plants.dsvandinclude/nd/plant.h(plus style referencesref/cythea.jpg,ref/helicoa.jpg). - Added height-classified world-map flora sprites and tangent-space normal maps (
small$< 0.5\text{ m}$,medium$0.5\text{โ}3\text{ m}$,big$> 3\text{ m}$) and regenerated all plant albedo sprites and normal maps as clean 3D-baked orthographic PNGs without chromakey spill. - Procedural Canopy Occupation & Moisture Competition (ยง7.3,
include/nd/plant.h): - Added
nd_plant_canopy_competition()modeling multi-scale dominant tree crown suppression (R_crown) and arid/desert root-zone moisture exclusion (R_root) so emergent trees suppress sub-canopy trees while boosting shade-adapted understory flora in humid biomes and creating natural root-competition spacing in arid biomes. - Deterministic Biome Flora Evaluation (
data/plants.dsv,include/nd/plant.h,docs/SPEC.md): - Added
nd_plant_spec_t,nd_biome_flora_profile_t, and deterministic flora evaluation helpers in<nd/plant.h>for shared server/client biome canopy density, tree-vs-herb weighting, and drought/cold hardiness, and expandeddocs/SPEC.mdwith the physical scale ladder (1 px = 1 wu = 4 cm) and object dimension tables.
Fixed
- Species Alignment, SKEL Bounds & Growth Geometry (
src/libnd-plant.c,include/nd/plant_model.h,include/nd/plant_mesh3d.h): - Aligned
plant_refsbyspec_idxand guarded unloaded species and SKEL bounds (d16c132). - Enforced upright trunk, apical-fork, and multi-order shrub elevation floors (
3074777) and fixed downward trunk/bough hooks, conifer crown-cap drops, and boreal heights (7ebc2e9). - Variant
art_id/sideSync with 3D Plant Meshes & Centered 3D-Baked Avatars (include/nd/plant.h,src/libnd-plant.c,art/plant/): - Raised
ND_PLANT_ART_VAR_MAXfrom 2 to 4, packedside(uint8_t) as the first field ofPLA(read aspkt.sidebynd-mcp), and synchronizedobj.art_idwith the spatial(rx, ry, side)hash used by the 3D plant mesh generator (22a8e0e). - Regenerated and centered all 4-variant (
1..4) 3D-baked orthographic plant avatar PNGs and tangent-space normal maps acrosssmallandbigstages (22a8e0e,c17af78). - 3D Mesh Color Unpack & Root Geometry (
include/nd/plant_mesh3d.h,include/nd/plant_foliage_atlas.h): - Fixed
0xAABBGGRRvertex color unpacking, added deep fluted root flare geometry, and added 6-point sinuous surface roots. - Coastal Flora Transition & Tile Zero-Initialization (
src/libnd-plant.c,include/nd/plant.h): - Zero-initialized
plant_tile_tinplant_noise_decorate(memset(&pd, 0, sizeof(pd))) and enabled flora generation across coastal water transitions (he >= w || !r.is_water). - Tuned biome canopy structure and rainfall thresholds for balanced woodland, savanna, desert oasis, and alpine flora distribution.
Changed
- Portable
libstele/mkBuild Modernization (Makefile,Doxyfile,.github/workflows/ci.yml): - Migrated to
include ttypt/include.mkvia Make search paths, dropped legacy../mkfallback, adoptedCFLAGS-LIB/CFLAGS-BIN, and alignedDoxyfileand CI dependencies withlibstele(93aa8ee,ea7f3d6,6cdb241,ef96d7f,092b4ca). - Refactored
stlloglogging comments, removedadd-prefixMakefile paths, and cleaned module dependencies.
[1.0.3]
- Declarative DSV Table (
data/plants.dsv): - Exported 10 botanical species into declarative
data/plants.dsvtable. - Refactored
src/libnd-plant.cto load flora definitions dynamically viand_table_load(). - Two-Header Architecture (
<nd/plant-types.h>): - Extracted public types header
<nd/plant-types.h>definingplant_tile_t. - Documentation:
- Standardized README with man-src, art, and modder guide.
[1.0.2]
- The sibling
-Ilines are gone.CFLAGS += -I$(shell cd .. && pwd)/โฆ
pointed at the axil-nd/nd sibling checkouts and only existed for a dev build: in CI those directories do not exist and every header comes from the installed packages named in .github/workflows/ci.yml. The build now resolves <nd/โฆ> the way a packager sees it.
- macOS: link with
-undefined dynamic_lookup. macOSldrejects
undefined symbols in a shared library, but WARN needs stllog โ an engine-provided function pointer resolved at dlopen time (Linux allows this by default). -undefined dynamic_lookup is the Darwin equivalent, set as LDFLAGS-libnd-plant-Darwin so no other platform is affected.
[1.0.0]
- **nd-plant is now an installable library rather than a build artifact of
the engine.** It builds and installs exactly two files, lib/libnd-plant.so and include/nd/plant.h, following the same layout as axil-tty and axil-auth, and the same layout nd-core was converted to first. Previously make produced a plant.so named by the engine's mods.load and installed nothing. There is no lib/nd-plant.so symlink: mods.load names this module libnd-plant, the installed filename, and module_load_path() only appends .so.
- The link line is libxylem alone.
LDLIBS := -lxylem; the engine is not
linked. NEEDED is libxylem.so and libc.so.6. XXH32 comes from <xxhash.h>, which is self-contained for XXH32 โ no -lxxhash needed (the old module got it from <nd/nd.h>, which is gone).
- The map tile is declared in
<nd/plant.h>.plant_tile_tlives there
because the engine's map layer and nd-mob (spawn density) read it. No XY_DECLs โ nd-plant implements engine hooks only.
- Fixed a one-byte stack overflow in
plants_shuffle. The bubble pass
ran i <= 3 over the 3-element apln, writing apln[3]; the bound is now i < 3. Latent since the initial commit โ nothing implemented on_noise while the module was unloaded, so the function had never run โ and exposed by this port the first time vanilla's on_new_player teleported a player through noise_full. Also memset(pd.id, 0, 3) โ sizeof(pd.id).
object_addtakes 4 args, not 5 (the old creation-flags tail is
dropped), and nd_owritef-style calls are snprintf + nd_rwrite โ a va_list cannot cross the XY boundary. The old on_icon body is now a core_icon_decorate decorator.
- Dropped the
nd-mod.mkdependency.nd-mod.mkhas now been deleted.