Emails are disabled - for account issues, post in #help on the NI Discord.

Modelling from scratch the Guide
#1
How to Model

This guide assumes zero knowledge of modelling and everything to do with it.

How to start
There are many modelling programs and image manipulation programs that you can use. For this guide I will be using Blender (as it's free) and GIMP (also free).

Download:
Blender http://www.blender.org/download/get-blender/
GIMP http://www.gimp.org/downloads/
GIMP DDS plugin http://code.google.com/p/gimp-dds/#Downloads  (left hand side)
GIMP normalmap plugin http://code.google.com/p/gimp-normalmap/ (left hand side)
OpenBrf http://forums.taleworlds.com/index.php?topic=72279.0


Alternatives

Texturing
http://www.adobe.com/downloads/cs2_downloads/
Photoshop CS2 is free (kinda, they deactivated the authentication server Wink)

It's 7 years out of date, but if you prefer photoshop, heres your semi-legal ticket.

DDS & normalmap pluginhttps://developer.nvidia.com/nvidia-texture-tools-adobe-photoshop

I have limited photoshop knowledge, so I won't be adding a photoshop section

Modelling

Wings3d (free)
http://www.wings3d.com/

I have very (very) limited knowledge of this, so no section Tongue.

3dsmax (only free for students - non profiit only)
http://students.autodesk.com/?nd=download_center

If enough people want me to write a section on 3ds, I'll do it.

For now, blender only Wink.


Install with the instructions provided. It can be tricky, but everything you need to know is there.



Blender

Some video guides:
http://vimeo.com/19049104 -Introduction to UV Unwrapping- (This one probably can help alot if you want to understand UVs and unwraping)
http://vimeo.com/9866038 -UV Unwraping a full body-
(will link more, CGcookie is a good one to go with, thanks Ryu Wink)

Now the fun begins; open blender and click anywhere in the window to remove the popup.

You should see a Cube in the center of your view, if not press shift a, mesh, cube.
Basic controls (this may vary version to version):

LMB = Left mouse button
RMB = Right " "
MMB = Middle " "

Saving - CTRL + S !!!!! as often as you remember!
Rotate camera - MMB
Move camera - Shift + MMB
Change between object and edit mode -  Tab
Selecting an object - click on the object with RMB
Select/deselect everything - A
(in edit mode) select seperate models - L on the bit you want.
Move an object freely, and then return to original postion - RMB anywhere in the window and hold ~ 1 second and drag, RMB again to revert, LMB to accept.
Undo - CTRL + Z
Redo - SHIFT + CTRL + Z  (adding shift to a command usually reverses it.)
Toolbar - T
Camera, transform bar - N


Step (1): Edit mode

Press tab to go to edit mode, you should notice more options in the toolbar.

At the bottom of the viewport (the window where the cube is), there is another toolbar. It should say view, select, mesh and edit mode, etc

When you press tab now, it mesh should change to object and edit should change to object mode.

Go back into edit mode.

In the lower toolbar, there should be buttons in a row, beginning with a multicoloured object (three lines connected at one end).
Ignore the first, the next three are the translate, rotate and scale tools.

Try changing between them;

Translate allows you to move the object like with RMB. Except if you click (LMB) on one of the coloured arrows, and drag with LMB, it will only move in that direction (arrows are x,y,z).

Rotate works similarly, you can rotate around, x, y or z. Red is x, green is y and blue is z (this is the same for everything).

Scale again works similarly, you can increase the size of the object in any direction. To increase the model in all directions, press s, then move the mouse (or you can type a number: 5 = x5 as big).



Step (2): Selection options

Next to those four buttons is another 3 and a 4th slightly seperated.

These are the selection options: Vertex, edge and face.

The fourth is a useful xray like tool, it allows you to see through the object.

Vertex is just the corners of the model, allows much more fine control of changes.

Edge is the next step up, larger changes, less control.

Face is the least precise method, but you can change a lot at once.



Step (3): Useful tools

Now looking at the toolbar on the left, you'll notice a lot of options.

Here are the most commonly used ones:

Extrude (E) - after selecting a face, pressing this and moving the mouse will move that face outwards or inwards creating a indent or extrusion.
Knife (K) - allows you to make new edges in your model, simply LMB on two or more points, then hit enter.
Loop cut and slide - Click this then hover over an area on your model, a line should appear all the way around it. LMB again to set it, then move the mouse to fine tune it, press LMB to confirm or RMB to make it center.
Joining vertices (J) - select two vertices, then hit J to make an edge between them.
Merge vertices (alt + M) - select two or more vertices, then hit alt + M and pick the option for you (usually merge at center).



Step (4): Making your model

It is always daunting to start making a model from scratch, and it will be slow at first. (It speeds up fast)

Tips
-Plan ahead, if your object is going to be mainly round, start with a cylinder or sphere (shift + a, mesh, pick your object).
-Try to keep things as simple as possible, it doesn't have to be perfectly smooth. (You can make it 'look smooth' without it actually being smooth).
-Have a base image or concept to work from. (Don't have to have one, but it helps)

Start with something simple, e.g. if your model has a hilt; start with a cylinder.

Once you have the hilt nailed; use cut and merge tools to make a shape you can use for the rest of it.

Mirror tool!

This ingenius piece of wizardry allows you to mirror your model, so you only have to make half of it!

Select what you want mirrored.

Go to the right hand side, there should be a load of symbols near the top, one a camera and one the earth.

Click on the spanner shaped one, this should bring up the modifiers menu.

Click 'add modifier' and then under generate, click 'mirror'

You can mirror your object in the x, y and/or z axis!
With merge and clipping you can make it weld together where they meet. You can also click on the cube with four orange blobs on it's corners, this allows you to see it while editing.

Apply it in Object mode when you feel ready.

You may have to go in edit mode and manually merge any vertices not merged.



Step (5): Smoothing groups

Here comes the magical part where you smooth your model!

Select everything, go to object mode and hit smooth in the toolbar.

Tadaahhh!

Ok it's not that great, that's why you can use another modifier!

Go to the spanner again, this time add the modifier 'edge split' under generate again. Now adjust the angle until your model looks how you want it. (The angle is the point at which it stops trying to smooth the angle, and leaves it as a hard edge.)
Do not apply the modifier yet!

You only apply the modifier after you have do the UV map (later).

You can manually set hard edges in edit mode. Select an edge then ctrl + e and select, 'mark sharp'.

The modifier above will take this into account when splitting edges.



Step (6): UV Map

Now things start to get tricky (if they haven't already Wink)

By this stage, you should have your model where you want it in terms of shape.

This ends up being very similar to how you may have marked edges as sharp. You may have noticed when selecting sharp, an option called 'mark seam'. This is what we will be using.

In order to texture your model, we need to be able to turn it into a 2d flat shape, that we can paint.
Think of it like folding up a bit of cardboard to form a cube.

We will be doing it in reverse.

You do this by selecting the edges you want the model to split along (It won't really split, this is for the seperate UV map), then 'ctrl + e', 'mark seam'.

Try to imagine the model unravelling, see which lines you would need to cut along.

In order to see the results, go to the bottom left of the window, you should see three diagonal lines next to a button with a cube and two arrows on it.
Click on the lines and drag to the right until about half way across the screen.

You should now have two windows. Go the bottom left of the left window and click on the cube with arrows next to it, select UV image editor
Now go back to the right window and select all of your model and then press u and then unwrap.

You should see the result appear in the left hand window.
In order to see if it's good (see if it stretchs textures etc), click on the 'new' button and for generated type choose UV grid, then ok. (Also make sure it's 1024 by 1024 pixels in size)

Next go to the right hand window and go to the transformation toolbar (press N if it isn't there). Go to Object mode, select your model, then scroll down the transformation toolbar, click on display to expand it. Then tick 'textured solid'.

Your model should now be textured. Add or remove seams to reduce stretching.

Tip
- The aim is to use as few seams as possible. (where seams are, textures won't match up perfectly).
- split up areas that will have different textures (don't have to, but they are a good place to add seams)
- above all reduce stretching as much as possible.

Now you have your UV map, you can move how they are arranged. Try not to alter their shapes, just increase size, rotate or move.

I usually try to overlap things that are extremely similar, e.g. for a sword, both sides of the blade.
This saves UV space and allows higher resolution.

Try to group together things that will have similar textures, wood with wood, metal with metal etc.

Try to fill as much of the UV map as possible!



Step (7): Final + AO

When your ready, in the UV window, click 'UVs', and at the top, 'export UV layout' (pick appropriate name and place).
And then select all of your model, file, export, wavefront (.obj). (pick appropriate name and place).

Now for the AO, this is useful for some nice detail later on.

First, delete the lamp by going to the top right, and click on the lamp in the menu -> delete.

Now click on the earth symbol and go down and tick Enviroment lighting.
Then go to the camera symbol and scroll down to bake -> bake mode -> ambient occlusion.

Go back to your UV image window, go to the + symbol on the lower toolbar, then this time leave generated as blank, and make the colour black.

Now the tricky bit, go to the transformation toolbar and tick 'lock camera to view' under view.
Press 0 on your numpad to go the camera view and move the view so that your model is in the box view.

Try to have the model at a slight angle, imagine your viewing it from diagonally above.

When you have it positioned go to the camera icon (render tab) -> bake -> bake button.
Don't worry that everything slows down, this is quite intensive.

A image should appear in your UV image editor window with you UV map with shading.
Image -> save as image (pick a name and place).



GIMP

Assuming you installed the plugin correctly and it all loads up.

There should be 3 windows, one main window with file etc menus.
One toolbar window and a Layer window.

File -> open -> your UV map image.

It should look like it did in Blender.

The next step is texturing the appropriate areas.

There are two main choices:
- Paint everything from scratch; you own everything, full control. Takes more time.
- Use free stock textures and edit them to your needs; quicker, not owned completely by you.

Do whichever you prefer

Either way, it's a good idea to start by inserting a new layer by right clicking on the layer in the layer window -> new layer.

I generally start out by making a copy of the UV map layer -> colours menu -> brightness contrast -> min brightness, max contrast.
It should leave black shapes of the UV map -> colours -> invert. Leaving white shapes.

Then make layers for the textures and in the layers window, change mode to multiply

Texture each area how you see fit, and go slightly over the edge of the edge of the UV map lines. (This ensures no black lines on your model where the seams are).

There are loads of paint brushes to choose from, go nuts, see what suits you.

Tips
- once you have your base texture, make a new layer for extra detail.
- Add some white for the edges, use the blur tool or, filters -> blur -> blur, to reduce the sharpness.
- Add some black and use the smudge tool to darken areas (seperate layer, or you'll smudge your texture).

Finally, file -> open as layer -> your AO image.
Set it's mode as multiply.
Adjust contrast and brightness as you see fit. (Try to keep it on the dark-side with intense colours, warband makes things white out when it makes them shiny).

Now you should have a finished texture.

file -> save as -> name.dds -> compression DXT 1 -> tick mipmaps.

Specular map

Take your texture, colour -> desaturate -> pick whatever makes the metal brightest and non shiny texture parts darkest. (bright = shiny, dark = not shiny).
Darken/lighten any areas you think need it.

file -> save as -> name_spec.dds -> DXT 1 -> mipmaps.

Normalmap

Now go back to your texture, before the spec.

Filters -> Map -> Normalmap (should be there if you have installed the plugin correctly)

Samples I like to have as 7x7 (base is 4), bigger = better, but longer time.
scale, up to you, I like it as ~5 (higher = more distinct)
Tick Invert Y

Leave the rest, click OK.

file -> save as -> name_norm.dds -> DXT 1 -> mipmaps.



OpenBrf

Load it up, then:
Import -> static mesh (find your .obj model file)
Click no if it asks to import as seperate meshes.

You will probably have to scale down and rotate the model. 2 squares is the right kind of scale, you can always scale it up later.

Now:
Import -> new material -> click ok.
Name it whatever you want, something to do with the model.

On the right hand side is all the settings, change the shader to
Code:
specular_shader_skin_bump_high
.

This won't allow Enviromaps (these make fake reflections to make it look shiny). You can't have both a enviromap and normal map.
Code:
envmap_shader_Instanced
Shader for an enviromap.
Code:
earthenvmap
goes into the enviro slot.

Now go down to the 'Spec RGB', set them all to ~10 (up to 16), higher = more shiny.
Then set the 'Coeff' to ~20 (higher = more shiny).

Type 720 into flags.

Next step:
Import -> new texture -> find all your textures (texture, spec, norm) -> Ok.

Now click on the 'Mat' tab and type in the texture names into the appropriate slots.

Finally go to the 'Me' tab, your model should be textured!

If it isn't, save the BRF in a warband module resource folder (make sure the file type is warband BRF and not normal).

C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules\Native\Resource

And put the texture files in:

C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules\Native\Textures

Then reload OpenBrf and your file.

If it still isn't working, make sure your UV map still corresponds to your textures.
Also check it was exported with your model in Blender, should be options on the bottom left when exporting.

If it's working, congratulations!



Getting it ingame

There is two methods of viewing it ingame:

- Write it in with the module system
- Replace a pre-existing item in item_kinds1.txt

For the module system
http://forums.taleworlds.com/index.php?t...706.0.html
http://www.freewebs.com/jikbyond/40kTut/...Doc2-3.pdf

I will explain the other method, far simpler for now Wink.

Go to your native folder again, find the text file called item_kinds1.txt.

Open it up -> find an item similar to yours -> replace the 4th name with your model name.
E.g.

itm_sarranid_two_handed_mace_1 Iron_Mace Iron_Mace 1  mace_long_d 0  313538969603 9223635923965575392 470 262164 5.000000 100 0 0 0 0 35840 91 0 95 0 534 547
0
0

Save.

Now open up the file Module.ini
Search for load_resource = town_houses_e
Press Enter -> type load_mod_resource = name.brf (name of your brf file).

Save.

Now load up native, before you click ok, click configure -> enable cheats -> ok -> load up the game -> get in single player -> type shift + ` -> type cheatmenu -> camp ->cheat menu -> find item -> find your item Wink.

Hopefully everything worked and you have your item ingame Smile.

Nothing is impossible, it's just a matter of determination and probability.

2nd Knight forever!

No longer active.
Reply
#2
[align=center]Advanced techniques:

Multimeshing

It is possible to use more than one model as a single item, simply follow steps above, but name them in OpenBrf:
name.1
name.2

Then when you put the model name ingame, use just name.

Gauntlets
Like multimeshing, but named:
glove_L
glove_R
glove_LX
glove_RX (last two are wrist segments)

The name to use is, glove_L.



LODs

Stands for Level Of Detail.

It's for when your looking at the model from far away, it lowers to detail (better for slow machines).

There is two main methods:
- Hand made LODs (make them in blender)
- Have OpenBrf automate them (generally looks awful)

There is multiple levels of LOD:

spak_knight_shield
spak_knight_shield.lod1
spak_knight_shield.lod2
spak_knight_shield.lod3
spak_knight_shield.lod4

They decrease in quality as you go down (further away).
Naming system as shown, add .lod# (# for number), to the model of the LOD.

Right clicking on a model in OpenBrf gives the automate LOD option.



Animations

These can be tricky. There is quite a few types, the ones I'll focus on are: bow and xbow animations.

The simplest method to make these is:

- Make your model
- Export multiple versions (make sure they have the same number of faces and vertices!!!!)

For a bow you need 3 frames (exports), one with the string flat, one partially drawn, one fully drawn.
The hard part is getting it the right amount.

In openbrf load up a resource file with a bow -> right click -> seperate all frames -> export as static mesh (all the frames that are different) -> import into blender -> scale as appropriate/rotate -> use as guide for each frame.

Once you have your three frames, export them (.obj) -> import them into openbrf -> make 2 copies of the straight string model/frame (3 in total) -> rearrange them so it goes, flat, flat, half drawn, full drawn, flat -> select them all -> right click -> combine as vertex animation.

Now go to the right hand side of openbrf -> change the frame number to 2 -> enter the number 43 into the box containing 0 -> frame 3, enter 100 -> frame 4, enter 200.

It should now animate properly ingame.

Exactly the same process for a crossbow, except no half drawn frame Smile, times are the same other than that.



Armours and rigging

This makes everything you've done so far look easy, not for the faint of heart.

for now I'm just going to link you to http://www.blenderguru.com/videos/introd...o-rigging/

And tell you to download this https://developer.valvesoftware.com/wiki..._SMD_Tools

Go into Openbrf, find an armour, right click, export rigged mesh.

Load it up in blender, delete the model, keep the skeleton, follow the tutorial. (Don't move the skeleton, move the armour, it should be in a T shape; arms out to the side, standing straight).

I have yet to master it myself, so I'll leave it for now.



Hopefully that's everything ;P.

If I've forgotten anything, or you have any questions, don't hesitate to ask/say Smile.

I may make this look snazzier and other things (maybe pictures) later on.

Hoped you enjoyed/gritted your teeth and beared with it Smile

Credits:
Sh0ck3r (shocker, sh0cker..I lose track Tongue)
Ryu (for his patience, amazing insights, and unwavering help)
All those involved in creating Blender, GIMP and any tutorials I have linked or learned from!
Nothing is impossible, it's just a matter of determination and probability.

2nd Knight forever!

No longer active.
Reply
#3
Reserved
Nothing is impossible, it's just a matter of determination and probability.

2nd Knight forever!

No longer active.
Reply
#4
Oh wow. Amazing work done here sunny, maybe i should give it a shoot.
Wusel @ Omnia
Reply
#5
Oh my god this is amazing

Thanks for writing such an in depth guide Senni Smile

I've been wanting to design some armour for NI for a while now, but lacked the knowledge of where to even start. Now however, I may try my hand at something... Wink
VLKA_Tee - Sharpshooter
VLKA_Tea - Royal Guard
VLKA_TeeHee - Master Peltast
VLKA_Killboy - Warden
Reply
#6
For armour, I advise you try the mirroring technique, as everything is symmetrical about the middle Tongue

I am currently trying to rig some armour I've made. Let's just say, this may take awhile ;P

Glad you like it Smile
Nothing is impossible, it's just a matter of determination and probability.

2nd Knight forever!

No longer active.
Reply
#7
is there a way to combine faces in blender?
Reply
#8
hmmm

Try ctrl + f (should be face options)

ctrl + e (edge options), ctrl + v (vertex options)

If I undertstand right, probably the easiest way is to try merging the vertices that form the face.
Nothing is impossible, it's just a matter of determination and probability.

2nd Knight forever!

No longer active.
Reply
#9
That looks really great
Thank you Senni you are the best
I will give it a try
[align=center][Image: cdxj8nk]

[LK]Sala
[LK]Salad
[LK]Saladin

Legendary Items

Aurora Blade
Fearsome Knight Helmet
Reply
#10
After 2hrs of blender yesterday my head is still spinning (very complicated program if you're not familiar with it)

May take me more than a month to produce a of model Tongue
VLKA_Tee - Sharpshooter
VLKA_Tea - Royal Guard
VLKA_TeeHee - Master Peltast
VLKA_Killboy - Warden
Reply




Users browsing this thread: 1 Guest(s)