|
TEXTURE CREATION FROM REFERENCE
by Yan "Method" Ostretsov
INTRO
This tutorial will cover the creation of textures from photo reference. As an example, I will be using a texture that was created for my Doom 3/Quake 4 urban texture set. This is what the final version looks like:
PHOTO REFERENCE
Game visuals have drastically improved in several years. Back in the days, Texture Artists created most textures from scratch. With next-gen games such as Doom 3, Gears of War and etc. it’s very hard and time consuming to make textures from scratch. So the best way to go is to get a digital camera and hunt for some textures outside. Then use that as a reference photo and tweak it to suit your game needs.
TIP: It is best to take photo references during overcast day, when the shadows are very soft. This makes texture tiling much easier.
Alternative way would be to use a texture library. Although make sure that the texture reference in it is not tillable or “game ready”, otherwise your textures will look like a lot of textures in the games that used the same library. The key is to use a solid source, but modify it to suit your needs and personalize it. There would be cases where you cannot find a texture you envisioned or something that suits the mood. You may see an environment in a movie or a photo, which you like, but don’t have the ability to take a picture of. In those cases you can recreate a texture using little bits and pieces of textures in your texture library. Looking through numerous websites that have photos of abandoned and industrial buildings, I came across this picture:
TIP: Look through numerous website with abandoned/industrial photos, such as Dubtown.de, Opacity.us and etc. for some great texture inspiration.
TEXTURE REFERENCE
I thought that white/blue texture would look nice. The next step was to find an appropriate texture reference that could be tweaked to look like the photo reference. Looking through texture libraries, I found this:
TIP: You can find some great texture reference on CGTextures.com. The great part about this is that the author lets texture artists use them for personal and commercial use. See the agreement license for more info.
DIFFUSE MAP
The next stage is to use a digital paint program such as Photoshop, Paint Shop Pro, etc. to tweak the texture reference. Personally, I like to use Photoshop, since majority of game industry uses it.
TIP: If you cannot afford Photoshop, you may find using freeware software named GIMP quiet useful. It supports similar features to Photoshop and most importantly it’s FREE.
I'm going to briefly go over each step I took in tweaking the texture. 1. Once the image has been opened up in Photoshop, I resized it to 512 x 512 px resolution. Since the bottom part of the base texture was clean, I copied the top part, flipped it horizontally and adjusted the color by going into Image->Adjustments->Match Color... and pointing into the cropped part of the photo texture that had the blue color.
TIP: Try to play around with various layer blending modes in Photoshop. You'll be surprised what kind of effects you can achieve.
To add the final touches, I flattened the layers to one, made a copy of it and went to Filter->Other->High Pass.... I set Radius to 1.Then set the High Pass layer mode to Vivid Light and it's Opacity to 50%. This made the texture a lot sharper.
BUMP/NORMAL MAP
To make bump maps you can either use modeling application to generate normal maps or use NVIDIA Normal Map Filter plug-in for Photoshop, which I highly recommend. 1. After saving the diffuse texture, I created a new layer and used Rectangular Marquee Tool to select parts of the texture that will have bumpy surface. The concrete will stay gray (medium bump) and paint will be a bit brighter, especially the middle line. This is what I got:
TIP: You can also overlay other textures before generating the bump to give that extra depth.
3. After collapsing the layer, I opened NVIDIA Normal Map Filter by going to Filter->NVIDIA Tools->NormalMapFilter... and set Scale to 4.
SPECULAR MAP
Specular maps differ in games like Doom 3 and Half-Life 2. HL2 needs a very contrast spec map, while D3 uses very subtle spec. The following steps were applied with Doom 3 in mind. 1. Once the diffuse map was open, I copied it and set the layer mode to Overlay. This way black and white became very distinct.
TIP: You can use custom brushes to paint white/black marks on the specular map which are not seen on the diffuse and bump to give that extra detail.
Naming conventions for specular maps in Doom 3 engine has extension of _s. So file name was paint_blue_s.tga.
IN GAME
After writing material file, which is specific for each game, I tested the texture in Quake 4 (Doom 3 engine). This is how the final texture looked like:
OUTRO
I hope you enjoyed this article. If you have any comments or questions you can contact me at yanostretsov[at]yahoo.com.
|
| Copyright (c) 2004 Yan "Method" Ostretsov. |