Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
moveanimalzones [2017/04/06 10:07]
jdmfarms
moveanimalzones [2017/05/24 14:27] (current)
Line 29: Line 29:
 In the terrain editing window scroll down to the info layer painting section.  Select the appropriate info channel for the animal type.  Only one info channel should be selected.   In the terrain editing window scroll down to the info layer painting section.  Select the appropriate info channel for the animal type.  Only one info channel should be selected.  
 <​code>​ <​code>​
-[color=blue]Info Channel:   Cows   0+Info Channel:   Cows   0
                   Sheep  1                   Sheep  1
-                  Chickens  2 [/color]+                  Chickens  2 
 </​code>​ </​code>​
 In  the 3D viewport the info layer for that channel (cows in this example) will be shown in white.  To remove the info layer use the subtract function.  By default this is the right mouse button (RMB).  Press and hold the RMB while moving the cursor over the info layer area .   In  the 3D viewport the info layer for that channel (cows in this example) will be shown in white.  To remove the info layer use the subtract function.  By default this is the right mouse button (RMB).  Press and hold the RMB while moving the cursor over the info layer area .  
Line 42: Line 42:
 Now the info layer can be painted at the new location.  Use the add function to paint the info layer (default LMB).  In the figure below I am using a square brush to help conform to the rectangular pasture.   The info layer uses small squares, but the jagged edges will be smoothed out when the nav mesh is recreated. Now the info layer can be painted at the new location.  Use the add function to paint the info layer (default LMB).  In the figure below I am using a square brush to help conform to the rectangular pasture.   The info layer uses small squares, but the jagged edges will be smoothed out when the nav mesh is recreated.
  
-[img width=900 height=510]http://​img-eu1.fs-uk.com/​123811_10_05_16_11_17_24_2.jpeg[/​img]+[img=http://​img-eu1.fs-uk.com/​123811_10_05_16_11_17_24_2.jpeg[/​img]
  
  
 When the info layer is all painted the nav mesh can be recreated.  First select the nav mesh in the scenegraph.  In this case that is the CowNavMesh within the cowsHusbandry transform.  Then go to the Create menu and select Navigation Mesh. When the info layer is all painted the nav mesh can be recreated.  First select the nav mesh in the scenegraph.  In this case that is the CowNavMesh within the cowsHusbandry transform.  Then go to the Create menu and select Navigation Mesh.
  
-[img width=900 height=508]http://​img-eu1.fs-uk.com/​123811_10_05_16_11_17_24_3.jpeg[/​img]+[img=http://​img-eu1.fs-uk.com/​123811_10_05_16_11_17_24_3.jpeg[/​img]
  
  
 The build navigation mesh window will open.  Enter a value in the agent radius field for the animal type. The build navigation mesh window will open.  Enter a value in the agent radius field for the animal type.
- +<​code>​ 
-[color=blue]Radius Value: Cows 1.2+Radius Value: Cows 1.2
                   Sheep  0.7                   Sheep  0.7
-                  Chickens  0.15[/color] +                  Chickens  0.15 
 +</​code>​
 In the fields for shape build mask and culling info layer channels select the channel for the animal type (0 for cows).  To do this select the ellipse (....) and in the dialog box select clear then check the appropriate channel.  Then select Recreate which is the middle button at the bottom of the window. In the fields for shape build mask and culling info layer channels select the channel for the animal type (0 for cows).  To do this select the ellipse (....) and in the dialog box select clear then check the appropriate channel.  Then select Recreate which is the middle button at the bottom of the window.
  
-[img width=750 height=518]http://​img-eu1.fs-uk.com/​123811_10_05_16_11_17_24_4.jpeg[/​img]+[img=http://​img-eu1.fs-uk.com/​123811_10_05_16_11_17_24_4.jpeg[/​img]
  
  
 Make the navigation meshes visible to verify that the nav mesh is how you want it.  From the View select Show and Navigation Meshes. Make the navigation meshes visible to verify that the nav mesh is how you want it.  From the View select Show and Navigation Meshes.
  
-[img width=900 height=514]http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_0.jpeg[/​img]+[img=http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_0.jpeg[/​img]
  
  
 The nav mesh will be blue in the 3D viewport.  You can deselect info layer paint mode so the white info layer is not visible.  All of the animal types nav meshes will be visible. The nav mesh will be blue in the 3D viewport.  You can deselect info layer paint mode so the white info layer is not visible.  All of the animal types nav meshes will be visible.
  
-[img width=900 height=517]http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_1.jpeg[/​img]+[img=http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_1.jpeg[/​img]
  
  
 If there are buildings or objects within the nav mesh you can paint the info layer around them to keep the animals from walking through them.  You can also use the shape build mask so that the editor will automatically avoid the building.  To do this select the building or object.  In the attributes window shapes tab set the value for the build nav mesh mask field to the animal type.  Below is a screenshot for a chicken coop.  Note that the channel 2 is selected, which is the info channel for chickens. If there are buildings or objects within the nav mesh you can paint the info layer around them to keep the animals from walking through them.  You can also use the shape build mask so that the editor will automatically avoid the building.  To do this select the building or object.  In the attributes window shapes tab set the value for the build nav mesh mask field to the animal type.  Below is a screenshot for a chicken coop.  Note that the channel 2 is selected, which is the info channel for chickens.
  
-[img width=900 height=342]http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_2.jpeg[/​img]+[img=http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_2.jpeg[/​img]
  
  
 If your pasture is on steep terrain you may find that the animals are walking in the air or through the ground.  This is due to the max climb and the slope limit for the nav mesh.  These values can be adjusted when the nav mesh is recreated.  Keep the values reasonable.  If the slope limit is too high the animals can climb building walls. If your pasture is on steep terrain you may find that the animals are walking in the air or through the ground.  This is due to the max climb and the slope limit for the nav mesh.  These values can be adjusted when the nav mesh is recreated.  Keep the values reasonable.  If the slope limit is too high the animals can climb building walls.
  
-[img]http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_3.jpeg[/​img]+[img=http://​img-eu1.fs-uk.com/​123811_10_05_16_11_18_51_3.jpeg[/​img]
  
  
 The last tip I have is to not make the area of the navigation mesh too large.  Large nav meshes require a lot of computer memory to generate.  This will have a negative effect on game performance.  I found that point in the book "​Farming Simulator Modding for Dummies"​.  Which brings me to the credits.   The last tip I have is to not make the area of the navigation mesh too large.  Large nav meshes require a lot of computer memory to generate.  This will have a negative effect on game performance.  I found that point in the book "​Farming Simulator Modding for Dummies"​.  Which brings me to the credits.  
  
-[color=blue]Credits:​ +[color=blue]Credits:​\\ 
-Farmer Yip's video tutorials on YouTube +Farmer Yip's video tutorials on YouTube\\ 
-Farming Simulator Modding for Dummies +Farming Simulator Modding for Dummies\\ 
-FS-UK tutorials and knowledge base +FS-UK tutorials and knowledge base\\ 
-Giants Software: Editor+Giants Software: Editor\\
 [/color] [/color]