A Beginner's Notes on Tile Editing
2 posters
Page 1 of 1
A Beginner's Notes on Tile Editing
So, I've just started delving into modifying a few tiles to help me tailor existing tilesets to my own preferences. I've ended up teaching myself a few things that I thought I'd share for those Aeneans that might be interested in working on their own custom content.
Notes: I use a program called gmax for editing NWN models, and the following assumes you know a little bit of how to use this software. It's got a learning curve (which I'm still in the middle of myself), but with practice things go a bit smoother.
I've been using tile models right out of the NWN game resources, removing a couple of minor tile "decorations" that I don't care for. It turns out that even taking something out that shouldn't be affecting PC movement can cause problems during gameplay. Problems that require the creation of a brand new walkmesh (the .wok file) for that tile.
Here's how I finally managed to get my own new walkmeshes to work:
1. Import the tile model into gmax.
2. Remove the existing mesh that has the "AuroraWalkmesh" modifier.
3. Create a new 1000 x 1000 plane centered at coordinates 0, 0, 0 (x, y, z). Make sure it has enough pieces to pretty closely mirror the major sections of your tile model (so you can control what PCs can walk on, see through, etc.). Name it with the name of the tile, followed by _WOK (for ease of use). Link it to the tile's base.
4. Convert the plane to an Editable Mesh. Moving vertices, manipulate the plane so that there are flat surfaces for walking and nearly-vertical walls for blocking vision. Anyplace that might have different materials to walk on (grass, water, snow, dirt, etc.) should have their own "rectangle" in the mesh. Don't overlap polygons, and make sure the entire 1000 x 1000 square remains covered from edge to edge.
5. Select the tile base and export it to your working directory (hopefully the same one as your textures, so you can see them in gmax).
6. File > Reset
7. Re-Import the new tile model. Select the walkmesh plane object, and it should now have the "AuroraTrimesh" modifier added. Looking at one of the wireframe windows, you should now see that each "rectangle" is now two triangle polygons.
8. Go back to the Editable Mesh and pick "polygons". You can now use the move tool to pick individual polygons. In the "editing" panel to the right, you should be able to scroll down to a spot that has an "ID" number (probably a 1). Change this to match the desired walking surface for that individual spot:
9. After all polygons have a material ID (I usually start by selecting them all and making them obscuring (2), then going and changing my other ones to the materials I desire)., Go back to full mesh view and then on the auroratrimesh. Add the AuroraWalkmesh modifier on top. Find the Build aabb data button on the right hand side and click it. Immediately select the model base and export it. You should now have a proper tile and walkmesh that you can add to your hak file(s).
Good luck!
Notes: I use a program called gmax for editing NWN models, and the following assumes you know a little bit of how to use this software. It's got a learning curve (which I'm still in the middle of myself), but with practice things go a bit smoother.
I've been using tile models right out of the NWN game resources, removing a couple of minor tile "decorations" that I don't care for. It turns out that even taking something out that shouldn't be affecting PC movement can cause problems during gameplay. Problems that require the creation of a brand new walkmesh (the .wok file) for that tile.
Here's how I finally managed to get my own new walkmeshes to work:
1. Import the tile model into gmax.
2. Remove the existing mesh that has the "AuroraWalkmesh" modifier.
3. Create a new 1000 x 1000 plane centered at coordinates 0, 0, 0 (x, y, z). Make sure it has enough pieces to pretty closely mirror the major sections of your tile model (so you can control what PCs can walk on, see through, etc.). Name it with the name of the tile, followed by _WOK (for ease of use). Link it to the tile's base.
4. Convert the plane to an Editable Mesh. Moving vertices, manipulate the plane so that there are flat surfaces for walking and nearly-vertical walls for blocking vision. Anyplace that might have different materials to walk on (grass, water, snow, dirt, etc.) should have their own "rectangle" in the mesh. Don't overlap polygons, and make sure the entire 1000 x 1000 square remains covered from edge to edge.
5. Select the tile base and export it to your working directory (hopefully the same one as your textures, so you can see them in gmax).
6. File > Reset
7. Re-Import the new tile model. Select the walkmesh plane object, and it should now have the "AuroraTrimesh" modifier added. Looking at one of the wireframe windows, you should now see that each "rectangle" is now two triangle polygons.
8. Go back to the Editable Mesh and pick "polygons". You can now use the move tool to pick individual polygons. In the "editing" panel to the right, you should be able to scroll down to a spot that has an "ID" number (probably a 1). Change this to match the desired walking surface for that individual spot:
- Spoiler:
- The NWN Walkmesh Materials:
I haven't tested all these myself, just copied them from the BioWare boards.
1- Dirt - kick up dust
2- Obscuring - can't walk/can't see/cast through
3- Grass - grows Grass if Grass=1 in .set
4- Stone
5- Wood
6- Water - leave ripples in water/streams
7- Not Walkable -
8- Transparent - see/cast through / not walkable ?
9- Carpet
10- Metal
11- Puddles
12- Swamp
13- Mud
14- Leaves (drops leaves ? -not tested)
15- Lava
16- Bottomless Pit - not walkable
17- Deep Water - not walkable
18- Door
19- Snow
20- Sand
9. After all polygons have a material ID (I usually start by selecting them all and making them obscuring (2), then going and changing my other ones to the materials I desire)., Go back to full mesh view and then on the auroratrimesh. Add the AuroraWalkmesh modifier on top. Find the Build aabb data button on the right hand side and click it. Immediately select the model base and export it. You should now have a proper tile and walkmesh that you can add to your hak file(s).
Good luck!
RustyDios- High Epic Level
- Number of posts : 2271
Age : 40
Location : England // Getting lost in Aenea
Main Character : Jay Braysin, The Wandering Shadow, Protector of Nektaria, Talon's Eternal Foe
Other Character : Shouri Braysin, The Shimmerstar's Moonlight Sorceress
Other Character. : Grace Fularras, Walking Library , Cleric of Mystara
Other Character.. : See my sig ... And here too ...
NWN Username : RustyDios
Time Zone : GMT (England, DST)
. :
Registration date : 2008-07-28
Similar topics
» Tink's Notes
» Working Notes (CEP Sparky Spawner)
» NWN Remastered: Installation Notes For Idiots
» Alastair Synge's adventure notes (those not soaked in booze that is)
» Working Notes (CEP Sparky Spawner)
» NWN Remastered: Installation Notes For Idiots
» Alastair Synge's adventure notes (those not soaked in booze that is)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum