Sins of a Solar Empire : Real-Time Strategy. Unrivalled Scale.
© 2003-2016 Ironclad Games Corporation Vancouver, BC. All rights reserved.
© 2006-2016 Stardock Entertainment

(Another) Texturing, Rigging, and 3DSMAX Mesh Exporting Guide

By on February 24, 2009 8:06:01 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

hydrocarbn

Join Date 09/2007
+45

This is a guide to texturing, rigging, and exporting a mesh from any version of Max past 8 to Sins of a Solar Empire, as the stickied guide is incomplete, lacks info on 3DS, and is rife with grammar and spelling errors. I wrote this for myself and some of the modelers and other staff because I had to work through a lot of really dumb stuff nobody's covered (such as point origins) that frustrated the hell out of me for days, and realized you guys might get some use out of it.

I assume your model is at least UVmapped for the rigging section, if not skinned. To export from Max 9, you will need Sins Tool. The 2.0 version is buggy, so grab the 1.1 version here and put it into Max's /scripts/ directory. The Convertdata utility that comes with Forge Tools is recommended but not required.

update 2/11/12: You no longer have to use convertdata from the command line, but you can if you want.  The recommended utility is now Sins Data Converter, which can be found here.

TEXTURING


FILE FORMAT:


Everything is in .dds. You can get the DDS plugin for Photoshop here.

EXPORT SETTINGS:

I export using the following settings in Photoshop:

DXT5 ARGB 8 bpp | interpolated alpha
choose GENERATE MIP MAPS in the mip map generation


Everything should be a power of two for mipmaps to work correctly. If you don't follow this rule, things will often have weird illumination.

MAP TYPES:

Diffuse map: regular skin, this has colors and stuff! this needs to be ARGB or at least RGB. Alpha channel lying on top of it in the same file is team color. Black is none, white is some.

Normal/Bump map: This is greyscale, so you don't need to mess with any other channels. Black is 'lower'/indented, and as you get closer to white you get 'higher'/extruded.

Data map: This is ARGB. Each channel controls a different effect. Altogether, they don't look like anything, but it's a convenient way to let the engine know what parts of the skin to apply post-processing to. The "channel" colors have nothing to do with red green or blue, they're just ways to separate each effect.

Red channel is the specular map. This must be greyscale, black is "none".

Green channel
is lights. Intensity controls how bright stuff is.

Blue channel is reflective. This should be used sparingly and can be used for cockpits, metal bolts and other stuff with low intensity. The reason I say this should be used sparingly is it is almost like a mirror, and a well formed specular map will do a better job with light effects than painting this everywhere will.

And finally, the alpha channel on the data map controls bloom. For the most part anything illuminated to max with the green channel (engine halos, large light structures) probably should be given bloom.

RIGGING & EXPORTING

Prepping the model for export

The first thing you gotta do is open your model. To prepare your ship for Sins, you'll need to rotate it so that the front of the model points up. (click the mesh, then right click anywhere and hit Rotate). You'll also need to center the ship (do the same thing, but hit Move). The "cross" on each view shows where the origin is, and that point will be the "center" of the ship when exported. If you don't orient the model correctly, you will end up zooming into empty space in game.

Creating your points

After that's done, hit the Create button, then the Helpers button on the side panel on the right and click Dummy.

You can then drag your mouse out in any of the views to create a dummy box. This box defines where the given effect will start (a weapon muzzle, or exhaust, or what have you) - specifically, the pivot is the start point for the effect. You don't have to be too precise here, you can move it around later. Move, rotate, and scale the dummy until it goes where you want it to go. This scaling step is only for your own housekeeping - the box could be three times as large as the model, but keeping it small makes it easier to figure out where the pivot is, and therefore where the effect originates. When you're all done, move on to the next step.

You're probably going to need more than one point. To duplicate a dummy, select the dummy and hit ctrl-v to paste. Hit Copy and make sure the name is what you want (3DSMAX adds a number to the end by default). You can repeat this step for all the points (weapons, abilities, exhaust, etc).

Then move, rotate, and scale this one. You can repeat this step for all muzzles on the weapon.

Naming your points

In the name and color box, rename each dummy. Exhaust should be called 'Exhaust", ability hardpoints should be called "Ability". Weapons start at Weapon-0 and go up. A weapon with multiple muzzle points will have the same name. For example, let's say there's two muzzles on one weapon, so we'd call them both Weapon-0. If we had two weapons with three guns each, we'd do three Weapon-0s and three Weapon-1s. If you do more than one weapon, exhaust, abilities etc all at the same time, obviously name them differently.

You can speed this process up with lots of points by using the batch rename command. Select all the points you want for a certain name (all exhaust, for example), then go to Tools -> Rename Objects. In "Base Name", specify the name you want all the points to have, then hit Rename (not enter) and all those points will share the name you specified.

