Adding A New Continent

VDPIC.jpg

About

Goals for this tutorial.

1.make a 4 Brick (Zone) continent (WIP)
2.Link the continent to the newbieland (WIP)
3.Make a new tile bank (Finished)
4.Make and add a new vegetable set (WIP)
5.Make a tree in 3DSMAX and weight paint it with NeL tree painter. (WIP)
6.Add sky,weather and seasons. (WIP)
7.Add a particle "Blue Flame" effect to a piece of geometry. (WIP)
8.Add a building. (WIP)
9.Add a water zone (WIP)
10.Make awesomest tutorial ever (Optional)

Pre Constraints

This tutorial assumes the following.....

1. You are using mercurial change set 759.
2. You have cloned the mercurial repository to C:\ryzom. (http://dev.ryzom.com/projects/ryzom/wiki/Getting_Source)
3. You have downloaded the asset repository to C:\Database. (http://media.ryzom.com/)
4. You have downloaded the client to C:\ryzom_client. (http://sourceforge.net/projects/ryzom/files/)
5. You have compiled all sources and can run and connect to your own server. (http://dev.ryzom.com/projects/ryzom/wiki/Guide)
6. You have compiled,installed and loaded the NeL plugins for 3DSMAX. (http://dev.ryzom.com/projects/ryzom/wiki/InstallingMaxPlugins)
7. You have installed python 2.7. (http://www.python.org/)
8. You have converted the ryzom_assets database. (http://dev.ryzom.com/projects/ryzom/wiki/Convertingryzom_assetsDatabase)
9. You have downloaded the ryzom_assets_newbieland and merged it into C:\database. (http://sourceforge.net/projects/ryzom/files/)
10. You have compiled or downloaded Object Viewer QT (http://dev.ryzom.com/projects/ryzom/wiki/Object-viewer-qt)
11. You have completed the crash course in rebuilding the NewbieLand (http://dev.ryzom.com/wiki/7/RebuildingTheNewbieLandWith_TheBuildPipeline?version=3%3E)
12. you have setup three virtual drives (w: that points to drive c: | r: that points to c:\ryzom | l: that points to r:\code\ryzom\common\data_leveldesign). (http://en.wikipedia.org/wiki/Subst)

 

Code Changes

Script And Configuration Changes (status= About 40%, not tested

Creating A Veget (3DSMAX) (status= tests finished, writing docs.

1. Navigate to "C:\Database\Landscape\MicroVeget\jungle" and open Ju_VegetMaraisA.MAX).

Creating A Vegetset (3DSMAX | Object Viewer QT) (status= tests finished, writing docs.

Plants,flora And Trees (3DSMAX | Object Viewer QT) (status= Creation tests finished, writing docs.

1. Download http://dev.ryzom.com/attachments/958/TestTree01.zip and extract it anywhere.
We will use this as a base.

 

Extra> For advanced trees take a look at http://dev.ryzom.com/projects/ryzom/wiki/AnatomyOfATree.

Creating A Tile Bank (tile_edit_r | 3DSMAX)

1. Launch tile_edit_r.exe (C:\ryzom\code\nel\tools\3d\tile_edit\)
You should get....

 

2.Click on the button next to "Absolute path".
Change the path to C:\Database\landscape\_texture_tiles\.

3. Click "Add land", type "TestLand" and click "OK".

4. Click "Add tile set", type "TestTileSetOne" and click "OK".

5. Click "Add tile set", type "TestTileSetTwo" and click "OK".

6. Save as "TestBank" in C:\Database\landscape\_texture_tiles\TestBank.bank

7. Highlight "TestLand" and press "Edit land", Add the two tile sets and press "OK".

At this point you should click save.

 

8. Navigate to C:\Database\Landscape\_texture_tiles\jungle And open the contents of 1-junglemousse,12-vasejungle,displace and Transitions\ AlphaNoiseA in Photoshop (You can also use Gimp if you like).

9. Save all textures in the folders you got them from as 24bit TARGA (.tga), (You could use png but you may have issues that are beyond the purpose of this tutorial).

Extra>Since the PNGs and TGAs compress to DDS during the build_pipeline and the .banks are not used at runtime and building new banks with png support fails at save you have to use double images for now but after you run the build_pipeline it will only use the one DDS at runtime anyway.

So in short yes you have to use double images now, but it will just use the one when in game automatically.

10. Back in tile_edit_r highlight "TestTileSetOne" and click "Edit tile set".

11. Select> Diffuse,128x128 and then right click in the empty area to the right and choose "Add".

 

12. Navigate to jungle\1-junglemousse, Select all the 128x128 .tga images (4 total) and click "OK".

 

13. Select> Diffuse,256x256 and then right click in the empty area to the right and choose "Add", Repeat step 12 this time selecting all 10 256x256 images.

 

14. Select> Diffuse,Transitions and select the first square on the right.
Right click, Select replace and choose any 128x128 texture from the 1-junglemousse set.
Do the same to the remaining squares using the 4 128x128 1-junglemousse textures randomly.

 

15. Select> Alpha,Transitions and Click "Batch load...".
Navigate to C:\Database\Landscape\_texture_tiles\jungleTransitions\AlphaNoiseA and select alpha_noise_00.tga and click "OK".
At this point you will be prompted to reuse the rotation of the alpha tiles, select "Yes".

 

16. This is an optional step but we will do it for the tutorial, We will add some displacement grey scale maps that will deform the surface when in the players line of site.
Select> Displace, right click and replace the first six squares with j_foret 1-4 from the displace folder randomly, click "OK".

 

Extra> Using at least a small 32x32 grey scale is recommended with all textures to give it extra lighting detail.

 

17. Repeat steps 10 to 15 for TestTileSetTwo this time using the 12-vasejungle set instead of 1-junglemousse.

18. Now in the main menu highlight TestTileSetOne.
Under "Surface data" add 12 and for TestTileSetTwo add 21 (12 will make grass kick up from the players feet, 21 = dirt).
Click "Save".

 

19. At this point we should test out the bank in max.
Open 3DSMAX, Add a plane and make it 128x128.
Click in the "Top" of the view cube and fill the view port with the plane.

 

20. With the plane selected goto the modifier drop down menu and select "NeL Convert".
Go back the the modifier again and select "NeL Painter".

 

21. Goto the tools menu and click "NeL Tile Bank".
Navigate to your TestBank.bank.

 

22. Go back to the modify menu, Select the plane and press the paint button on the right.
The terrain painter screen should pop up.
Begin painting and you should get smooth blending like you see in the picture below.
Note> Scroll down to "Painting Landscape With NeL Patch Painter" for the NeL Painter user guide.

 

Creating Landscape in 3DSMAX (status= testing and writing draft docs.

Painting Landscape With NeL Patch Painter (status= tested and writing docs.

To begin painting your landscape just select the tile (Or tiles) you would like to paint and frame them in the view port, Then open NeL Painter.

 

Exporting Assets Using The Build Pipeline

1. Create a folder in drive C:\ named "export" (C:\export)

2. Navigate to C:\ryzom\code\nel\tools\build_gamedata and double click on "0_setup.py".
The console will ask for directory's, Its pretty self explanatory, just fill it out and it will set everything up for you.

Note> Everything in the <> are the suggested defaults.

 

3. Navigate to C:\ryzom\code\nel\tools\build_gamedata and double click on "1_export.py".
This exports all the data from the .max files in C:\Database.

4. Navigate to C:\ryzom\code\nel\tools\build_gamedata and double click on "2_build.py".
This runs all the compile operations like converting images to direct draw format, lighting and sound effects.

5. Navigate to C:\ryzom\code\nel\tools\build_gamedata and double click on "3_install.py".
This installs all the generated data and folder structures into C:\ryzom_client\user for testing in game.