Author Topic: My First Tileset  (Read 4186 times)

Legacy_Renzatic

  • Full Member
  • ***
  • Posts: 114
  • Karma: +0/-0
My First Tileset
« Reply #60 on: December 18, 2010, 06:11:55 am »


               Oops. Double post.
               
               

               


                     Modifié par Renzatic, 18 décembre 2010 - 06:12 .
                     
                  


            

Legacy_Bannor Bloodfist

  • Hero Member
  • *****
  • Posts: 1578
  • Karma: +0/-0
My First Tileset
« Reply #61 on: December 18, 2010, 06:55:22 am »


               

Renzatic wrote...
<snipped for brevity>
Right now, I've got my tiles in front of me. Each one has an Aurorahelper attached, all named from bottom left, bottom right, top left, top right as tcdt_a01_01 to _a02_01, ect (I set the letter as a instead of w becuase of the tutorial I'm reading, I don't want to diverge too far from it). Now that i have the helpers attached, do I export all the geometry in one big lump, or do each tile individually? Do the names in the .set file look to the aurorahelpers and not to the name of the .mdl file? If I have to export each tile individually, how do I get my depot in there? It's a single object, and spans across all the tiles. I'd have to break it up to fit it on each tile to export.





Ok, yes, you CAN export all the mdls in a scene, just select all the mdl base objects, or even just do a CTRL-A to select everything.

Then open your NWMax General Utilities (top of nwmax menu system)  See pic

Hopefully the text shows up in that, but just in case, you must first adjust the nwmax export folder.  If you don't you will likelly not be able to find the files once exported.

Once you have everything selected, just do the browse, find the folder you wish to export to, then click the 'reset' button to re-assign the export folder.  NWMax does NOT remember this when you close out of max, it forgets, so you must reset it each time you open up 3dsmax/Gmax.

Words of warning.  By default, nwmax has sanity checks turned on, the sanity checks are there to ensure that your wok will work in game.  Most times new folks have issues a couple of times until they get a feal for how things work.  If you get a pop up window that states there are errors, allow it to continue the export anyway.  This will give you a .txt file that you can read while within max that will tell you what is wrong.

To find that text file, look under the rollouts on the right hand side: see pic
               
               

               
            

Legacy_Renzatic

  • Full Member
  • ***
  • Posts: 114
  • Karma: +0/-0
My First Tileset
« Reply #62 on: December 18, 2010, 08:54:46 am »


               Okay, I've been at this too long. I'm calling it a night. But first...



In the tutorial I'm reading, it mentioned attaching aurorahelper to the geometry, but doesn't exactly tell you how. This'll probably explain the reasons why my .mdl files look like this when I open them with a text editor...



# Exported from NWmax v1.12.07 at 12/18/2010 3:48:34 AM

# mdl file

#

#NWmax MODEL ASCII

# model: tcdt_a01_01

filedependancy Export_Test.max

newmodel tcdt_a01_01

setsupermodel tcdt_a01_01 NULL

classification Tile

#NWmax GEOM  ASCII

beginmodelgeom tcdt_a01_01

node dummy tcdt_a01_01

 parent NULL

endnode

endmodelgeom tcdt_a01_01

donemodel tcdt_a01_01



Comparing it to an .mdl file ingame shows vert locations and all other kinds of details mine is lacking. Now I assumed that just selecting the geometry I intend on planting the helper on was enough. But apparently it's not.



I need to find another tutorial, because this is probably the big step I'm missing here.
               
               

               
            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
My First Tileset
« Reply #63 on: December 18, 2010, 09:14:19 am »


               What Six told you about not having to break up your depot is right. Only the walkmeshes have to exactly fit a tile. Your whole depot could be on one of the four tiles you are making. If you want to break everything into tiles, there's a tool that will do that for your and also make all the aurorabases and main lights with the right names.

