Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Terrain sentences let agents are able to feel terrains and interactive with them, adapt the shape of terrain, such like follow the height and align the orientation.
For making the agents are able to feel terrains, we need mark terrain for that piece of plane mesh in Miarmy Terrain Manager.

...


The terrain sentence will first find the closest terrain and return only one result to input results (Fuzzy logic Pipeline).

Shown as the following picture, in this moment, the agent A can only feel and interactive with terrain 1 and the agent B can only feel and interactive with terrain 2



Agents are able to feel the closest terrain in scene


The ground channel will I'm higher than terrain distance sentence will return the height underneath the feet of agent.

For example and take a look at the following picture, the ground channel will return 3 for first agent, 0 for second agent, minus 4 for third agent and 2 for last agent.



The ground channel terrain sentence example for agents

I'm higher than terrain distance > 0 :This sentence means I'm higher than terrain (then I need to go down)

I'm higher than terrain distance < 0 :This sentence means I'm higher than terrain (then I need to go up)

The ground.dz will return the angle  


The I'm on terrain UPHILL(DOWNHILL) will return the relationship between the Z-axis of agent and the terrain plane of that agent place, for example the following picture, the first agent will return α = 35 is on "uphill" because the ground in-front is higher, and the second agent will return β = -40 is on "downhill" because the ground in-front is lower, whereas the third agent will return 0 is on "plane" because the ground in-front is align to Z-axis of current agent.



The ground.dz channel example for agents

...

agents from left to right are "uphill", "downhill" and "plane" relationship to terrain


The higher terrain on LEFT(RIGHT) sentence is very familiar with "I'm on terrain UPHILL(DOWNHILL)" sentence, nothing special but testing the X-axis (left/right terrain height).

In following picture, the first agent will return α = 40 because the right terrain is on terrain which right higher, and the second agent will return β = -35 because the left terrain is on terrain left higher. The third agent will return 0 is on "plane" because the x-axis of agent is align to the terrain



The ground.dx channel example for agentsagents from left to right are "right higher", "left higher" and "plane" relationship to terrain


Once we get the relationship between the agents and terrain, we can move the agents up and down, rotate them forward up or backwarddown, and roll left or right for adapting the terrain



Using with ground, ground.dx and ground.dz, terrain sentences, we can align our agent seamless to terrain


Note: the  

The agents can read the information from deforming terrain, but it may not accurate when the deformation is big, because there is a Maya Bugbug.

For avoiding the bug, we just need simply create a geometry cache (alembic) for that terrain and remove the deformers.

...