Jump to content
The Dark Mod Forums

Tutorial: Better textures for your materials (WIP, part 2a is up)


peter_spy

Recommended Posts

I like it when the surface 'plays' when hit by the light, and using the same details across diffuse/normal/specular always seems like a waste.

 

That's not a bad thing per se, but if you take a look at most surfaces, you can see that effect on a microsurface level, with stuff like scratches on wooden panels that are only seen through light reflection, etc. Examples above don't have dirt in diffuse textures, basically, which in TDM will make it look like sort of blacklight paint, only seen when there's light hotspot.

 

One aspect of TDM that always made me a bit sad was that vast surface areas tend to be in "total darkness" at all times and are not subjected to lights at all, apart from the ambient one (unless you bring a light source with you). This way, a player that keeps to the dark is going to be spending a lot of time looking at textures in their worst state - bascily a washed out, darkened and contrast free albedo with weird normals and zero speculars. Pretty charmless.

 

With Enhanced Interaction shader you have an ambient light moving with you and affecting speculars. So you can raise the Output Levels black point to make your speculars shine, even if there is no light source in game. You have to be careful not to overdo it though.

Edited by Judith
Link to comment
Share on other sites

I thought this might be worth adding to the Normalmap part, although with actual guidelines for baking normals it would be better to make this separate tutorial. For now this is a sort of overview, along with link to external video tutorial I found on YT.

 

 

Part 2a: "True power of normalmaps" with baking and unwrapped models

We talked about basic workflow for normalmaps created for tiling textures, so you might get an impression that this is just a nice trick to fake details on a flat surface. This is true, but actual power of normalmaps is much greater. When making models, you can use UWV Unwrap method to position all faces of your model in unique texture space (as opposed to simple projection mapping and using tiling textures). Then you can use normalmap baking (with cage and with averaged normals) to make your low poly model shape look like high poly. If all this feels crazy abstract to you, let the images speak.

This chair has simple normalmap based on the wood texture:

obraz.png

As you can see, there’s nothing unusual about it, it uses basic texture and smoothing groups to tell the engine where sharp edges are.

 

Now this is the same model but with normalmaps based on shape of high poly model:

obraz.png

You can see shading looks much better now. Instead of razor-sharp edges, the model has better definition and form, without any additional geometry.

 

To achieve this, I had to unwrap my low poly model, so all its faces fill the space for one non-tiling texture (so-called 0-1 UV space).

obraz.png

 

Then I created a high-poly shape that surrounded my low-poly model:

obraz.pngobraz.png

As you can see, normalmaps aren’t always about faking intricate details. In more general sense, baking normals for models can replace your basic per-polygon shading with more detailed per-pixel shading of a texture. Maybe “replacing” isn’t the right word, as it uses the smoothing of your low-poly model and your baked normalmap texture as a sort of “bridge” between your high and low poly model.

 

Overview of the whole process and guidelines are something for a separate tutorial, but there are a few good videos on YT, if you’re interested, this one is pretty good:

 

 

The whole process can be a bit of a pain, since usually you need to break your model into parts to bake them, and if your modeling software doesn’t handle averaged normals method well, you might need to use external tools like xNormal (which is awesome, but exporting files takes additional time). All in all, this takes time to learn, but once you get the hang of things, you won’t want to get back to your usual method of making models.

 

 

Edited by Judith
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 4 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...