Terrain Tutorial – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Image:" to "[[File:")
 
(75 intermediate revisions by 12 users not shown)
Line 1: Line 1:
== Introduction ==
{{TOC|side}}[[File:Terraintutoverview.jpg]]
[[Image:Terraintutoverview.jpg]]


''This simple learning by doing tutorial will explain the basic process of creating a Island in ArmA2.
''This simple learning by doing tutorial will explain the basic process of creating an island for Arma 2, Operation Arrowhead or Combined Operations.


What the tutorial will deal with:
What the tutorial will deal with:


*''Setup Editing Tools 2
# Setup Editing Tools 2
*''Preparing the Working folder  
# Preparing the Working folder  
*''Setup Visitor & The Landscape
# Setup Visitor & The Landscape
*''Binarizing your world properly.
# Binarizing your world properly.
*''Adding Objects
# Adding Objects
*''Add more Surfaces
# Add more Surfaces


= Part 1 =


==== Setup Editing Tools 2 ====
== Relevant sources about terrain creation ==


* ''It´s pretty important to choose a proper place to install the '''BI Editing tools 2''' before starting with anythings else (a clean empty partition is highly recommended).
* [[Visitor 3 Manual]]
* ''In this tutorial we will use Partition '''O:\'''
* [[Visitor 3: Making of simple landscape]]
** ''1: Download the [ftp://downloads.bistudio.com/Tools/BI_Editing_Tools_2_Setup.zip BI Editing Tools 2]
* [[Making Satellite Texture and Mask]]
** ''2: Create a folder called '''BIS TOOLS 2''' in your designated Partition ('''O:\BIS TOOLS 2\''' in our example)
* [[Layered Terrain Surface Representation]]
** ''3: Open or extract the dowloaded zip file and start the '''BI_Editing_Tools_2_Setup.exe'''
* {{Link|link= http://xrserver.com/ArmA%20II/Tools/ZGM%20ARMA%202%20Map%20Making%20Tutorial%20PART%201&2.pdf|text= ZGM Mapmaking Tutorial Part 1&2 PDF}} by '''ZeroG''' ({{Link|link= http://forums.bistudio.com/showthread.php?p=1788790|text= source}})
** ''4: The installer is basically self explanatory, the actual important process is to change the directory for each tool.[[Image:Tutorial_tool_install_1.jpg]]
*** ''Make sure to define the respective path for each tool (e.g.: '''O:\BIS TOOLS 2\'''Oxygen 2, '''O:\BIS TOOLS 2\'''Visitor 3 .....and so on).
** ''5: All tools should be installed now in respective directory ('''O:\BIS TOOLS 2\'''). Every Tool is stored in its own folder.
[[Image:Tutorial_tool_install_2.jpg]]
*xp home users-- a P partition will be auto created where then *after you can make a BIS 2 TOOLS folder with the 8 tools  manually moved to this folder.  An Armawork folder should have auto installed in your my documents also.


*** [http://www.youtube.com/watch?v=m9rpAbC0pPM Video Tutorial : Setup Editing Tools 2]


==== Preparing the Working folder ====
== Installation of the BI Editing Tools 2 ==


It is very important to choose a proper place to install the '''BI Editing Tools 2''' before starting with anything else. <br>
A clean, empty partition is '''highly recommended''' (see [http://www.google.com/search?hl{{=}}en&q{{=}}how%20to%20create%20a%20partition&lr{{=}} how to create a partition]).


* ''[http://community.bistudio.com/wiki/Tools_Drive A virtual drive (P:)] will be emulated automatically while installtion process of the tools.
In this tutorial we will use the partition: '''O:\'''.
* ''This is actually just a association of the '''O:\BI TOOLS 2\ArmAWork\''' folder in our example.
* ''One should think about which objects one would like to use on the map. For basic understanding we keep the amount of used objects pretty low, to avoiding loosing the overlook.
* ''Drive '''P:''' already contains the '''ca''' folder which fruther contains a couple of unpacked pbo files and another folder called Roads2.


===== Setup =====
* 1: Download the [[BI_Tools_2|BI Editing Tools 2]] first.
* 2: Next create a folder called '''BIS TOOLS 2''' in your designated partition. In our example: '''O:\BIS TOOLS 2\'''.
* 3: Open or extract the downloaded zip file and start the '''BI_Editing_Tools_2_Setup.exe'''.
* 4: The installer is basically self explanatory. <br> Make sure to change the directory for each tool from the default location to your desired folder.
 
In our example: '''O:\BIS TOOLS 2\'''.
 
[[File:Tutorial_tool_install_1.jpg]]
 
Make sure to define the respective path for each tool. E.g.:
'''O:\BIS TOOLS 2\'''Oxygen 2
'''O:\BIS TOOLS 2\'''Visitor 3
.. and so on.
 
* 5: All tools should be installed now in respective directory ('''O:\BIS TOOLS 2\'''). <br> Every Tool is stored in its own folder:
 
[[File:Tutorial_tool_install_2.jpg]]
 
=== Video Tutorial ===
 
You can watch the installation process in this [http://www.youtube.com/watch?v{{=}}m9rpAbC0pPM Video Tutorial : Setup Editing Tools 2].
 
 
== The mysterious P: drive ==
 
A new partition called '''P:''' will be automatically created during the setup. An '''ArmAWork folder''' will be created in your '''my documents''' folder as well.
 
..\my documents\ArmAWork
 
Understand that the '''P: drive''' the '''ArmAWork folder''' are the same. They are just different views on the same folder.
 
You can read more about the [[Tools_Drive|tools drive here]].
 
Note that the name ''tools drive'' is very misleading. It is '''your editing workspace (virtual) drive'''.
 
'''The P: drive has two main tasks''':
 
# Your personal workspace. So the place where you files will reside.
# Extracted source files from BI or other sources you want to use in your terrain.
 
More details below.
 
Note that '''P: Drive''' already contains the '''ca''' folder. '''ca''' is the project space from BI.
 
'''Never ever''' put ''your files'' into p:\ca\*.
 
In this folder we will extract the source of the BI files currently still in the PBO as part of the game folder.
Right now the ca folder contains a couple of unpacked pbo files already and another folder called Roads2.
 
We will ignore these for now.
 
 
== Extract BI addons to P: ==


* ''1: Go to '''P:\CA\''' and create a new folder called '''plants2'''.
* ''1: Go to '''P:\CA\''' and create a new folder called '''plants2'''.
* ''2: Browse to your '''ArmA2 main directory/Addons''' folder and unpack the plants2_'''bush''', plants2_'''clutter''', plants2_'''misc''', plants2_'''tree''' .pbo's
* ''2: Browse to your '''Arma 2 main directory/Addons''' folder and unpack the plants2_'''bush''', plants2_'''clutter''', plants2_'''misc''', plants2_'''tree''' .pbo's
** '''How to Extract Pbo files?'''  
** '''How to Extract Pbo files?'''  
** ''Dowload the latest Versions of '''ExtractPbo''' and '''DePbo''' by '''Mikero''' at [http://dev-heaven.net/projects/list_files/mikero-pbodll DevHeaven]
** ''Download the latest Versions of '''ExtractPbo''' and '''DePbo''' by '''Mikero''' at {{Link|link= http://dev-heaven.net/projects/mikero-pbodll/files|text= DevHeaven}}
** ''Extract them right into our Tutorial partition O:\ComTools\ExtractPbo.....(xp home users extract tools to a manual folder called Com Tools in the P partition.)
** ''Extract them right into our Tutorial partition O:\ComTools\ExtractPbo.....(xp home users extract tools to a manual folder called Com Tools in the P partition.)
** ''Move the '''DePbo.dll''' from the dowloaded DePbo into the ..Windows\System32 folder (as explained in the readme.DePbo.txt)
** ''Move the '''DePbo.dll''' from the downloaded DePbo into the ..Windows\System32 folder (as explained in the readme.DePbo.txt)
** ''Rightclick on a *.pbo and choose Open with, then point to the ExtractPbo\ExtractPbo.exe and mark the checkbox to always open this filetype with ExtractPbo.exe.
** ''Rightclick on a *.pbo and choose Open with, then point to the ExtractPbo\ExtractPbo.exe and mark the checkbox to always open this filetype with ExtractPbo.exe.
** ''Now each time you unpack a *.pbo by doubleclick you´ll recieve a clean unpacked file with *.p3ds, config.cpp and all other stuff from the pbo.
** ''Now each time you unpack a *.pbo by doubleclick you'll receive a clean unpacked file with *.p3ds, config.cpp and all other stuff from the pbo.
** ''There are of course much further ways to extract pbos and unrap config.bin's but this is a very conformable one.
** ''There are of course much further ways to extract pbos and unrap config.bin's but this is a very conformable one.
* ''3: Rename this extracted folders by removing "plants2_" of the name.
* ''3: Rename this extracted folders by removing "plants2_" of the name.
* ''4: Cut&Paste the '''bush''', '''clutter''', '''misc''' and '''tree''' folders to the new created '''P:\CA\plants2\''' folder.
* ''4: Cut&Paste the '''bush''', '''clutter''', '''misc''' and '''tree''' folders to the new created '''P:\CA\plants2\''' folder.
* ''5: Do the same with the '''building2.pbo'''. This time you dont need to rename anythings.
* ''5: Now extract '''building2.pbo''', and place the output in the same directory as plants2. This time you don't need to rename anything.
* ''6: Now extract the '''Ca.pbo''' but only Cut&Paste the stuff inside the extracted Ca.pbo to '''P:\CA\'''
* ''6: Now extract the '''Ca.pbo''' but only Cut&Paste the stuff inside the extracted Ca.pbo to '''P:\CA\'''
** ''You can do this with all other pbos but for this tutorial we are only using '''building2&plants2'''.
** ''You can do this with all other pbos but for this tutorial we are only using '''building2&plants2'''.
* ''7: When it´s done so your '''P:\CA\''' should look as shown in the picture below.  (xp home users convert all Chernarus content have folder/subfolders same name , .cpp file down in tut.)   
* ''7: When it´s done so your '''P:\CA\''' should look as shown in the picture below.  (XP home users convert all Chernarus content have folder/subfolders same name , .cpp file down in tut.)   
[[Image:Tutorial_tool_install_3.jpg]]


===== Your Project folder =====
[[File:Tutorial_tool_install_3.jpg]]


* ''1: Now you can create a own project Folder in your '''P:\''' drive. Optimal would be '''P:\'''[http://ofpec.com/tags/ TAG]\ name or an other short identification\namespace.
** ''In this Tutorial we will use as our Namespace '''P:\TUT'''
* ''2: Following now a quite important part where we make sure that we have working animations/ladders on our Terrain. For that we need the respective config files from each Object which we´re about to use within our terrain.
* ''3: To do that we can easy create a small bat or use the windows command line: Navigate to the P:\ca folder and
* ''4: Run the following dos command: '''xcopy *.cpp P:\<YourNamespace>\ca\ /S /Y'''  Or manually move the cpps with the correct folder structur to your namespace
*** '' If your not familiar with cmd then put this [http://dev-heaven.net/attachments/download/2379/copy_cpp.bat copy_cpp.bat] in your P:\CA\ foldier and run it.(xp-- P partition run,.cpp file to ca)
** ''This command creates a duplicate set of '\ca' folders under your namespace and copies only the config.cpp files to each subfolder.
** ''Read more about that in Synides Great Tutorial [[ArmA_Build_Environment_Setup]]


==== Setup Visitor ====
== Create Your Project folder ==
This Part of the Tutorial is still work in Progress(save after each step done)
* ''1: Dowload the '''[http://www.armaholic.com/brazil/addons/islands/TUT_SampleMap.zip Tutorial Sample Map]''' and extract it to our '''P:\TUT\''' folder so it will look like '''P:\TUT\TUT_SampleMap'''
* ''2: Run the '''O:\BI TOOLS 2\Visitor 3\Visitor3.exe'''
* ''3: Open '''Tools -> SystemPreferences''' and check if all pathes are correct
[[Image:Tutorial_tool_install_4.jpg]]
===== Start with our Project =====
* ''1: Open '''Project -> New''' (or press Ctrl+N)
* ''2: In the next '''Project parameters''' window select the values for:
** '''Terrain grid size''' 512x512
** '''Terrain cell size''' 10


[[Image:Tutorial_tool_install_5.jpg]]
The project folder is your workspace - the place you can go crazy inside and have all your files in.
** ''detailed informations about the Project Parameters can be read in the Visitor 3 Manual
* ''3: '''Go to Tools -> Project parameters''' and open the '''Calculator''' and put in '''Image Size (Pixels): 5120'''. Hit apply and close only the Calculator
[[Image:Tutorial_tool_install_6.jpg]]
* ''4: Open '''Tools -> ProjectPreferences''' and enter the path to your data folder (Textures): P:\'''TUT\TUT_SampleMap\Data\'''. Click ok and close.
[[Image:Tutorial_tool_install_8.jpg]]
* ''5: In the '''Project parameters''' window click on '''Base (active)''' and press the '''Edit''' Button. Choose 40x40m Texture size. Apply and close the '''Project parameters''' window[[Image:Tutorial_tool_install_7.jpg]]
===== Import Terrain =====
* ''1: Go to '''Open -> Import Terrain from Picture''' and browse to '''P:\TUT\TUT_SampleMap\Source\terrain\terrain.pbl'''
** ''Be sure you set the view to elevation colour style (hit the 5th button from the left) to see the contours.
[[Image:vis_b_Filter.JPG]]


===== Save after each step =====
First {{Link|http://www.ofpec.com/tags/index.php?action{{=}}register|register}} your personal '''tag''' at OFPEC. Read more about {{Link|http://ofpec.com/tags|tags}} at OFPEC. In short a tag is to avoid name conflicts.
* Goto '''Poject -> SaveAs''' and save your map as '''TUT_SampleMap.pew''' (add '''.pew''' to your filename, otherwise vis will not recognosize the file)


===== Import Satellite & Mask =====
This tutorial will use as the tag '''TUT'''. Make sure to use '''your own tag''' registered at OFPEC.
* ''1: Go to '''Tools -> Import Satellite + Mask..''' and browse to '''P:\TUT\TUT_SampleMap\Source\layer.cfg'''
* ''2: Select '''text''' mode for saving the rvmats in the next window .
* ''3: Visitor asks now for the Sat file so browse to '''P:\TUT\TUT_SampleMap\Source\sat_lco.png'''
* ''4: Same with the Mask point it to '''P:\TUT\TUT_SampleMap\Source\mask_lco.png'''
* ''5: The import process beginns right after you hit OK. That may take some minutes and Visitor might not respont untill process has finally finished.
* ''6: Point the mouse somewhere in the middle of the map and hit the center mousebutton (wheel). A white square appears right at this position (point of view).
* ''7: Start Buldozer via '''Project -> Connect to Buldozer''' (or hit the ! icon)
* ''8: Buldozer converts the Textures automatically from png to paa (DOS window)
* ''9: After the conversion process has finsished you should be able to see the landscape in buldozer. The textures will appear so more you zoom onto the surface.
* ''10: Switch back to Visitor by hit Alt+Tab (dont close buldozer) and goto '''Project -> Export World''' and save it under '''P:\TUT\TUT_SampleMap\TUT_SampleMap.wrp'''


==== Binarizing your world properly ====
With our new shiny tag, we create a '''namespace''' in the '''P:\ drive'''. In other words a subfolder. So go create it now.
 
For this tutorial it is: '''P:\TUT\'''.
 
Let us make the meaning of the project folder clear - The project folder is for '''all your various future projects'''. So for the individual projects we will soon create subfolders inside our '''project folder'''.
 
=== How to get working animations/ladders ===
 
Up next is the important part to make sure that we have working animations/ladders on our world.
 
For that '''we need the respective config files from each object''' which we are about to use within our world.
 
{{Feature|important|NOTE: You need all BI addons correctly extracted to P:\ca to get this working.}}
 
To do that we can easy create a small bat or use the windows command line:
 
==== Command line ====
# Press {{Controls|win|R}}
# Write '''cmd''' and press enter
# Write '''cd /D p:\ca''' and press enter
# Run the following command: '''xcopy *.cpp P:\<YourNamespace>\ca\ /S /Y'''
 
{{Feature|important|Adjust <YourNamespace> with your project folder name. The tutorial uses '''tut'''.}}
 
It will then copy all configs to your project folder with the correct folder structure.
 
==== Batch file ====
# Download {{Link|link= http://dev-heaven.net/attachments/download/2379/copy_cpp.bat|text= copy_cpp.bat}}.
# Put it in your P:\CA\ folder.
# Run it.
# Copy the '''ca folder''' from p:\tut to '''your own project folder'''.
 
Source of copy_cpp.bat:
xcopy *.cpp P:\TUT\ca\ /S /Y
 
 
Improved version to be able to run the batch from any location:
cd /D p:\ca
xcopy *.cpp P:\TUT\ca\ /S /Y
 
 
== Visitor 3 ==
 
=== Configure Visitor 3 ===
* 1: Download the '''{{Link|link= http://www.armaholic.com/brazil/addons/islands/TUT_SampleMap.zip|text= Tutorial Sample Map}}'''.
* 2: Extract it to our '''P:\TUT\''' folder - so it will look like '''P:\TUT\TUT_SampleMap'''.
* 3: Run the '''O:\BI TOOLS 2\Visitor 3\Visitor3.exe'''.
* 4: Also make a desktop shortcut to the Visitor3.exe (right mouse button -> send to -> desktop).
* 5: Open '''Tools -> SystemPreferences''' and check if all paths are correct.
* 6: You may wish to use -exthreads=0 setting in the command to launch buldozer as this dramatically reduces buldozer launch times when using the arma2oa.exe v1.55 and above.
 
[[File:Tutorial_tool_install_4.jpg]]
 
=== Update buldozer ===
 
TODO
 
Hint: If you are using arma2.exe from your present game version then you need to replace the bin folder in p:/ with the extracted bin.pbo from your present game version too, otherwise there is a mismatch of shaders.
 
=== Start with your new Visitor 3 project ===
 
* 1: Open '''Project -> New''' (or press {{Controls|ctrl|N}}).
* 2: In the next '''Project parameters''' window select the values for:
** Terrain grid size''' 512x512
** Terrain cell size''' 10
 
[[File:Tutorial_tool_install_5.jpg]]
 
You find detailed information about the '''Project Parameters''' in the [[Visitor_3_Manual|Visitor 3 Manual]].
 
* 3: '''Go to Tools -> Project parameters'''.
* 4: Open the '''Calculator'''.
* 5: Set '''Image Size (Pixels): 5120'''.
* 6. Hit apply and close only the calculator.
 
[[File:Tutorial_tool_install_6.jpg]]
 
* 7: Open '''Tools -> ProjectPreferences'''.
* 8: Enter the path to your data folder (textures), like: '''P:\TUT\TUT_SampleMap\Data\'''.
* 9: Click ok and close.
 
[[File:Tutorial_tool_install_8.jpg]]
 
* 10: In the '''Project parameters''' window click on '''Base (active)''' and press the '''Edit''' button.
* 11: Choose 40x40m texture size.
* 12: Apply and close the '''Project parameters''' window.
 
[[File:Tutorial_tool_install_7.jpg]]
 
=== Import the terrain data ===
 
* 1: Go to '''Open -> Import Terrain from Picture'''.
* 2: Browse to '''P:\TUT\TUT_SampleMap\Source\terrain\terrain.pbl'''.
 
Be sure you set '''the view''' to '''elevation color style''' (hit the 5th button from the left) to see the contours.
 
[[File:vis_b_Filter.JPG]]
 
=== Save after each step ===
 
* Goto '''Poject -> SaveAs''' and save your map as '''TUT_SampleMap.pew'''.
 
Add '''.pew''' to your filename. Otherwise Visitor 3 will not recognize the file in the future.
 
=== Import Satellite & Mask ===
 
* 1: Go to '''Tools -> Import Satellite + Mask..''' and browse to '''P:\TUT\TUT_SampleMap\Source\layer.cfg'''.
* 2: Select '''text''' mode for saving the rvmats in the next window.
* 3: Visitor asks now for the SAT file, so browse to '''P:\TUT\TUT_SampleMap\Source\sat_lco.png'''.
* 4: Same with the Mask - point it to '''P:\TUT\TUT_SampleMap\Source\mask_lco.png'''.
* 5: The import process begins right after you hit OK.
* 6: That may take some minutes and Visitor might not respond until process has finally completed.
* 7: Point the mouse somewhere in the middle of the map and hit the center mousebutton (wheel).
* 8: A white square appears right at this position (point of view).
* 7: Start Buldozer via '''Project -> Connect to Buldozer''' (or hit the ! icon in the top bar).
* 8: Buldozer will now automatically convert the textures from png to paa (shown in the command line window).
* 9: After the conversion process has finished you should be able to see the landscape in buldozer.
* 10: The textures will appear so more you zoom onto the surface.
* 11: Switch back to Visitor by hit Alt+Tab (don't close buldozer).
* 12: Go to '''Project -> Export World'''.
* 13: Save your world as '''P:\TUT\TUT_SampleMap\TUT_SampleMap.wrp'''.
 
 
== Binarizing your world ==


* ''1: Start BinPbo '''O:\BIS TOOLS 2\BinPBO Personal Edition\BinPBO.exe'''.
* ''1: Start BinPbo '''O:\BIS TOOLS 2\BinPBO Personal Edition\BinPBO.exe'''.
* ''2: Choose the '''P:\TUT\TUT_SampleMap''' in the addon/source directory field.
* ''2: Choose the '''P:\TUT\TUT_SampleMap''' in the addon/source directory field.
* ''3: Now go to your ArmA2 Main folder and create a new folder called '''@TUT'''. Open this one and create another one which is called '''Addons''' ('''F:\Games\ArmA 2\@TUT\Addons''').
* ''3: Now go to your Arma 2 Main folder and create a new folder called '''@TUT'''. Open this one and create another one which is called '''Addons''' ('''F:\Games\Arma 2\@TUT\Addons''').
* ''4: Back in BinPbo we set '''F:\Games\ArmA 2\@TUT\Addons''' as destination directory.
* ''4: Back in BinPbo we set '''F:\Games\Arma 2\@TUT\Addons''' as destination directory.
* ''5: Open the BinPbo options and remove '''*.wrp''' out of the '''list of files to copy directly'''
* ''5: Open the BinPbo options and remove '''*.wrp''' out of the '''list of files to copy directly'''
* ''6: In the path of temporary folder we set '''P:\BIN_TEMP'''
* ''6: In the path of temporary folder we set '''P:\BIN_TEMP'''
* ''7: Now remove the hook from use '''source path''' and enter '''p:\tut\'''
* ''7: Now remove the hook from use '''source path''' and enter '''p:\tut\'''
* ''8: We are ready to binarize our Island. Close the options tab and click on '''Pack'''. That may take a while, wait until '''''Ready''''' appears at the bottom of BinPBO.
* ''8: We are ready to binarize our Island. Close the options tab and click on '''Pack'''. That may take a while, wait until '''''Ready''''' appears at the bottom of BinPBO.
* ''9: After BinPbo has finsihed you should see in your '''F:\Games\ArmA 2\@TUT\Addons\''' folder the '''tut_samplemap.pbo''' and the logfile.
** ''if an error occurs, so buldozer will store the rpt logfile in '''C/user/Name/AppData/Local/Buldozer viewer'''.''
* ''10: Add the '''@TUT''' Mod folder to your ArmA2.exe shortcut ("F:\Games\ArmA 2\arma2.exe" '''-mod=@TUT -window -nosplash''') or use one of the meanwhile available ArmA2 launchers.
* ''9: After BinPbo has finished you should see in your '''F:\Games\Arma 2\@TUT\Addons\''' folder the '''tut_samplemap.pbo''' and the logfile.
* ''10: Add the '''@TUT''' Mod folder to your ArmA2.exe shortcut ("F:\Games\Arma 2\arma2.exe" '''-mod=@TUT -window -nosplash''') or use one of the meanwhile available Arma 2 launchers.
* ''Check out your map Ingame :-)
* ''Check out your map Ingame :-)


= Part 2 =


'''Objects and Various Tips:'''
== Objects and various Tips ==


'''Terrain editing:'''
=== Terrain editing ===


U will raise the height of a vertice slightly
* {{Controls|U}} will raise the height of a vertex slightly.
I will raise the height of the vertice greatly
* {{Controls|I}} will raise the height of the vertex greatly.
J will lower the height of a vertice slightly
* {{Controls|J}} will lower the height of a vertex slightly.
K will lower the height of a vertice greatly
* {{Controls|K}} will lower the height of a vertex greatly.


'''About vertices:'''
=== About vertices ===


You may have to hit F or G (i forget which) to show the arrow that goes to each centerpoint of a vertice. While moving the mouse around the map, you'll notice that the arrow cursor 'sticks' to the closest centerpoint of a vertice.
You may have to hit F or G (i forget which one) to show the arrow that goes to each center point of a vertex. While moving the mouse around the map, you'll notice that the arrow cursor 'sticks' to the closest center point of a vertex.


Think of a vertice as a hexagonial shape where you simply raise or lower the centerpoint of that shape. So, when you raise a vertice, it'll make a point upwards. Doing it repeatedly will make the point higher and 'sharper'. Therefore to make sure your terrain isn't too sharp, you'll have to raise the vertices around it as well.
Think of a vertex as a hexagonal shape where you simply raise or lower the center point of that shape. So, when you raise a vertex, it'll make a point upwards. Doing it repeatedly will make the point higher and 'sharper'. Therefore to make sure your terrain isn't too sharp, you'll have to raise the vertices around it as well.


Keep in mind also that editing vertices is pretty tedious, and it should really only be used for tweaking height.
Keep in mind also that editing vertices is pretty tedious, and it should really only be used for tweaking height.
Line 142: Line 269:
Road networks do not act as objects, therefore you can only select, move, or budge them in Visitor 3. (thx to '''El Mariachi''')
Road networks do not act as objects, therefore you can only select, move, or budge them in Visitor 3. (thx to '''El Mariachi''')


==References:==
 
*[[Visitor 3 Manual]]
== References ==
*[[CMA:DevelopmentSetup]]
 
*[http://tinyurl.com/5kd79v ArmABuildEnvironment.pdf (by '''Synide''')]
* [[Visitor 3 Manual]]
* [[CMA:DevelopmentSetup]]
* [[ArmA_Build_Environment_Setup|ArmABuildEnvironment.pdf by '''Synide''']]
 
 
{{GameCategory|arma2|Tutorials}}
[[Category:Arma 2: Editing|Terrain Tutorial]]

Latest revision as of 23:11, 20 November 2023

Terraintutoverview.jpg

This simple learning by doing tutorial will explain the basic process of creating an island for Arma 2, Operation Arrowhead or Combined Operations.

What the tutorial will deal with:

  1. Setup Editing Tools 2
  2. Preparing the Working folder
  3. Setup Visitor & The Landscape
  4. Binarizing your world properly.
  5. Adding Objects
  6. Add more Surfaces


Relevant sources about terrain creation


Installation of the BI Editing Tools 2

It is very important to choose a proper place to install the BI Editing Tools 2 before starting with anything else.
A clean, empty partition is highly recommended (see how to create a partition).

In this tutorial we will use the partition: O:\.
  • 1: Download the BI Editing Tools 2 first.
  • 2: Next create a folder called BIS TOOLS 2 in your designated partition. In our example: O:\BIS TOOLS 2\.
  • 3: Open or extract the downloaded zip file and start the BI_Editing_Tools_2_Setup.exe.
  • 4: The installer is basically self explanatory.
    Make sure to change the directory for each tool from the default location to your desired folder.
In our example: O:\BIS TOOLS 2\.

Tutorial tool install 1.jpg

Make sure to define the respective path for each tool. E.g.: 
O:\BIS TOOLS 2\Oxygen 2
O:\BIS TOOLS 2\Visitor 3 
.. and so on.
  • 5: All tools should be installed now in respective directory (O:\BIS TOOLS 2\).
    Every Tool is stored in its own folder:

Tutorial tool install 2.jpg

Video Tutorial

You can watch the installation process in this Video Tutorial : Setup Editing Tools 2.


The mysterious P: drive

A new partition called P: will be automatically created during the setup. An ArmAWork folder will be created in your my documents folder as well.

..\my documents\ArmAWork

Understand that the P: drive the ArmAWork folder are the same. They are just different views on the same folder.

You can read more about the tools drive here.

Note that the name tools drive is very misleading. It is your editing workspace (virtual) drive.

The P: drive has two main tasks:

  1. Your personal workspace. So the place where you files will reside.
  2. Extracted source files from BI or other sources you want to use in your terrain.

More details below.

Note that P: Drive already contains the ca folder. ca is the project space from BI.

Never ever put your files into p:\ca\*.

In this folder we will extract the source of the BI files currently still in the PBO as part of the game folder. Right now the ca folder contains a couple of unpacked pbo files already and another folder called Roads2.

We will ignore these for now.


Extract BI addons to P:

  • 1: Go to P:\CA\ and create a new folder called plants2.
  • 2: Browse to your Arma 2 main directory/Addons folder and unpack the plants2_bush, plants2_clutter, plants2_misc, plants2_tree .pbo's
    • How to Extract Pbo files?
    • Download the latest Versions of ExtractPbo and DePbo by Mikero at DevHeaven (dead link)
    • Extract them right into our Tutorial partition O:\ComTools\ExtractPbo.....(xp home users extract tools to a manual folder called Com Tools in the P partition.)
    • Move the DePbo.dll from the downloaded DePbo into the ..Windows\System32 folder (as explained in the readme.DePbo.txt)
    • Rightclick on a *.pbo and choose Open with, then point to the ExtractPbo\ExtractPbo.exe and mark the checkbox to always open this filetype with ExtractPbo.exe.
    • Now each time you unpack a *.pbo by doubleclick you'll receive a clean unpacked file with *.p3ds, config.cpp and all other stuff from the pbo.
    • There are of course much further ways to extract pbos and unrap config.bin's but this is a very conformable one.
  • 3: Rename this extracted folders by removing "plants2_" of the name.
  • 4: Cut&Paste the bush, clutter, misc and tree folders to the new created P:\CA\plants2\ folder.
  • 5: Now extract building2.pbo, and place the output in the same directory as plants2. This time you don't need to rename anything.
  • 6: Now extract the Ca.pbo but only Cut&Paste the stuff inside the extracted Ca.pbo to P:\CA\
    • You can do this with all other pbos but for this tutorial we are only using building2&plants2.
  • 7: When it´s done so your P:\CA\ should look as shown in the picture below. (XP home users convert all Chernarus content have folder/subfolders same name , .cpp file down in tut.)

Tutorial tool install 3.jpg


Create Your Project folder

The project folder is your workspace - the place you can go crazy inside and have all your files in.

First register your personal tag at OFPEC. Read more about tags at OFPEC. In short a tag is to avoid name conflicts.

This tutorial will use as the tag TUT. Make sure to use your own tag registered at OFPEC.

With our new shiny tag, we create a namespace in the P:\ drive. In other words a subfolder. So go create it now.

For this tutorial it is: P:\TUT\.

Let us make the meaning of the project folder clear - The project folder is for all your various future projects. So for the individual projects we will soon create subfolders inside our project folder.

How to get working animations/ladders

Up next is the important part to make sure that we have working animations/ladders on our world.

For that we need the respective config files from each object which we are about to use within our world.

NOTE: You need all BI addons correctly extracted to P:\ca to get this working.

To do that we can easy create a small bat or use the windows command line:

Command line

  1. Press ⊞ Win + R
  2. Write cmd and press enter
  3. Write cd /D p:\ca and press enter
  4. Run the following command: xcopy *.cpp P:\<YourNamespace>\ca\ /S /Y
Adjust <YourNamespace> with your project folder name. The tutorial uses tut.

It will then copy all configs to your project folder with the correct folder structure.

Batch file

  1. Download copy_cpp.bat (dead link).
  2. Put it in your P:\CA\ folder.
  3. Run it.
  4. Copy the ca folder from p:\tut to your own project folder.

Source of copy_cpp.bat:

xcopy *.cpp P:\TUT\ca\ /S /Y


Improved version to be able to run the batch from any location:

cd /D p:\ca
xcopy *.cpp P:\TUT\ca\ /S /Y


Visitor 3

Configure Visitor 3

  • 1: Download the Tutorial Sample Map (dead link).
  • 2: Extract it to our P:\TUT\ folder - so it will look like P:\TUT\TUT_SampleMap.
  • 3: Run the O:\BI TOOLS 2\Visitor 3\Visitor3.exe.
  • 4: Also make a desktop shortcut to the Visitor3.exe (right mouse button -> send to -> desktop).
  • 5: Open Tools -> SystemPreferences and check if all paths are correct.
  • 6: You may wish to use -exthreads=0 setting in the command to launch buldozer as this dramatically reduces buldozer launch times when using the arma2oa.exe v1.55 and above.

Tutorial tool install 4.jpg

Update buldozer

TODO

Hint: If you are using arma2.exe from your present game version then you need to replace the bin folder in p:/ with the extracted bin.pbo from your present game version too, otherwise there is a mismatch of shaders.

Start with your new Visitor 3 project

  • 1: Open Project -> New (or press Ctrl + N).
  • 2: In the next Project parameters window select the values for:
    • Terrain grid size 512x512
    • Terrain cell size 10

Tutorial tool install 5.jpg

You find detailed information about the Project Parameters in the Visitor 3 Manual.
  • 3: Go to Tools -> Project parameters.
  • 4: Open the Calculator.
  • 5: Set Image Size (Pixels): 5120.
  • 6. Hit apply and close only the calculator.

Tutorial tool install 6.jpg

  • 7: Open Tools -> ProjectPreferences.
  • 8: Enter the path to your data folder (textures), like: P:\TUT\TUT_SampleMap\Data\.
  • 9: Click ok and close.

Tutorial tool install 8.jpg

  • 10: In the Project parameters window click on Base (active) and press the Edit button.
  • 11: Choose 40x40m texture size.
  • 12: Apply and close the Project parameters window.

Tutorial tool install 7.jpg

Import the terrain data

  • 1: Go to Open -> Import Terrain from Picture.
  • 2: Browse to P:\TUT\TUT_SampleMap\Source\terrain\terrain.pbl.
Be sure you set the view to elevation color style (hit the 5th button from the left) to see the contours. 

vis b Filter.JPG

Save after each step

  • Goto Poject -> SaveAs and save your map as TUT_SampleMap.pew.
Add .pew to your filename. Otherwise Visitor 3 will not recognize the file in the future.

Import Satellite & Mask

  • 1: Go to Tools -> Import Satellite + Mask.. and browse to P:\TUT\TUT_SampleMap\Source\layer.cfg.
  • 2: Select text mode for saving the rvmats in the next window.
  • 3: Visitor asks now for the SAT file, so browse to P:\TUT\TUT_SampleMap\Source\sat_lco.png.
  • 4: Same with the Mask - point it to P:\TUT\TUT_SampleMap\Source\mask_lco.png.
  • 5: The import process begins right after you hit OK.
  • 6: That may take some minutes and Visitor might not respond until process has finally completed.
  • 7: Point the mouse somewhere in the middle of the map and hit the center mousebutton (wheel).
  • 8: A white square appears right at this position (point of view).
  • 7: Start Buldozer via Project -> Connect to Buldozer (or hit the ! icon in the top bar).
  • 8: Buldozer will now automatically convert the textures from png to paa (shown in the command line window).
  • 9: After the conversion process has finished you should be able to see the landscape in buldozer.
  • 10: The textures will appear so more you zoom onto the surface.
  • 11: Switch back to Visitor by hit Alt+Tab (don't close buldozer).
  • 12: Go to Project -> Export World.
  • 13: Save your world as P:\TUT\TUT_SampleMap\TUT_SampleMap.wrp.


Binarizing your world

  • 1: Start BinPbo O:\BIS TOOLS 2\BinPBO Personal Edition\BinPBO.exe.
  • 2: Choose the P:\TUT\TUT_SampleMap in the addon/source directory field.
  • 3: Now go to your Arma 2 Main folder and create a new folder called @TUT. Open this one and create another one which is called Addons (F:\Games\Arma 2\@TUT\Addons).
  • 4: Back in BinPbo we set F:\Games\Arma 2\@TUT\Addons as destination directory.
  • 5: Open the BinPbo options and remove *.wrp out of the list of files to copy directly
  • 6: In the path of temporary folder we set P:\BIN_TEMP
  • 7: Now remove the hook from use source path and enter p:\tut\
  • 8: We are ready to binarize our Island. Close the options tab and click on Pack. That may take a while, wait until Ready appears at the bottom of BinPBO.
    • if an error occurs, so buldozer will store the rpt logfile in C/user/Name/AppData/Local/Buldozer viewer.
  • 9: After BinPbo has finished you should see in your F:\Games\Arma 2\@TUT\Addons\ folder the tut_samplemap.pbo and the logfile.
  • 10: Add the @TUT Mod folder to your ArmA2.exe shortcut ("F:\Games\Arma 2\arma2.exe" -mod=@TUT -window -nosplash) or use one of the meanwhile available Arma 2 launchers.
  • Check out your map Ingame :-)


Objects and various Tips

Terrain editing

  • U will raise the height of a vertex slightly.
  • I will raise the height of the vertex greatly.
  • J will lower the height of a vertex slightly.
  • K will lower the height of a vertex greatly.

About vertices

You may have to hit F or G (i forget which one) to show the arrow that goes to each center point of a vertex. While moving the mouse around the map, you'll notice that the arrow cursor 'sticks' to the closest center point of a vertex.

Think of a vertex as a hexagonal shape where you simply raise or lower the center point of that shape. So, when you raise a vertex, it'll make a point upwards. Doing it repeatedly will make the point higher and 'sharper'. Therefore to make sure your terrain isn't too sharp, you'll have to raise the vertices around it as well.

Keep in mind also that editing vertices is pretty tedious, and it should really only be used for tweaking height.

Road networks do not act as objects, therefore you can only select, move, or budge them in Visitor 3. (thx to El Mariachi)


References