In NWmax you'll find something called the 'tile slicer' under 'general utils'. Once you opened the tile slicer, you can enter a prefix for your tiles like tcdt01 and then as a position you can enter 'a01' and variation '01'. That means that starting from the lower left corner your aurorabases and the main lights will be named tcdt01_a01_01, tcdt01_a01_02 and so on.
Before you use the tile slicer select every object except the ignore_NGone01 if there is one.
For the group dimensions you can enter 2 and 2 because you got a 2x2 group or you could press the 'guess' button and it will calculate how many rows and columns you'll need.

Oh, and save your scene before you use the tile slicer because it doesn't always work properly.
Under 'Options' check the 'create tile lights' option if you want the tile slicer to create main lights at the standard positions and heights. Also check 'create anim nodes' if you have meshes you want to animate later. They have to be linked to those anim nodes.
If your group location is not at 0,0, you can uncheck the 'Center at [0,0]' and enter the coordinates of your groups center - in theory. This never worked for me, I either get error messages or gmax even crashes when the center is not at 0,0. That might be a problem with gmax.
I always make sure the center of my group is already at 0,0.
Once you have entered the group dimensions, location and names, you can click on 'slice' and a
script will slice your group into seperate tiles.
This always worked fine for me except if the group's center wasn't at 0,0.

Of course you can always slice your tiles yourself and not use the tile slicer tool if that is easier for you.

[Edit] Looking at your previous post it seems that your objects aren't linked to the aurorabase.
          Is that tutorial you are using the Bioware tileset tutorial? I never understood what they wrote in that tutorial. It is either incomplete or misleading. There is a better tutorial than the Bioware one. I'll look for it and post the link once I found it.
               
               

               


                     Modifié par Zwerkules, 18 décembre 2010 - 09:28 .
                     
                  


            

Legacy_Renzatic

  • Full Member
  • ***
  • Posts: 114
  • Karma: +0/-0
My First Tileset
« Reply #64 on: December 18, 2010, 09:34:03 am »


               I can see a few occasions where it'd come in handy. For now, though, I wanna follow Six's advice and keep everything as is. Where only the tiles are sliced.

My biggest problem is finding out why my geometry isn't exporting with the .mdl. For a lark, I named the helper the same as my model (export_test), and it exported with what looks like the light helpers that come along with aurorabase when I tell it to put in the usual helpers.

Maybe it's the way my scene is set up.

Check it out here, see if any of you see any weirdness that could be causing me errors.

I've tried it with one base over each tile, and one tile for the entire scene. All give me the same results. According to this, I'm doing everything as intended.

I gotta be overlooking some little detail here. Whatever it is, it's driving me up the wall.

edit: Yup. That's the exact one I'm using. It's helped a bit, but ehhh...I've got a headache.
               
               

               


                     Modifié par Renzatic, 18 décembre 2010 - 09:42 .
                     
                  


            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
My First Tileset
« Reply #65 on: December 18, 2010, 09:39:07 am »


               Mr. X's tile tutorial can be found here: http://nwvault.ign.c...r.Detail&id=521

               
               

               
            

Legacy_Renzatic

  • Full Member
  • ***
  • Posts: 114
  • Karma: +0/-0
My First Tileset
« Reply #66 on: December 18, 2010, 09:42:52 am »


               Saved. I'll check it out tomorrow.



Thanks. '<img'>
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
My First Tileset
« Reply #67 on: December 18, 2010, 06:06:59 pm »


               

Renzatic wrote...
My biggest problem is finding out why my geometry isn't exporting with the .mdl. For a lark, I named the helper the same as my model (export_test), and it exported with what looks like the light helpers that come along with aurorabase when I tell it to put in the usual helpers.


More than likely the reason your geometry isn't exporting;  Your geometry isn't linked to the modelbase.  The other thing I see that might cause a problem after export is the location of your modelbases.  They should be positioned at Z = 0.  If they are, and its your geometry that is below 0, you will have issues with shadow casting on the ground planes.

