Better looking procedurally generated log blocks of voxels


Bark now has vertical lines in noise pattern, reduced noise on rings so they are less obscured by noise, and center of cylinder's vertical axis is calculated from center of block to eliminate four notches that were present at four cardinal directions of bark and edges of wood.  Noise patterns are all generated based on world coordinates of each voxel which means tiling adjacent blocks will also tile noise patterns and the same exact noise will be generated for a given procedurally generated block type and size if placed, removed, then placed again at the same world location.  (I also improved the efficiency of deleting blocks from the scene [left-click like in Minecraft], but there's nothing visual to show for that.)

P.S.  This what a log looks like when cut into:


P.S.P.S.  And what a red brick block looks like when cut into:


Leave a comment

Log in with itch.io to leave a comment.