# Thread: World Tools forest tutorial

1. ## World Tools forest tutorial

Hi, as requested by Old Bear i'm writing there a small tutorial on how to build forests with world tools.

First of all, obtain your latest copy of World Tools software. This can be achieved by visiting Armaholic.com http://www.armaholic.com/page.php?id=10508.

Start World Tools and click on File->New Project menu, or the first top left icon. World tools can start with or without an background picture. This picture is for FENCE placement tool, so you can easily skip the load of a picture in the first screen, if you want to place forests.

We suppose your map is 10240x10240 meters in this example, so select a "preview bitmap size" of 5120 (Note that only multiples of 512 can be used on background pictures, if used, with a 5120 limit).

At this point check the multiplier. With a 2x multiplier we have a 5120x2 = 10240 final world size. That is what we need.
For a 20480x20480 the multiplier is... yes, true. 4

Click on Apply to start. The red button on bottom right becomes green and in the status bar on bottom left you can read your world size.

Click on the green tree on the icon menu.

At this point we need a mask image. Mask image is a background image in false colours that will drive world tools through the placement of the objects.

In MM2 user must use a 3 colors map (red, green, blue) and can select only one object type per color.
In world tools you can use images with 256 colors max, and assign MULTIPLE objects to each color, following some rules.

On forest generator click on LOAD FOREST MASK button and load the above image.
Now click on ANALYZE IMAGE to let world tools understand you gave it a Jackson Pollock paint.

World tools will show you all the colors used by Pollock to draw this mask image.

We focus on green color, for this example:
you can read, on green row:

Color[A=255, R=20, G=213, B=20]: this is the green color identification. If you have some green color variations you can easily identify those colors by their A-RGB color, or by clicking on a spot on the map.

[0%]: this is the probability for AN OBJECT to be placed in this color. 0% means NO WAY to have something placed on the green color (and the row color is grayed)

(10,29% of total): this is the amount of THIS color on the map. Sometimes you can have 2 gradations of color on the mask, very similar, made by paint software approximations and painting tools. This indicator show you what is the color that you can ignore due his lower presence in the mask.

Well... click on the green color row, if not already did, and you can notice a "placement probability" slider on top center of the window. This is the PROBABILITY that one object could appear on a GREEN pixel. 10% means you have 10% probability on each green pixel of the map to have something place on it.
BEWARE: Don't play so high with this slider... a 3-4% probability is a lot, even it seems too low.

Now, set the slider to 2% (you can finetune with right-left arrows on your keyboard). If done the row turn to black.

But... what will appear on this color? actually nothing... Click on SIMULATION button and you can see... nothing. And this is correct, we didn't assigned any object there.
Right click on the green row, and set "ADD OBJECT TYPE"

I've pre-loaded a big amount of default arma2 objects and some objects from Berghoff tree's project. If objects are not in this list you can easily ADD THEM by clicking on the 3-box icon on the top menu bar. Follow instructions to do this, as it is outside of our tutorial needs.
If you can't find your needed objects on this list (OA plants aren't mapped, but if you plan to add them export your object configuration file and send it to me, to be added in the next release, this will save me a lot of work, to be used on other more useful project parts) or if you have renamed objects in your Visitor 3 artificial/natural object list you can add them by writing their name into "custom object" tab.

Assuming you're standard, select "TREES" on the first drop down menu, and select the t_salix2s tree type.
At this point give it a placement probability moving the slider to the right. 0-100 probability could be used and will explained below. Set 20% (+-)

Now repeat the above operations selecting a t_pinuss2f object, with 80% probability

