Procedural Pine Tree Creation
A downloadable tool for Windows
Procedural pine tree creation, simple random forest scene.
Can save Pinetree as B3D mesh. (about 1000 Tris)
Includes Blitz3D source, containing code for:
-procedural pine tree creation
-simple random forest scene
-grass (static so far)
-2-level LOD using quads with prerendered perspective textures
-skybox
-walktrough
-save B3D mesh
-save texture with alpha to 32bit TGA
controls:
cursor and mouselook to steer
space to toggle demo mode.
s to save the tree mesh as b2_Pne4m\my_pinetree.b3d
d to toggle duck / stand
esc to exit
License: free to use including commercially.
Update V 1.1:
This 2nd version fixes some LOD handlng bugs. It also uses 4 times more
prerendered perspective textures for the distant trees:
new is 12x12=144 on a 2048x2048 texture.
However, there is a systemic problem: when a mesh with a
masked texture is alphaed from 0.9999... to 1.0, there is a
noticeable pop-in artefact, far from smoothly fadeing in.
Also the UV setting to select a certain perspective doesn't
work well and results in sideways jumping trees. This could
be fixed by using 144 individual textures instead on the
single atlas texture used now, but it seems a bit extreme.
For now I conclude the LOD system is pretty bad and you
may get rid of it completely, or replace it.
I've also added an alternatively saved pine leaf texture, using
an other scaling algorithm to create the mip maps for the dss
texture, this is crispier, maintains details in the distance,
but also flickers more and may look more like acorn than pine
due to it'd crispyness. Anyway, try it and use the one you like
more. (TANNE-LE.dds)
Status | Released |
Category | Tool |
Platforms | Windows |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | jfkEO1010etc |
Tags | 3D, blitz3d, Forest, Open Source, tree |
Install instructions
Extract in a folder of your choice and run the exe, or load the source in Blitz3D and hit F5.
Development log
- Update for procedural pine treeNov 11, 2021
Comments
Log in with itch.io to leave a comment.
^^ Thanks a lot! It looks better with some bushes, have a look at Relic Hunter, and feel free to use that bush mesh and texture that comes with it. (Scaletexture tex,0.25,0.25 to increase leaf count ^^)
ah that's great! perhaps some LOD or billboarding next to improve performance.. 😊
The trees use the billboard LOD already, causing some pop-in artefacts. Bushes are only 250 pieces in the whole area, using EntityAutofade, and are very lowpoly. But a better LOD is due, admitted.