Original Poisson Botanical Meadow

Contents Previous Next

Install

npm install -g @lmctl-ai/lmctl

lmvideo 0.1.38 is released. Source examples are pinned to public commit aab2677.

Download lmvideo 0.1.38

Original8m undulating terrain with10200 surface-normal-aligned shared clumps, each containing3 baked-bend grass blades, a closed octahedral pebble and a five-petal flower.

Verified acceptance capture, reproducible with the lmvideo 0.1.38 prerelease runtime.

Run this example

lmctl autorun https://raw.githubusercontent.com/lmctl-ai/lmvideo/aab2677a4b6264ae6afae8ad64a1d7c1dcd3a052/examples/showcase/bench-28-botanical-meadow.lms

Source

# B28: original normal-aligned Poisson meadow; static clump phase geometry.
mkdir("build");program=_lmcode_ cli="lmvideo" install="github:lmctl-ai/lmvideo@v0.1.38";
let scene=scene3d().threads(4).background("#b8d8ec").ambient(0.0).environment(environment_linear(1,1,"0.35,0.45,0.65"),0.55,0.0,false).tonemap("aces",1.0);
scene.camera(camera3d().look_at(6.6,4.08,8.16,0.0,0.35,0.0).perspective(43.0,0.1,50.0));
let heights=image_pattern(25,25,"0.35+0.18*sin(6.2831853*x)*cos(6.2831853*y)","0.35+0.18*sin(6.2831853*x)*cos(6.2831853*y)","0.35+0.18*sin(6.2831853*x)*cos(6.2831853*y)","1");
let terrain=mesh_heightfield(heights,8.0,8.0,1.2);
scene.add(terrain,material("#49603a",0.0,0.95));
let clump=mesh_triangles("0.0055,0,0,0.0125,0,0,0.01816362432,0.0825,0.004086036188,0.0055,0,0,0.01816362432,0.0825,0.004086036188,0.01256362432,0.0825,0.004086036188,0.01256362432,0.0825,0.004086036188,0.01816362432,0.0825,0.004086036188,0.03013677462,0.15,0.01350755765,0.01256362432,0.0825,0.004086036188,0.03013677462,0.15,0.01350755765,0.02993677462,0.15,0.01350755765,-0.008,0,0.007794228634,-0.001,0,0.007794228634,-0.001343201022,0.0825,0.0002401502165,-0.008,0,0.007794228634,-0.001343201022,0.0825,0.0002401502165,-0.006943201022,0.0825,0.0002401502165,-0.006943201022,0.0825,0.0002401502165,-0.001343201022,0.0825,0.0002401502165,-0.003220499245,0.15,-0.01717793142,-0.006943201022,0.0825,0.0002401502165,-0.003220499245,0.15,-0.01717793142,-0.003420499245,0.15,-0.01717793142,-0.008,0,-0.007794228634,-0.001,0,-0.007794228634,-0.008420423301,0.0825,-0.004326186405,-0.008,0,-0.007794228634,-0.008420423301,0.0825,-0.004326186405,-0.0140204233,0.0825,-0.004326186405,-0.0140204233,0.0825,-0.004326186405,-0.008420423301,0.0825,-0.004326186405,-0.02661627538,0.15,0.003670373777,-0.0140204233,0.0825,-0.004326186405,-0.02661627538,0.15,0.003670373777,-0.02681627538,0.15,0.003670373777,0.018,0.014,0.008,0.027,0.007,0.008,0.018,0.007,0.016,0.018,0.014,0.008,0.018,0.007,0.016,0.009,0.007,0.008,0.018,0.014,0.008,0.009,0.007,0.008,0.018,0.007,0,0.018,0.014,0.008,0.018,0.007,0,0.027,0.007,0.008,0.018,0,0.008,0.018,0.007,0.016,0.027,0.007,0.008,0.018,0,0.008,0.009,0.007,0.008,0.018,0.007,0.016,0.018,0,0.008,0.018,0.007,0,0.009,0.007,0.008,0.018,0,0.008,0.027,0.007,0.008,0.018,0.007,0,-0.016,0,-0.012,-0.013,0,-0.012,-0.013,0.12,-0.012,-0.016,0,-0.012,-0.013,0.12,-0.012,-0.016,0.12,-0.012,-0.014,0,-0.014,-0.014,0,-0.01,-0.014,0.12,-0.01,-0.014,0,-0.014,-0.014,0.12,-0.01,-0.014,0.12,-0.014,-0.014,0.12,-0.012,-0.005,0.121,-0.006,0.003,0.124,-0.012,-0.014,0.12,-0.012,0.003,0.124,-0.012,-0.005,0.121,-0.018,-0.014,0.12,-0.012,-0.01692518615,0.121,-0.001586389387,-0.008746711096,0.124,0.004167960777,-0.014,0.12,-0.012,-0.008746711096,0.124,0.004167960777,-0.005512507953,0.121,-0.00529459332,-0.014,0.12,-0.012,-0.02480786446,0.121,-0.0115640347,-0.0277532889,0.124,-0.002007650711,-0.014,0.12,-0.012,-0.0277532889,0.124,-0.002007650711,-0.01775444144,0.121,-0.001855830763,-0.014,0.12,-0.012,-0.01775444144,0.121,-0.02214416924,-0.0277532889,0.124,-0.02199234929,-0.014,0.12,-0.012,-0.0277532889,0.124,-0.02199234929,-0.02480786446,0.121,-0.0124359653,-0.014,0.12,-0.012,-0.005512507953,0.121,-0.01870540668,-0.008746711096,0.124,-0.02816796078,-0.014,0.12,-0.012,-0.008746711096,0.124,-0.02816796078,-0.01692518615,0.121,-0.02241361061,-0.014,0.126,-0.012,-0.01,0.123,-0.012,-0.014,0.123,-0.008,-0.014,0.126,-0.012,-0.014,0.123,-0.008,-0.018,0.123,-0.012,-0.014,0.126,-0.012,-0.018,0.123,-0.012,-0.014,0.123,-0.016,-0.014,0.126,-0.012,-0.014,0.123,-0.016,-0.01,0.123,-0.012,-0.014,0.12,-0.012,-0.014,0.123,-0.008,-0.01,0.123,-0.012,-0.014,0.12,-0.012,-0.018,0.123,-0.012,-0.014,0.123,-0.008,-0.014,0.12,-0.012,-0.014,0.123,-0.016,-0.018,0.123,-0.012,-0.014,0.12,-0.012,-0.01,0.123,-0.012,-0.014,0.123,-0.016","0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125").colors("0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.035,0.24,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.055,0.27,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.075,0.3,0.035,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.23,0.19,0.14,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.04,0.22,0.03,0.65,0.045,0.18,0.65,0.045,0.18,0.65,0.045,0.18,0.65,0.045,0.18,0.65,0.045,0.18,0.65,0.045,0.18,0.65,0.055,0.2,0.65,0.055,0.2,0.65,0.055,0.2,0.65,0.055,0.2,0.65,0.055,0.2,0.65,0.055,0.2,0.65,0.065,0.22,0.65,0.065,0.22,0.65,0.065,0.22,0.65,0.065,0.22,0.65,0.065,0.22,0.65,0.065,0.22,0.65,0.075,0.24,0.65,0.075,0.24,0.65,0.075,0.24,0.65,0.075,0.24,0.65,0.075,0.24,0.65,0.075,0.24,0.65,0.085,0.26,0.65,0.085,0.26,0.65,0.085,0.26,0.65,0.085,0.26,0.65,0.085,0.26,0.65,0.085,0.26,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025,0.85,0.52,0.025");
let instances=scene.add_instances(clump,material("#ffffff",0.0,0.85).double_sided(true));
instances.scatter_on_mesh(terrain,3400,8021,true,0.04);instances.scatter_on_mesh(terrain,3400,8022,true,0.04);instances.scatter_on_mesh(terrain,3400,8023,true,0.04);
image_assert_true(instances.size()==10200);
scene.directional_light(-0.4,2.0,1.0,"#fff3d1",2.0);
scene.save_job("build/bench-28-botanical-meadow.lmjob",900,560,"cycles",64,8,20261106,true);
scene.render_image(900,560,2).save("build/b28-preview.png");
scene.render_image(900,560,"cycles",64,8,20261106,true).save("build/bench-28-botanical-meadow.png");
out.print("B28: 10200 shared clumps; each has3 bent blades,1 closed pebble and1 five-petal flower; .04m cross-batch Poisson spacing and normal alignment;3 static baked bend phases, no wind solver");
end _lmcode_
r=run_lmcode(program);assert(r.ok,(r.ok ? "" : r.message));println(json_stringify(r.result));

Raw LMScript source

A grassy meadow containing flowers and pebbles on uneven terrain.
The repeated plant clumps follow the slope of the ground.
A grassy meadow containing flowers and pebbles on uneven terrain.
The repeated plant clumps follow the slope of the ground.