NeLCreateLandscape

Version 1 (aquiles, 08/20/2010 04:24 pm)

1 1 aquiles
h1. Creating Landscape with Neverborn Create Matrix
2 1 aquiles
3 1 aquiles
    * Creating Landscape with Neverborn Create Matrix
4 1 aquiles
          o Summary 
5 1 aquiles
          o Download and Install the Create Matrix Script
6 1 aquiles
          o Run the 3D Studio Max script
7 1 aquiles
          o Select nel_create_matrix.ms Script
8 1 aquiles
          o Configure Script Parameters
9 1 aquiles
          o Select Heightmap
10 1 aquiles
          o Create Matrix
11 1 aquiles
          o Misc
12 1 aquiles
13 1 aquiles
Summary 
14 1 aquiles
15 1 aquiles
This tutorial will help you create a NeL landscape from a heightmap. A free heightmap editor is available from http://hme.sourceforge.net.
16 1 aquiles
Download and Install the Create Matrix Script
17 1 aquiles
18 1 aquiles
    * Get the script here.
19 1 aquiles
    * Extract the script in to your 3DSMax5\scripts directory
20 1 aquiles
21 1 aquiles
Run the 3D Studio Max script
22 1 aquiles
23 1 aquiles
Select nel_create_matrix.ms Script
24 1 aquiles
25 1 aquiles
Configure Script Parameters
26 1 aquiles
27 1 aquiles
Select Heightmap
28 1 aquiles
29 1 aquiles
Create Matrix
30 1 aquiles
31 1 aquiles
Misc
32 1 aquiles
33 1 aquiles
[http://mail.gnu.org/archive/html/nel-all/2002-02/msg00167.html|An email from the old NeL mailing list]:
34 1 aquiles
35 1 aquiles
Re: [Nel] How to build landscape with 3DS max
36 1 aquiles
From:     Robert Bjarnason
37 1 aquiles
Subject:     Re: [Nel] How to build landscape with 3DS max
38 1 aquiles
Date:     Thu, 28 Feb 2002 13:11:26 -0800
39 1 aquiles
40 1 aquiles
Hi Neuser,
41 1 aquiles
42 1 aquiles
njp> Is somebody can tell me the how to begin ? i just want to make a very little landscape  (a plane is sufficient !)
43 1 aquiles
44 1 aquiles
I'll give you my perspective that you can check out in addition to the above mailing-list post. (This is a more hand on approach compared to Ligo, I'm not sure my self how to use Ligo):
45 1 aquiles
46 1 aquiles
You have to install the plugins in Plugin_MAX: nel_export, nel_patch_converter, nel_patch_paint and tile_utility.
47 1 aquiles
48 1 aquiles
You need to install and compile zone_dependencies, zone_welder, zone_lighter and zone_ig_lighter. And
49 1 aquiles
set up you tools/3d/build_game_data correctly (it is good to use the Cygwin tools when dealing
50 1 aquiles
with the command-line interface of the build_game_data tools.  Set the build_game_data config to only
51 1 aquiles
process zone and rbank if you are not processing something else.  Also you have to install the PACS
52 1 aquiles
collision processing tools for the rbank process.
53 1 aquiles
54 1 aquiles
   1. Open an empty MAX project.
55 1 aquiles
   2. Set the MAX units to Generic Units.
56 1 aquiles
   3. Create a Quad-Patch with 4-5 segments
57 1 aquiles
   4. Set the size of the Patch to 160x160
58 1 aquiles
   5. Find out the positions the Patches need to be, positions are fixed based on the name you give the Patch. For example if you have a Patch that you decide to call 8_AN the position if that patch would be 2160x, -1200y in the Max world space.
59 1 aquiles
   6. Name the patch the Zonename you decide to start with for example you could start with 8_AN at above position.
60 1 aquiles
   7. Clone the Patch you just created.
61 1 aquiles
   8. Set the name and position correctly by using a new zone name and corresponding absolute world position. If you set the name to 8_AO then the position will be 2320x, -1200y it seems to me that the x position changes with the letter counting in the end of the Zonename and the y position changes with the numbers in the front of the name.
62 1 aquiles
   9. Now clone as many patches as you like to create a plane that is the Landscape. Make sure to use the right Patch/Zone names and their position are correct.
63 1 aquiles
  10. Now you got a Plane with x many Patches.
64 1 aquiles
  11. Deform the Patches as you like using the Edit Patch modifier, a standard tool in Max.  You can also use a Displacement map at this point, just use the appropriate modifier in MAX.
65 1 aquiles
  12. Now you have shaped the Landscape as you want.
66 1 aquiles
  13. Find the [NelConvert] modifier in the MAX menu, apply it to all the patches.
67 1 aquiles
  14. Now select Tools and find the tool called Nel Tile Bank, use this tool to select the Tile Bank you have created. The Tile Banks hold all textures, transition maps, displacement maps (for making geometric noise) and info about what vegetations set is connected to tiles.
68 1 aquiles
  15. Select the first Patch you want to paint and make that selected Patch fill up your Perspective View.
69 1 aquiles
  16. Find and select the NeL Patch Painter and apply that modifier to the Patch.
70 1 aquiles
  17. Press the Paint button in the NeL Patch Painter, Geometry roll-out.
71 1 aquiles
  18. Now you can Paint you patch with the tool that pops up. The key definition is included in the src archive of the nel_patch_paint plugin.
72 1 aquiles
  19. Quit the paint tool and select the next Patch to paint.
73 1 aquiles
  20. Finish painting all your Patches.
74 1 aquiles
  21. Run the build_game_data ./0_setup.bat.
75 1 aquiles
  22. Select all your Patches/Zones and use the Export Model function in the NeL Export tool.  Save them into your build_game_data/processes/zone/zone_exported folder manually using ./3_build.bat or use build_game_data to automatically export the Patches from Max using the scripting interface, then use ./2_export.bat.
76 1 aquiles
  23. Copy your shapes into processes/shapes/shapes, your .smallbank tile file into processes/smallbank/smallbank and you instance_groups into processes/ig/ig_land.
77 1 aquiles
  24. Change all the config files in build_game_data to reflect the names you decided on for the patches/Zones.
78 1 aquiles
  25. If you are exporting the Patches/Zones manually then use: ./3_build.bat if you are exporting the Patches/Zones automatically use ./2.export.bat.
79 1 aquiles
  26. Now Landscape will be welded and lit and the final result appear in zone_lighted in the process/zone tree. And the lit instance groups will appear in process/zone/ig_land_lighted.
80 1 aquiles
  27. Your collision files will be in processes/rbank/output
81 1 aquiles
82 1 aquiles
This was from the top of my head... It's not very complete especially tile creation and build_game_data
83 1 aquiles
parts. Feel free to ask if you have specific questions.
84 1 aquiles
85 1 aquiles
Warm regards,
86 1 aquiles
RĂ³bert Bjarnason