Now we have 2 objects below the green color, with some percentages (can be changed by click on the object and moving the slider in the top center of the screen:

Now the final explanation. READ ACCURATELY:

There is a probability for a COLOR to have an object on it. This is defined by the COLOR percentage, set on the color itself.

This percentage tells the program how to determine if an OBJECT will be placed. If the roll dice is successfully catching the color percentage AN OBJECT will be placed there.

WHAT OBJECT? the percentages of the 2 objects defined in the color definition tells the mix of objects that will be (randomly) placed on the color, IF the color percentage is match.
So world tools, if decides to place an object, will try to determine what kind of object based on the required object distribution. if object percentages sum is > 100% or less than 100% those percentages will be RESCALED to 100%

In this example, on 2% of green pixel there will be an object placed, that will be a salix in the 20% of attempts, and a pinus in the 80%.

If you have a very small mask image, compared with the world size each pixel represent a very large square on the map. square size is shown on the bottom of the forest window: in this case 20x20 meters each pixel.

If you increase percentages you will cover MORE green pixels, but you can have, for each 20x20 square, only ONE object. If pixel size is 40x40 (for a 512 mask on a 20km map) one object every 40 meters is too sparse, even if you raise color probability to 100% (each square will have an object, but squares are too big).
In this case, select the green color row and you can notice, on top of the forest window, a MAXIMUM OBJ PER PIXEL. Increasing this number you can place MORE THAN 1 object on each green pixel of the mask. those objects are still subject to the 2% appearance probability.

The randomixe obj number flag tells the program that, before attempt to placing the 5 object you select on the box as maximum, it will randomize the pixel under evaluation and attempts to place a variable number from 1 to 5 on this pixel, instead of 5 objects attempts (still with 2% placement probability set on green color).

All those parameters will help you creating a very realistic and randomly sparsed forest on your map.

If you click on SIMULATION button you can obtain an evaluation of the objects that will be created, without waiting for the CREATE! function that will creates objects for you on the final istance.

Right of the green tree on the top menu bar you can see a green card. This is the export function to Visitor 3 importable format (how this works is covered on World Tools online help on About->Help menu)

Finally: If you use world tools on your map a small note on your readme map file will be a nice satisfaction for me

Hope this helps

2. Thank you very much for these explanations, and congratulations for your work.
It's a very nice tool which, in my opinion, will serve very long.

3. wwooo, thanks shezan.

4. Is the tutorial complete now or are you still going to add text to it?

Originally Posted by shezan74
Finally: If you use world tools on your map a small note on your readme map file will be a nice satisfaction for me
Yeah you wish, take a guess how many OFP islands were made with WrpTool and no mentioning in the readme... all I'm saying is, don't get your hopes up for such crediting.

5. Originally Posted by Snake Man
Is the tutorial complete now or are you still going to add text to it?

Yeah you wish, take a guess how many OFP islands were made with WrpTool and no mentioning in the readme... all I'm saying is, don't get your hopes up for such crediting.
Tutorial is complete on Forest Generation base features.
There is also a remap function to remap existing forests and a bitmap exportation tool to have tree positions for post-production works. Those 2 features are covered by online manual.
In the next days i will try to wrote a script/fence manual or, maybe, a youtube video

About credits... i need 5 seconds to see if a vegetation has been placed using world tools or by hand/randomobjectplacer/maskmapper...
Forest variation and mix that world tools make in some seconds could be achieved only with several hours of hand placement or extensive use of masks on maskmapper.
So, by watching a map, i can be 90% sure of method used.

This is a nice satisfaction too

By the way... all my maps are made with World Tools. On Fallujah map this software saved me near 100 hours of hand work, letting me dedicate on something more important. Same on Spritz Island.

6. I'm not a maker..but these make me want to jump in a give it a shot!! Nice work!!

7. Can you make islands with just this program or do you need visitor aswell?

8. Originally Posted by ArmAriffic
Can you make islands with just this program or do you need visitor aswell?
Vistor3 remains a necessary evil.

9. Thx a lot for that tool, although i am just doin my first steps in visitor (and still think WRP tool in OFP was very luxurios compared to V3), i can survey the time spare due that tool.

Idirectly gave it a try,everything worked fine up to the moment i treid to export to a visitpo format.
The summary opens, with nothing in there.
When i click simulation i can see my 3 different trees in their counts.

What is running wrong here?

Btw. for testing i used your example mask and just used the green colour.
All remaining colours were left without objects.

Furthermore i receive several times the "error" my map would contain too much colours.(it is black and white), do i have to take care awhile saving the map?
Am using photoshop.
If the import then works correct (just red and black map)i get a long list of different red tone colours.
See that example

I am sure i am using "wrong colour mode" or sth like that....

10. Originally Posted by Nephris1
Idirectly gave it a try,everything worked fine up to the moment i treid to export to a visitpo format. The summary opens, with nothing in there.
When i click simulation i can see my 3 different trees in their counts.
What is running wrong here?
Simulation doesn't actually create nothing. Just simulates the final numbers.
The objects will be generated on "Create" button press.

Furthermore i receive several times the "error" my map would contain too much colours.(it is black and white), do i have to take care awhile saving the map?
To help reducing the list of found colors on the image the maximum colors allowable for mask map is 256. By the way you have a black/white mask map or you're trying to use the heightmap as mask map?

Am using photoshop.
If the import then works correct (just red and black map)i get a long list of different red tone colours.
See that example
I am sure i am using "wrong colour mode" or sth like that....
As far as i can see on the left column the various color percentages are all near 0,03% of the whole image.
That means you've used a full color indexed image with a paint tool that doesn't write in a single color but with a full soft range of colors at the line edges. That goes into a wide range of colors on your final map.
You can save "for web" in GIF format and reduce color count or use the "posterize" function but it's better to use PENCIL tool instead of brush when creating the image.

Small colors still on the map with small percentages could be ignored, but doesn't help you to have a clear view of your mask

Best

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•