Orienting your points

This next part is pretty important. If it's skipped, weapon effects may not show up, and exhaust points will be sideways, backwards, etc. Two icons over from Create is the Hierarchy button. It looks like a box with three smaller boxes below it. Click this button, and hit Affect Pivot Only. Select one or more dummies and rotate them until the blue arrow is pointing the direction you want each dummy to fire. For example, rotate your Exhaust dummies until the blue arrow points behind the ship. The green arrow should also be pointing up relative to the blue one.

Linking your points

Now we're going to link the dummies to the model. If you don't do this, you won't get anything. Hit H to bring up the Hierarchy viewer, and select all your dummies (make sure they're named correctly there too). After that's done, all your dummies will be selected. Close the viewer and hit Select and Link. This button is right below the Tools and Group pulldowns on the main menu, and to the right of the rotating tools.

Click on one of the selected dummies and hold the mouse button, then drag it over the body of the mesh. The cursor will change when it's correct, and after releasing it all linked items will flash. If you mess up, ctrl-z, maybe use a different camera angle and try again.

Exporting

Now load Sinstool by clicking the hammer icon on the side panel, clicking Maxscript, then Run Script (not open script). Find Sins_Tool and double click it, then select it in the Utilities dropdown. After you do that, the maxtool stuff should be right below, scroll down if you need to using the mouse. Check all the boxes and hit Export Mesh.


Now that we have the mesh, we're good to go..almost. You can change materials in 3DS to get the skin correct, but it's not required and adds a lot of busywork. I'll detail both ways here.

Method #1

Open a command prompt (Start -> Run -> "cmd" -> enter), navigate to the directory where ConvertData is stored (cd *directory*, you can paste the directory in by right clicking and hitting paste), then use convertdata to convert the mesh from binary to text (convertdata mesh *source file* *destination filename* txt).

You now have a mesh in text: open it in Notepad or your favorite text editor to check it out.

update 2/11/12: you no longer have to use convertdata. instead, get the Sins Data Converter linked at the start, select your mesh file in the input box, a folder in the output box (or check In Place Conversion) select the version of Sins and you have a mesh ready to open in Notepad++.

From here, it's easy. Figure out the names of your skin files and replace the Black-da.dds lines under Material with the names of your textures, then save the file. Also notice your hardpoints have (hopefully!) been saved.


Method #2

Press M to load the Material Editor in 3DSMAX. Click the first Material slot (round ball).

In the pane, click the "+" on the Maps header to open it. Check the boxes next to "Diffuse", "Bump" and "Specular Level", then click the rectangular box on the right of Diffuse - this usually says "Map #1" or "Default".

The files pointed to here DON'T MATTER. The Sins exporter only uses the names of the materials, NOT the filenames. So when the dialog comes up to select a file, just hit Cancel. Then type in the name of your texture in the Name field at the top (it will say Map #1). For example, for your Diffuse channel, you'll type in "mymesh.dds".

Click the dropdown arrow to go back to the material and repeat this with the other two, except substituting the name of your bump map texture ("mymesh_b.dds") in the Bump dialog and your data map texture ("mymesh_d.dds") in the Specular Level dialog. Once this is done, drag your new material from the ball into the mesh, and export it as above.

update 2/11/12: this is different in newer versions of Max. The "ball" has been removed in favor of a new material editor, which uses slots. Drag a Standard material from the left side of the screen into the middle pane, then drag three Bitmap maps in the same way to the middle pane. Hit Cancel as above if asked for a filename, then right click the map to rename it, before hooking it up to the correct slot as above (Diffuse, Bump, and Specular Level).

Drag and drop the mesh into your /Mods/*modname*/Mesh folder, point the ship entity file to the mesh and you should be good to go!

Locked Post 48 Replies +1 Karma
Search this post
Subscription Options


Reason for Karma (Optional)
Successfully updated karma reason!
myfist0
February 24, 2009 8:51:41 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

thanks m8, really helpfull tutorial. was wondering how to do this in 3ds. got any links on how to texture in it?

Reason for Karma (Optional)
Successfully updated karma reason!
February 24, 2009 9:41:00 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Nothing on UVmapping, if that's what you mean. I'm not a modeler, as crazy as that might seem. I just was forced to learn some of this stuff so I decided I'd share it in a better format.

Reason for Karma (Optional)
Successfully updated karma reason!
February 24, 2009 10:01:29 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

well since when you expore a model the maping data does not come with it, was just wondering how to re atach it or whatnot.

Reason for Karma (Optional)
Successfully updated karma reason!
February 24, 2009 10:18:13 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Importing .meshes should not mess up uvmapping. I've done it hundreds of times even to models I've lost the max file for. If you mean from other file formats, you'll have to just check out the dialogs depending on what you're exporting from.

