Home Technical Talk

UDK Materials, wanting to go beyond the basics

Hi there,

I'm gonna need to start thinking about textures for my current environment and I think I really need to brush up on my material knowledge in UDK.

I've got an ok grasp of how to set up materials, I'm comfortable with techniques for adding texture blends, masks, parralax stuff, reflections, tiled bits and pieces, as well as setting up parameters and matInstances but more often than not, if I import an asset, my shader setup is often simply the texture maps plugged into their respective channels.

I've never really figured out where to go from there, but I'll see some materials others have used in Unreal Engine and there'll be stacks of nodes all over the place. And mine only ever look like that if I'm incorporating blends / masks etc.

I've explained this badly I think but what I'm trying to say is aside from all the nodes which I'd use for adding blends/masks and such, what kinda things should I be doing to the main textures / channels simply to make them look better?

Replies

  • ES_139
    Options
    Offline / Send Message
    theres a gnomon dvd on unreal materials, im only half way through but its seems to be pretty good and goes into quite a bit of depth (in my novice opinion) about how nodes can make your materials better. In short i would recommend it if you can afford it......
    Gnomon UDK materials
  • haiddasalami
    Options
    Offline / Send Message
    haiddasalami polycounter lvl 14
    "I've got an ok grasp of how to set up materials, I'm comfortable with techniques for adding texture blends, masks, parralax stuff, reflections, tiled bits and pieces, as well as setting up parameters and matInstances but more often than not, if I import an asset, my shader setup is often simply the texture maps plugged into their respective channels."

    You must inform me of this....this treasure of knowledge.
  • Tom Ellis
    Options
    Offline / Send Message
    ES: thanks for the recommendation I will check it out!

    Haiddasalami: lol, it all comes from Eat3Ds UDK Materials Intro, which is amazing.
  • haiddasalami
    Options
    Offline / Send Message
    haiddasalami polycounter lvl 14
    ES: thanks for the recommendation I will check it out!

    Haiddasalami: lol, it all comes from Eat3Ds UDK Materials Intro, which is amazing.

    I've been planning on getting that...o check out my post. I ordered those HLSL shaders and if I find that it gives me actual knowledge that i can port over, Ill message you. Also check out ShaderFX....looks a lot like UDK material editor. I would be doing this at work but a client wants me to change all of the stuff we have been working on :poly127:
  • Tom Ellis
    Options
    Offline / Send Message
    Ok cheers for the tip!

    Yeah I definitely recommend the Eat3D training. There's a lot of great info on setting up materials that utilize blended normals, and tiling additions to the diffuse etc to break up big tiling textures.
  • bluekangaroo
    Options
    Offline / Send Message
    bluekangaroo polycounter lvl 13
    A lot of the nodes and operations for the materials in unreal 3 or gears of war believe it or not are basically nothing more than texture editing operations made to the texture that could have just as easily been done in photoshop.

    I remember when I was brand new to Unreal and looking thru all the pre made materials, I was quite intimidated by the sheer amount of expressions. Looking at them now, I have a much easier time breaking them down in my mind and figuring out what does what.

    Now with that said, there are nodes and operations in there that are a little more complicated, and figuring out how to create effects like animated textures, and reflections will take a little bit more time and experience to get comfortable with.

    But again if you take the time to investigate some Epic created materials you'll see what I mean; in which they'll use lots of multiplies, lerps, adds, subtracts, clamps, divides, and powers....all expressions that basically allow you to edit your texture that could easily have been done within photoshop.

    So to conclude; seeing an overly complicated material neither implies its better than less complicated ones, it might just simply mean that the artist chose to do a lot of their texturing within the material editor than in an external ap

    Edit:

    I would also like to say that why I think these materials often tend to become so complicated is due largely to the fact that doing your texturing in unreal DOES save you from having to re import your texture and wait around for the updates to apply.
  • Tom Ellis
    Options
    Offline / Send Message
    Thanks for the reply EricV,

    Yeah I was just taking a look at some of the included materials in UDK and it was the first time I'd looked at them since learning more about them. I noticed exactly as you said, they're somewhat less intimidating when you break them down.

    I did indeed notice that a lot of the nodes are simply blends of things like dirt masks and grunge overlays presumably to break up tiling but there are one or two where it looked like they coulda done the same thing in Photoshop.

    I guess that's to allow for a few varieties of similar textures without having to import separate physical maps.

    Thanks again.
  • JordanW
    Options
    Offline / Send Message
    JordanW polycounter lvl 19
    Another thing to keep in mind is we repurpose maps all the time. It may look like we're saving time by "adjusting" a map in a material but a lot of times it's done to save memory. Yeah I could export this diffuse map and turn it red and add contrast but that'd take up more memory. If I have the instructions to spare I'll just adjust it in the material. This is done with specular maps and masks as well. Making adjustments to existing maps to save memory.

    There are more advanced topics you can learn though. Proceduraly created gradients, think about using texturecoordinates to create gradients or masks in your material. I put some of these in the material templates package. Consider learning more about lighting and materials and how to use the light vector and what the dot product node does.

    Things like, everyone uses fresnel but that's not always the correct way the material would behave, try creating a material where fresnel only shows up when the light is behind the object.

    Consider learning to store functions inside of textures. A phong highlight is pretty common and boring, but you could use it to drive a 1d look up texture that has an interesting or colored falloff.

    Try mapping diffuse maps in worldspace, this is useful for tiling rain or rock that blends over all meshes.

    Hope this gives you some ideas of areas to explore.
  • adam
  • Tom Ellis
    Options
    Offline / Send Message
    That's a great help thanks Jordan, should give me plenty to explore.

    And yes Adam that probably might be a good place to learn some more, thanks for that. Admittedly I should've posted this over in that forum, apologies
Sign In or Register to comment.