Trouble creating venation pattern by using FX-Map
- September 3, 2023
- 1 reply
- 440 views
Hello, for now I am creating the tiny veins (or you can deem it as the smallest venation level of leaf) of the Japanese Maple by using the FX-Map node. The reason I choose this node instead of the general Voronoi node and cells node is that I am not satisfied with the result generated by them.
Based on my observation of the actual leaf of Japanese Maple, I discovered that its tiny veins look like the combination of the “Y” shape. One “Y” ‘s middle branch connects to another “Y” ’s left or right branch and repeat this process until a net structure is formed.
For now, I come up with two ideas to achieve this effect. I attached images bellow to illustrate them. The basic logic of the first one is that I separate the “Y” shape into 3 branches and only focus on generating branches on one side at first and set some conditions to generate another side later. The problem is that I must set a counter variable for each “Y” shape ‘s connecting point to judge whether the number of lines connecting to each point is less than 3. However, I did not find any way to dynamically generate and set variables.
Another one is to generate three branches from the center in the first loop. After that, two branches are generated from the end points of each branch generated in the first step. Rest is just repeat the second step. However, the problem is the same, I need to set variables dynamically for each new end points in each loop.
I hope I can receive assistance from someone because I have already worked on it for a relatively long time and don’t want to give up.