Reason for Karma (Optional)
Successfully updated karma reason!
February 24, 2009 10:21:15 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

also, what are "material"? every time i try to export says there is none and gets an error. also what version of max you use?

Reason for Karma (Optional)
Successfully updated karma reason!
February 24, 2009 10:25:17 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

I use 9.

Material determines the texture(s) on the model, if you don't want to bother with option #2 just drag a blank material (press M and drag one of the balls) to the mesh.

Reason for Karma (Optional)
Successfully updated karma reason!
February 24, 2009 10:26:51 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

ah. k thanks. keep on getting a weird error tho. ill post a pic soon.

EDIT:

Reason for Karma (Optional)
Successfully updated karma reason!
February 24, 2009 10:43:34 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

in case your wondering, it says "unknown property defuseMap 18 (something or another). on another note, since this is just not working right now for me, think you could add two points for weapon 2 on the phase Capital scout (marrauder) in between the two others on each side of the mesh, as well as move weapon 0 from the tip of the ship to the back part on the top spikes that stick out (as well as creating more points for the spikes since thers only 1 dummy point on the mesh)and sending it to me? (in my personal mod im making a weapon upgrade that makes the ship better in stages)

Note: the pic is upside down, but shows the part im talking about

 

 

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 12:00:58 AM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

just an FYI if you have max and you install the XSI mod tool you can very cleanly export from max to XSI using the crosswalk plugin for max, that way you can avoid the limitations of the max tool.

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 12:10:53 AM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

care to go into a bit more detail?

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 1:16:00 AM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Sure, go ahead and email it to me. That error is usually caused by something on the material being broken.

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 1:54:14 AM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

think you could jsut create it via the Vasari Marauder? its a lot faster since im gonig to bed now, does not really take long to add 4 weapons to a mesh anyhow, its only that i cant seem to material them to export them.

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 3:13:15 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

All done, check your PMs.

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 3:26:50 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Carbon,

There is are a couple errors in your guide.

1) Diffuse/Color Map (-cl) alpha channel is for team color.

2) Data Map (-da) red channel is for specular effects.

These two channels were reversed in the 1.10 patch.

Otherwise, nice guide.  I don't use 3DSMax much but for those here that do I'm sure it's quite helpful.

-dolynick

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 3:47:09 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Wow, no wonder all my lights started glowing team color. Thanks for the info, that explains a lot.

Reason for Karma (Optional)
Successfully updated karma reason!
February 25, 2009 9:49:46 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Quoting EvilleJedi,
just an FYI if you have max and you install the XSI mod tool you can very cleanly export from max to XSI using the crosswalk plugin for max, that way you can avoid the limitations of the max tool.

Yea the down side is learning how to do things in xsi mod tool

Reason for Karma (Optional)
Successfully updated karma reason!
March 1, 2009 3:40:24 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

pitty good tutorials like this get burried instead of pined.

Reason for Karma (Optional)
Successfully updated karma reason!
March 5, 2009 6:51:22 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Quoting StCobalt,
pitty good tutorials like this get burried instead of pined.

 

Indeed.

Reason for Karma (Optional)
Successfully updated karma reason!
March 8, 2009 5:01:44 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

ya. its funny tho, you hear questions about this stuff, yet the tutorial for it is a few pages back.

Reason for Karma (Optional)
Successfully updated karma reason!
March 9, 2009 10:24:03 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

I'm just going to bookmark this with this reply so I can find it when I'm going to need it.

Reason for Karma (Optional)
Successfully updated karma reason!
April 14, 2009 3:40:22 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Bump. its a pitty good tutorials usualy get burried.

Reason for Karma (Optional)
Successfully updated karma reason!
April 14, 2009 9:02:48 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Updated with pictures and some other stuff about naming points.

Reason for Karma (Optional)
Successfully updated karma reason!
April 15, 2009 12:59:54 AM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

If only it were this easy for me. Whenever i run the sins tool in 3dsmax 2009 i ether freeze up or the conversion fails. So i am stuck with modeling for sins in XSI.

I still model in 3dsmax i just convert in xsi.

Reason for Karma (Optional)
Successfully updated karma reason!
April 15, 2009 2:59:19 AM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

i found that 3ds max 9 works best with the sins tool. ive tried it on 2009 trial and it did not work as well.

Reason for Karma (Optional)
Successfully updated karma reason!
April 15, 2009 3:03:50 AM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

What about UV mapping and unwrapping do you do that in Max or XSI?

Reason for Karma (Optional)
Successfully updated karma reason!
Stardock Forums v1.0.0.0    #108433  walnut3   Server Load Time: 00:00:00.0000406   Page Render Time: