Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Fri Sep 03, 2010 11:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Tutorial; Brick Arch (Baking Multiple Maps in 3dsmax)
PostPosted: Sun Oct 29, 2006 5:50 am 
Offline
fired 300 rounds

Joined: Mon Sep 13, 2004 10:41 am
Posts: 363
Location: Melbourne Australia
This tutorial will show you how to build a brick arch and then bake diffuse and normal maps from a high poly model using the projection modifier.

Baking multiple maps using the Projection Modifier in 3dsmax8 by Michael Bartlett

Introduction.
In this tutorial you will learn how to produce diffuse maps and normal maps in 3dsmax using the projection modifier. As an example I’ll show you how to make a simple brick archway.
I hope I can explain this in a simple way, as it’s really quite a simple technique. In fact I wouldn’t call this an advance tutorial at all but it does require some modeling skill as well as a lot of time if you wish to extend this tutorial into your own project and add more detail to the mesh, which I hope you do.

1. Setting up the grid for use with Doom3.
1. Open the Customize/Units Setup tab and set the display unit scale to Metric

2. Open the Customize/Grid and snap settings tab and follow the image below

Image


2. Making a brick.
READ THIS, this brick is slightly larger than your every day, average brick, I decided early on in this project to make the bricks this size as they fit into e.g. a 512x512 texture much easier than if I was to use a scale brick. Just thought you might like to know incase your fussy about that sort of stuff. If you want to create a different size brick, or a building stone, anything, go ahead. In fact you could build it entirely out of old Cereal boxes if you wanted to, whatever you like. It won’t affect the outcome of this tutorial.


1. Turn on Snaps Toggle Image and make a box; length: 8, width: 16 and height: 6

2. With the box selected open the Hierarchy tab, Image
Select Affect pivot only and then center to object, the pivot should now be in the centre of the box.

3. Scale the brick to 97.0 that’s 97%, this will allow room for mortar so dont do this if you want the bricks sealed, the option’s yours.

4, Turn off Snaps Toggle. Chamfer the external edges slightly, this is necessary for the normal map.

5. To create the nicks and cuts seen in the image below I’ve used the cut tool in edit poly mode and then manipulated vertexes, or if you prefer you can make a few random shapes and subtract them from the brick using the Boolean tool. To get the indent which is always found on the bottom of a brick I’ve used the inset and bevel tool’s found in edit poly mode.

Image
The brick contains about 200 poly’s so that’s 400 tris in Doom3.

6. We don’t want all the bricks to look the same, so copy the original brick and manipulate a few vertexes, cut some more with the Boolean tool if you feel it necessary.
Do this several times, take note that I’ve kept them all in the same mesh and have copied them as elements within the same editable poly.


Image

As you can see in the image above, I’ve made 6 different ones, but they are all made from the same original brick we started with. You can also flip and rotate them to get a bit more variety.

3. Adding Colour
1. You can either use these diffuse maps or you can create your own. I’ve used 3 different ones.

Image Image Image


The materials we’re looking at are the top three in the material editor pic below, load the brick_large01.jpg into the diffuse slot, do the same with the next 2 .jpg files.
note: You can also add a bumpmap and specular map to the material, and they will get rendered to texture too, the bumpmap gets added to the normal map and you get a much better result than you would using the nvidia plugin with photoshop and overlaying the diffuse as im pretty sure this method corrupts normalmap (changes direction of normals)
edit: There is a way to overlay the baked normalmap with the nvidia plugin properly by lowering the value of the blue channel on the overlayed map, I personally havent played with this method myself so if someone has some more info on this I can edit it in.

Image

2. Make 2 more copy’s of the bricks, drag and drop the 3 textures onto the bricks as shown below.

Image

4. Stacking the bricks.
1. Go into editable poly mode and start stacking the bricks into a solid wall by copying them as elements within the editable poly.

2. Then remove the bricks which will be used as a doorway, but once again you can do whatever you want.

3. Turn off snapping and use the move and rotate tools to position the bricks where you need them respective of the grid, to get the general layout do most of the work in the front view, and tweak a few bricks here and there to make it look old and distressed.

4. The doorway fits inside a 128x128x16 cube, you may notice the bricks protruding from the edges are the same as the bricks on its opposite sides, this is so that the texture will tile horizontally. If you need special bricks for a special detail then you can modify one of the original bricks, I’ve made special triangular bricks to fit around the arch and I use the slice plane tool in edit poly mode to make these.
Finally, name the object ‘bricks_01’.

Image

5. Low poly mesh and Mortar mesh.
1. Create a new box surrounding the shape of the bricks, if you’re following the tutorial it should be 128x128x16, you’ll need to turn on snapping again for this, keep it tight.
Make another box the same shape as the opening and use the Boolean tool to cut the shape of the doorway. Name this object ‘mortar01’

Image

2. Copy ‘mortar01’ and drag it off to the side. This will be our low poly mesh so name it ‘brickdoor01_low. (remember to keep it snapped to the grid!)

3. Select ‘mortar01’ again and ‘convert to editable poly’ then right click in the viewport and ‘Isolate selection’.
Chamfer the inside edges of the arch and divide a few poly’s on the front and back of the arch using the cut tool as shown below, push and pull a few vertexes here and there to give the mortar a bit of shape.

Image
Apply the appropriate material to ‘mortar01’.

Image


4. Exit Isolation mode. Go into vertex mode and start manipulating vertexes so that you expose some, if not all of the brick like in the pic below.

Image

6. UVW Mapping the Low Poly Model
1. Select the low poly model and add an ‘Unwrap UVW’ modifier to it.

2. I’m not going to try and explain to you how to unwrap a model for a UVW map. Personally, even after reading the tutorials that came with max I found that its just one of those things you learn with experience, by doing.
Another good way to get some good tips on UVW mapping is to open up the skins from games and compare them to their relative models, see how the pros do it.

However, this is a pretty simple model to unwrap though, so you shouldn’t have a problem. If you do have a problem, just refer to the image below.

Image

7. Projection
1. Place the low poly model over the bricks and mortar. (Remember to keep it snapped to the grid)

2. Add a Projection modifier to the stack, click on ‘Pick list’ and select both the bricks and the mortar and click the ‘add’ button.

3. You’ll notice the blue cage surrounding ‘brickdoor01_low’ has gone a bit crazy now (oops). In the cage menu click the ‘Reset’ button and it should go back to normal.

4. Still focusing on the cage, turn on shaded and push the cage so that it’s surrounding the bricks.
NOTE: any part of the high poly model outside of the cage won’t get projected onto the low poly model therefore; the cage must surround every part of the high poly model.

Image

5. From the Rendering pull down menu, open ‘Render to Texture’, (the low poly model must be selected for this.)

6. In the Projection mapping menu tick the ‘Enable’ box.
In the Output menu add both the ‘DiffuseMap’, 'Specularmap' and the ‘NormalsMap’
Set the size to whatever you want, I’ve chosen 1024 but we can always resize them later on.

7. In the ‘File Name and Type’ slot, type in the path of where you want to save the images and save them as ‘.tga’ files

Image

8. Finally, click the ‘Render’ button at the bottom. Don’t worry about what you see in the render window, the maps will by saved appropriately.



Well that’s pretty much it. I hope you enjoyed this tutorial and benefit from it, if you come across a problem and need some help then feel free to ask.
By the way, this is my first ever tutorial so some feedback and suggestions would by great. :)

edit: added diffuse map .jpg files


Last edited by mikebart on Fri Apr 06, 2007 6:03 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 6:06 am 
Offline
fired 300 rounds

Joined: Mon Sep 13, 2004 10:41 am
Posts: 363
Location: Melbourne Australia
Check out my WIP here: http://www.doom3world.org/phpbb2/viewto ... 72&start=0 :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 7:29 am 
Offline
Last man standing
User avatar

Joined: Tue May 24, 2005 8:12 pm
Posts: 1096
Location: Draakhavenkroft
nice work, this really comes in handy :D


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 10:54 am 
Offline
fired 300 rounds

Joined: Sun Aug 01, 2004 9:44 pm
Posts: 361
Location: Frankfurt, Germany
Awesome tutorial, very easy to read and understand. Have to make some tests as soon as I get on my 3ds max. An offline version like a .pdf file or so would have been great (for users like me who don't have all-time internet access).

At point 3 (Adding Colour) you mentioned a .zip file indluding your materials. I'm just curious beucause I couldn't find it anywhere.

_________________
...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 11:37 am 
Offline
fired 300 rounds

Joined: Mon Sep 13, 2004 10:41 am
Posts: 363
Location: Melbourne Australia
thanks, Im glad you found it easy to read :D , Ill upload the .zip as soon as I get a chance, might be in the next few days. Would it be easy enough to print it?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 2:16 pm 
Offline
fired 300 rounds

Joined: Sun Aug 01, 2004 9:44 pm
Posts: 361
Location: Frankfurt, Germany
A .pdf would also be good for guys who don't have a printer :D

_________________
...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 9:58 pm 
Offline
did just hit his 750th monster
User avatar

Joined: Sun Aug 22, 2004 8:53 am
Posts: 840
Location: Stockholm, Sweden
Fantastic, thanks for doing this!


Top
 Profile  
 
 Post subject: cool
PostPosted: Tue Nov 21, 2006 4:13 am 
Offline
is connecting to Doom3world.org

Joined: Tue Nov 21, 2006 4:03 am
Posts: 1
Location: dallas
awesome tutorial!!!! its an amazing technique !!! I just learned how to do it yesterday!!! then i found your tutorial!!!!! really opened my mind to another level of this technique!!! thanks a lot!!!!! O i just joined the forum so HELLO!!!

Do you know where i can find a tutorial on floaters..im sure you know what im talking about.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 6:46 am 
Offline
is sad because his cool title went away

Joined: Tue Jul 05, 2005 3:15 pm
Posts: 710
Location: Adelaide - Australia
Woo, I'll have to test this out when I get home, but I think you may have just solved a problem I was having through this tutorial. :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 14, 2007 2:21 am 
Offline
did just hit his 750th monster
User avatar

Joined: Sat Oct 02, 2004 10:33 pm
Posts: 891
Yeah I've been out of the modding scene for a bit. So call me a noob all you like :D Do you think you can quickly make a tutorial on how I can implement this into Doom3? I am so lost for not mapping for a few months its not even funny. It doesn't have to be extremely detailed, I tend to catch onto things really quick.

Thanks, awsome tutorial!


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Wed Mar 14, 2007 4:29 am 
Offline
fired 300 rounds

Joined: Mon Sep 13, 2004 10:41 am
Posts: 363
Location: Melbourne Australia
check out Brian Trepanings Video tutorials he taught me everything I know about exporting to .ase for doom3, hes the man. :)

http://www.trepaning.com/d3Vids/d3Vids.htm

_________________
Tutorial; Baking Multiple Maps in 3dsmax8.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 6:06 am 
Offline
fired 300 rounds

Joined: Mon Sep 13, 2004 10:41 am
Posts: 363
Location: Melbourne Australia
Just added some diffuse textures for the bricks and mortar, they're a bit rough so you might want to make your own, sorry I took so long getting these up.

_________________
Tutorial; Baking Multiple Maps in 3dsmax8.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 12:25 am 
Offline
did just hit his 750th monster
User avatar

Joined: Fri Jan 07, 2005 12:27 am
Posts: 797
just added where?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 1:26 am 
Offline
fired 300 rounds

Joined: Mon Sep 13, 2004 10:41 am
Posts: 363
Location: Melbourne Australia
I put some thumbnails in the tutorial itself, they're just jpegs.

_________________
Tutorial; Baking Multiple Maps in 3dsmax8.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 3:58 pm 
Offline
found a secret

Joined: Sun Apr 02, 2006 12:26 pm
Posts: 514
Location: U.K. (but im south african)
the textures are great mikebart and my model im working on with your method looks a million times better with them...
now i just need to look more about getting models in doom3 properly.

_________________
"Let me make myself clear: You might be the master of your universe, but D3W.org is mine. " - BNA!


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 05, 2007 10:15 pm 
Offline
is connecting to Doom3world.org

Joined: Sat Apr 28, 2007 8:29 pm
Posts: 2
very helpfull tutorial,- thx for providing it


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 8:08 pm 
Offline
is connecting to Doom3world.org

Joined: Wed Jun 27, 2007 7:03 pm
Posts: 8
definately a great tutorial..

i have finally got working models into the game but im now attempting to create normalmaps as well...


I was a little confused as to a few things on the tutorial, because im not doing it -exactly- but changing it for the objects im making..

for one:

- do you have to uvw-map/unwrap the hi-poly.. - the individual bricks and mortar?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 9:22 pm 
Offline
picked up 200 ammo
User avatar

Joined: Wed Jun 22, 2005 10:57 am
Posts: 261
Location: ireland
SplutteringChubb wrote:
- do you have to uvw-map/unwrap the hi-poly.. - the individual bricks and mortar?


use UVW map. it should do the trick just fine.

_________________
my free 3d models: http://www.sharecg.com/pf/irishlostboy


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 1:46 am 
Offline
fired 300 rounds

Joined: Mon Sep 13, 2004 10:41 am
Posts: 363
Location: Melbourne Australia
yep, you can just use a uvw map 'box' for the mortar, and the same can be applied to the bricks as a group, and then scale the uvw box to suit.

The textures on the high poly model are really just base textures, i'd also recommend finishing the diffuse and specular maps off on photoshop and an AO (ambient occlusion) render overlayed onto the diffuse can really finish it off too.

_________________
Tutorial; Baking Multiple Maps in 3dsmax8.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 4:12 pm 
Offline
is connecting to Doom3world.org

Joined: Wed Jun 27, 2007 7:03 pm
Posts: 8
Aah.. ok, so i must uvw map those as well....


..But as im not making 'bricks' and a 'wall' my objects arent perfect rectangles and as such im not sure if i can still just simply apply a box-uvmap over it...


or is the uvwmap over the lo-poly all that's really needed for later texturing of the object? - ill be honest i dont fully understand how this normal mapping works, ive read a fair few articles..

And also, when you export the object... you delete the hi-poly very dont you? because all that's needed is the low... am i correct,

- i have also been using Brian Trepanings video's and between them and this tutorial im sure its a complete guide as to how to get your stuff ingame... But i keep jumping into thnings i dont understand here, trying to make my stuff more complicated :)


- great tutorial again though, when i do get it to work ill be over the moon :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group