Select the geometry you wish to link to the modelbase, press the "Select and Link" button in the menu bar (third from the left, looks like two boxes with a chain between them), press H on the keyboard, select your modelbase from the "Select Parent" dialog window and press the "Link" button.

Now your geometry will be exported.  There have been issues when using the "Export all or Selected" option from the General Utils rollout.  I believe regarding animations.  If you do run into issues, try exporting each tile individually by selecting the modelbase and using either the "Export Model + Anim" or "Export Geom Only" buttons.

HTH

'Posted
  MDA

And, Welcome to the Club
               
               

               
            

Legacy_Renzatic

  • Full Member
  • ***
  • Posts: 114
  • Karma: +0/-0
My First Tileset
« Reply #68 on: December 18, 2010, 08:56:25 pm »


               

Michael DarkAngel wrote...

Informative Information


You, sir, are my hero. I will name my firstborn after you, and drink a beer in your honor...then throw back a couple more. I could use it after starting all this. '<img'>

I don't have any tiles ingame yet, but I can look at the 4 bases in NWNExplorer. It's not the whole scene, and it's not complete, but it's a huge step towards.

As for getting the tiles, depot and all out at once, I can export them all to a single .mdl just fine. If I tell it to copy the .tga files, it does just that. The file size also looks appropriately large. But when I try to fire it up in NWNExplorer, it crashes me out to the desktop. Telling NWMax to export all or selected just nets me an error ding, regardless of if I have a single helper attached, or multiple for each tile.

So I've still got plenty to figure out, but at least I'm able to get single tiles prepped and ready now.
               
               

               
            

Legacy_Eradrain

  • Sr. Member
  • ****
  • Posts: 365
  • Karma: +0/-0
My First Tileset
« Reply #69 on: December 18, 2010, 09:37:39 pm »


               

Renzatic wrote...

You f*cked a mermaid? How? I thought they were fish on the bottom.

Actually, I dunno if I want an answer to that question.  ':crying:'

It was a reference to an internet meme.
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
My First Tileset
« Reply #70 on: December 19, 2010, 01:28:04 am »


               Okay, if you're still having issues exporting, why not start with something simple.  Follow along and we'll see what happens.

Let's start a new scene and create a flat plane.

'Posted

Click on the Create tab, make sure the Geometry button is selected.  Select the Plane button under the Object Type rollout.  Expand the Keyboard Entry rollout.  Assuming your Units are setup properly set your Length and Width to 1000 and press the Create button.

'Posted

Press the Zoom All Extents button to get a good view of your mesh.

'Posted

Right-click on your mesh and move the mouse over Convert To: and then select Convert to Editable Mesh.  Now we'll throw a texture on the mesh.

'Posted

Click on the Material Editor button to open the Material Editor dialog.

'Posted

Click on the empty box next to the Diffuse color box this will open the Material.Map Browser.

'Posted

Double click on Bitmap and browse to the texture of your choice.  After selecting your texture you'll see one of the Material Slots filled in with your texture.

'Posted

Make sure your mesh is selected.  Click on the Assign Material button then the Show in Viewport button.  You should now see your texture being displayed in the Perspective viewport.

'Posted

Now back to the Create tab, select the Helpers button.  Click on the AuroraBase button to open the Model Base Wizard dialog

'Posted

Select tile from the Model Type dropdown, check Add standard helpers and Center to [0, 0, 0], name it anything you want and press OK.  Select your mesh and link it to the model base you just created.

'Posted

With your mesh selected, press the Select and Link button.  Press "H" on your keyboard to open the Select Parent dialog

'Posted

You can double-click on the model base or select the model base and press the Link button.  Once again select your mesh.

'Posted

Click on the Modify tab.  Open the Modifier List dropdown and select Aurora Trimesh.  You have now added the Aurora Trimesh modifier to your mesh.  From the MDL Trimesh Parameters make sure Render is checked.  Select your model base.

'Posted

