11/18/2023 0 Comments Magicavoxel separationThe birthValues defines the counts of alive neighbours necessary for a cell to be born (change state from dead to alive). The survivalValues defines the counts of alive neighbours necessary for a cell to survive (stay at its current alive state). The format of a valid Extended rule is as follow :Į survivalValues / birthValues neighbourhoodType neighbourhoodRange ![]() The command accepts many other rule formats (Life S/B, Generations S/B/C, Vote for Life, Cyclic R/T/C/N, LUKY and NLUKY) but they were originally designed for 2D, most of them allowing only values up to 9. It is recommended to use the custom "Extended" rule format. The rule describes the formula applied on each cells to update its state. You can also execute xs -n 5 erode, to execute it 5 times, etc. Then in MagicaVoxel, load a model (for example monu1 or monu9) and execute xs erode in its console to execute it once. ![]() This will create a file called erode.txt containing the voxel shader. In your console / terminal, go into the shader folder of your MagicaVoxel install and execute cavoxelshader "E 4.6 / 6 von-neumann" 0 > erode.txt. Here "E 4.6 / 6 von-neumann" is the rule and 0 is the out-of-bound value. Examples cavoxelshader "E 4.6 / 6 von-neumann" 0 > erode.txt When used without filename, will list all the files of the current directory with their details to stdout. ![]() cavoxelshader info Įxtracts the details of a given generated file (rule, outOfBoundValue and version) to stdout. With npm do: npm install cellular-automata-voxel-shader -g Generate a voxel shader (for MagicaVoxel) from a custom CA rule.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |