The forest grows Poly Haven's scanned firs and island trees, their leaves cut out from alpha textures and their trunks blocking through low-poly proxies #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/3896-the-forest-s-trees-look-like-toys-flat-c"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracker: #3896
The first map's forest of Kenney toy trees becomes 900 of Poly Haven's CC0 scanned trees at their real heights, with bark and leaf textures: 603 firs (
fir_tree_01, 12 to 16 m tall) and 297 small coastal broadleaves (island_tree_02, 3 to 4.5 m).assets/prefabs/polyhaven_tree.pymakes each prefab from the tree's downloaded Poly Haven.blend, reduced to what a forest can draw: the fir from its 54927-triangleLOD2to 26507 triangles (trunk decimated to a tenth, branches to a half, every needle card kept), the island tree from its 322050-triangleLOD1to 41009 (trunk and twigs decimated, 12% of its leaf clusters kept, each grown 2.2 times). Each texture is an 8-bit PNG underassets/textures/, the leaf ones RGBA from the diffuse and alpha maps; every.blendand texture has a.mdnaming its source URL, size, MD5, publication date and CC0 licence. The Kenney tree prefabs are gone; the shipwreck stays Kenney's.hulken_collisionis true, every ray visibility off so Blender renders nothing of it, collides and draws nothing. Each tree's trunk collides through an 8-sided, 22-triangle frustum; nothing the tree draws collides. The first map's world file shrinks from 17.9 to 12.5 MB.tools/forest_bench.sxdraws 672 views (a 20 m grid of eyes standing in the forest, 8 yaws each) at 1280x800 offscreen on Metal, keeps each view's fastest of 3 frames, begun to drained, and prints the slowest. On m5, in one session: the Kenney forest of master'sfirst_map.blend0.62 ms slowest (0.24 ms mean); this branch 4.29 ms slowest (3.20 ms mean), within the 8.3 ms budget. The trees need no distance LODs at this cost, so the bake reads none.tests/bake_extract.pygains 13 cases (the cut-out read and its refusals, among them a texture's Color into Alpha, the proxy read, instanced, and its refusals), its water case feeds the water's Alpha from the texture feeding its Base Color, and its linked-prefab case links the fir and its proxy;tests/bake_stage.sxpins the cut-out flag, the premultiplied texel, the refusal and the proxies' triangles in the world alone;tests/cutout_draws.sxdraws a checker of opaque and clear texels minified to mip levels 2 and 3 as a cut-out, which must draw the opaque colour as a quad of that colour does;tests/first_map_world.sxpins a fir's trunk keeping a walker clear of its axis and a body falling through its crown to the ground;tests/first_map_views.sxcompares a forest view withtests/pixels/forest-metal.png, which fails on master's Kenney forest (138882 of 144000 pixels). Each of 25 mutants of the new rules fails a test.Agra's check in the app, that the forest looks realistic, is still to come.