Versions Compared

Key

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

Since Miarmy 3.5, we added ground terrain color perception logic. Now the agent can feel the color of the ground and also the gradient of the color.

...

  • Feel terrain color and perform some behaviors
  • Feel terrain color gradient and do not exit the range of color

 

...

Terrain Color

...

Sentences

...

Terrain Color

...

ground.r

Intensity

the color intensity of my position Return 0~1 based on the red component of  intensity of ground color in position

ground.g

Return 0~1 based on the green component of ground color in position

ground.b

Return 0~1 based on the blue component of ground color in position

 

Color Gradient

 

more darker on LEFT/RIGHT

 

more darker in FRONT/BACK


 

Ground Color Gradient Example

Support there are 4 agents on terrain in 4 positions and feel different gradient of the texture color

All agents face same direction just different position

Image Removed

ground.r.dx

The left and right agents tested x axis and if the gradient decreasing (left agent), the "ground.r.dx" channel will return negetive 0-1.

Whereas the right agent, the x axis gradient is increasing, then this channel will return a positive value between 0~1

 

 

ground.r.dz

Similiar like x direction, if the z axis gradient increasing, then return 0~1 positive values (agent in back).

And if the gradient decreasing, this channel return negative 0~1 (agent in front)

 

 

Similiar channels test green color and blue color

ground.g.dx

ground.g.dx

ground.b.dx

ground.b.dxImage Added

  • agent 1: 
    more dark in FRONT will return true
  • agent 2:
    more dark in FRONT will return true
  • agent 3:
    more dark on RIGHT will return true
  • agent 4:
    more dark in BACK will return true