NeLCreateLandscape

Version 2 (aquiles, 08/20/2010 04:33 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 2 aquiles
h2. 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
17 2 aquiles
h2. Download and Install the Create Matrix Script
18 2 aquiles
19 1 aquiles
    * Get the script here.
20 1 aquiles
    * Extract the script in to your 3DSMax5\scripts directory
21 1 aquiles
22 2 aquiles
h2. Run the 3D Studio Max script
23 1 aquiles
24 2 aquiles
h2. Select nel_create_matrix.ms Script
25 1 aquiles
26 2 aquiles
h2. Configure Script Parameters
27 1 aquiles
28 2 aquiles
h2. Select Heightmap
29 1 aquiles
30 2 aquiles
h2. Create Matrix
31 1 aquiles
32 2 aquiles
h2. Misc
33 1 aquiles
34 2 aquiles
"An email from the old NeL mailing list":http://mail.gnu.org/archive/html/nel-all/2002-02/msg00167.html
35 1 aquiles
36 2 aquiles
<pre>
37 1 aquiles
Re: [Nel] How to build landscape with 3DS max
38 1 aquiles
From:     Robert Bjarnason
39 1 aquiles
Subject:     Re: [Nel] How to build landscape with 3DS max
40 1 aquiles
Date:     Thu, 28 Feb 2002 13:11:26 -0800
41 1 aquiles
42 1 aquiles
Hi Neuser,
43 1 aquiles
44 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 !)
45 1 aquiles
46 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):
47 1 aquiles
48 1 aquiles
You have to install the plugins in Plugin_MAX: nel_export, nel_patch_converter, nel_patch_paint and tile_utility.
49 1 aquiles
50 1 aquiles
You need to install and compile zone_dependencies, zone_welder, zone_lighter and zone_ig_lighter. And
51 1 aquiles
set up you tools/3d/build_game_data correctly (it is good to use the Cygwin tools when dealing
52 1 aquiles
with the command-line interface of the build_game_data tools.  Set the build_game_data config to only
53 1 aquiles
process zone and rbank if you are not processing something else.  Also you have to install the PACS
54 1 aquiles
collision processing tools for the rbank process.
55 1 aquiles
56 1 aquiles
   1. Open an empty MAX project.
57 1 aquiles
   2. Set the MAX units to Generic Units.
58 1 aquiles
   3. Create a Quad-Patch with 4-5 segments
59 1 aquiles
   4. Set the size of the Patch to 160x160
60 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.
61 1 aquiles
   6. Name the patch the Zonename you decide to start with for example you could start with 8_AN at above position.
62 1 aquiles
   7. Clone the Patch you just created.
63 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.
64 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.
65 1 aquiles
  10. Now you got a Plane with x many Patches.
66 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.
67 1 aquiles
  12. Now you have shaped the Landscape as you want.
68 1 aquiles
  13. Find the [NelConvert] modifier in the MAX menu, apply it to all the patches.
69 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.
70 1 aquiles
  15. Select the first Patch you want to paint and make that selected Patch fill up your Perspective View.
71 1 aquiles
  16. Find and select the NeL Patch Painter and apply that modifier to the Patch.
72 1 aquiles
  17. Press the Paint button in the NeL Patch Painter, Geometry roll-out.
73 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.
74 1 aquiles
  19. Quit the paint tool and select the next Patch to paint.
75 1 aquiles
  20. Finish painting all your Patches.
76 1 aquiles
  21. Run the build_game_data ./0_setup.bat.
77 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.
78 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.
79 1 aquiles
  24. Change all the config files in build_game_data to reflect the names you decided on for the patches/Zones.
80 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.
81 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.
82 1 aquiles
  27. Your collision files will be in processes/rbank/output
83 1 aquiles
84 1 aquiles
This was from the top of my head... It's not very complete especially tile creation and build_game_data
85 1 aquiles
parts. Feel free to ask if you have specific questions.
86 1 aquiles
87 1 aquiles
Warm regards,
88 1 aquiles
RĂ³bert Bjarnason
89 2 aquiles
</pre>