From the MDL Base Parameters rollout, Browse to select your Export Directory.  Press either Export Model + Anim or Export Geom Only.

In your chosen export directory you should find two files, one with a .mdl extension and the other with a .wok.  MDL is your model file, WOK is the walkmesh file for the model.

Make sure your texture is in the same directory as your model files.  Open NWN Explorer and press the open button, browse to where your exported model and texture is.  Select the MDL file.

'Posted

Now because my tile is a flat plane I had to adjust the camera angle in order to see it.

That is the basics of creating a tile for NWN.  There are quite a few things I did not cover like UVMapping, Walkmeshes, animations and getting it into the game itself.

First I want to make sure that the version of Max your are using with NWMax Plus is working properly to export your models, not to mention just making sure you are doing the basics properly.

HTH

'Posted
  MDA
               
               

               
            

Legacy_Renzatic

  • Full Member
  • ***
  • Posts: 114
  • Karma: +0/-0
My First Tileset
« Reply #71 on: December 19, 2010, 02:25:10 am »


               

Eradrain wrote...

It was a reference to an internet meme.


Oh God. Why did you have to link me to that? I'm gonna be singing it all night now.

Michael DarkAngel wrote...

First I want to make sure that the version of Max your are using with NWMax Plus is working properly to export your models, not to mention just making sure you are doing the basics properly.


I followed your tutorial step by step, and...

'Posted

There was one step I was missing during my previous attempts: the trimesh modifier. I'll add it to a more complicated tile, and see if NWNE can view it without crashing.

One quick question. With alphas, can I use a 32 bit TGA, or will the engine only see them in a 32 bit DDS? And as for the DDS files, do I have to use a specific program, or can I use a general DDS texture tool like Compressinator? 
               
               

               


                     Modifié par Renzatic, 19 décembre 2010 - 02:26 .
                     
                  


            

Legacy_Bannor Bloodfist

  • Hero Member
  • *****
  • Posts: 1578
  • Karma: +0/-0
My First Tileset
« Reply #72 on: December 19, 2010, 02:35:40 am »


               TGA is fine for alpha textures, NWN version of DDS is NOT industry standard now, it is way out of date.  If you intend to use dds textures, then use one of the NWN utilities to create them from your original TGA file.  Use the one that Bioware provides, which is located Here
               
               

               
            

Legacy_Renzatic

  • Full Member
  • ***
  • Posts: 114
  • Karma: +0/-0
My First Tileset
« Reply #73 on: December 19, 2010, 03:17:04 am »


               Cool deal. I've already tried that one out once already, and it's pretty simple to use. I just like using Compressinator because I have a little more control over it.

Okay, now the bad news. I tried porting in my complicated single test tile using what I learned above. Still no go. It crashes NWNE as soon as I try opening it.

I've gone through and doublechecked everything. It all seems nice and neat, but there's gotta be something else I'm missing.

Here's a shot from inside of Max, showing my modifers, and my linked nodes.

Here

Do I have to apply the trimesh modifer to every object on the scene individually, or is it a select all and fire away type deal?
               
               

               
            

Legacy_Bannor Bloodfist

  • Hero Member
  • *****
  • Posts: 1578
  • Karma: +0/-0
My First Tileset
« Reply #74 on: December 19, 2010, 03:41:41 am »


               The apply to all bit can cause serious issues for you as you get more detailed/complicated in your objects.  For instance, the wok/walkmesh, must be set as a walkmesh, not a trimesh.  Beyond that, your helpers should not be changed from what they are currently assigned as.  IE the model base should not have anything like a trimesh assigned to it.



If you have added other modifiers to the stack, say UVWmapping that has not yet been collapsedinto the stack, well, anyway, EVERYTHING in the stack gets lost//collapsed when you change the main object to a tri0mesh.  Anything below that trimesh modifier is lost.



Ok, looking at your pic, I think you manually created the ignore_ngone?  Just delete that object, it will be automatically created for you with proper settings when you export.  The one you have in there is not correct.