Home Technical Talk

3DSMax - Terrain texturing?

polycounter lvl 7
Offline / Send Message
Ginger Chris polycounter lvl 7
Hey there Polycount! First time poster long time lurker :)

in a recent interview with a potential employer it came to light that there was a number of small environment texturing basics in 3DSMax that I was not familiar with.

My portfolio should give you some idea of where I am with 3D, but I never for the life of me understood how to paint terrain textures INSIDE of 3dsmax.

I can do it inside UDK and did so for a recent UDK level project as shown on my folio, but like I say I have no idea where to start when it comes to doing what seems to be a very simple thing in MAX. :p

I am after something that resembles the below image (not mine.)

etRwC.jpg

Terrain texturing like this and multitexturing is by far my weakest area next to animation in this damn program, so please treat me like a newbie on this one. :p

Replies

  • leechdemon
    Offline / Send Message
    leechdemon polycounter lvl 11
    There's a few different ways to do this, and NONE of them are very pretty (or simple). I like either Vertex Paint or Masks, but both start out similarly enough.

    What I'd recommend doing to start, is to make a Composite Map with a few different base textures; dirt, rock, grass, whatever. Make them tile, set them to different UV Channels if you need to... just make them all look good, independently. Next, set each map inside of the Composite to have a Mask of Vertex Paint. Set each map to a different color; Map 1 is Red, Map 2 is Green, etc. Add a vPaint modifier, and paint your terrain mesh to have whatever features you'd like; Fill the Dirt color, then Paint your grass color, etc. Go to town on it.

    In the end, you can either bake out the result for one giant texture, or you can paint the channels separately for a large mask (to replace your vpaint colors; you can do fancier things in PS once you have the basic shape painted out), or just leave the vpaint if you're happy with it.

    Again, tons of ways to do this... that's just what I've done most recently. GL.
  • System
    Offline / Send Message
    System admin
    That's a bad example to follow, the material doesn't have an even resolution and the road isn't blended at all.

    1. First place objects into the scene
    2. Scale the objects to exactly the right size
    3. Choose a good minimum camera distance to work from
    4. Add a huge texture like an 8192
    5. Reduce texture size while at minimum camera distance

    The final texture size (for baking) before any blurring occours at minimum camera distance will be the largest mip map size you should work with on non-tiling features of the landscape.


    *It's important to note that while this is true some of the landscape in games share the same textures on mountains, river beds etc. to save memory.
    So overlapping uv's where you can is important for maintaining a decent framerate and pixel quality.


    From there on you have to work out resolutions for independent and tiled surfaces seperately so they all share the same level of detail at the same camera distance.
  • leechdemon
    Offline / Send Message
    leechdemon polycounter lvl 11
    Also, before getting too far into it, I'd recommend reading the Multitexture wiki (http://wiki.polycount.com/Multitexture?highlight=%28megatexture%29). You'll see why GCMP calls your linked image a bad example, and even if you don't follow those exact steps (some use different tools that you may not want to bother with), you'll see a few different sample paths you can imitate.
  • Rick_D
    Offline / Send Message
    Rick_D polycounter lvl 17
    depends on what they actually said during the interview - if they have their own system for texturing "terrain" in 3dsmax and importing to their engine then they should show you and your comment should be "i learn quickly". if they wanted you to tell them how you would texture a mesh using multiple textures in max you can do it by using the vertex colour or vertex alpha channels and calling different materials.

    the problem is it's a very max-specific solution that most likely will not translate well to an engine unless they have set up something very specific for their pipeline.
    which is something they should probably teach you in any case, or at least have documentation for.

    I don't think it is such a big deal, as you have seen from this thread there's a load of different solutions all thrown up at you, none of which will probably be the answer your interviewer was looking for.
    so feel free to look into blending textures in 3dsmax but i think the fact you can do terrain painting and setup in source, udk, etc, should be enough to show an employer that you can do it and you can learn a different method of doing it regardless of the package.

    i wouldn't get hung up on it, seems like a question i would have just answered with "i can learn anything new, just give me a shove in the right direction :)"
  • leechdemon
    Offline / Send Message
    leechdemon polycounter lvl 11
    Rick_D wrote: »
    i wouldn't get hung up on it, seems like a question i would have just answered with "i can learn anything new, just give me a shove in the right direction :)"

    Totally agree. If they ask you "Do you know how a Normal Map works?", there's a "correct' answer to that question. Asking how to texture Terrain means they don't know, and needs someone who does (then go read that stuff, and you'll be fine). Otherwise they'd have asked "Do you know anything about ____ (megatextures, vertexpaint, etc), since that's how we do terrain".
  • Ginger Chris
    Offline / Send Message
    Ginger Chris polycounter lvl 7
    So far the solution that more closely matches what I went with for my art test (prior to the interview) involved painting the vertex colours inside UDK and getting the following result.

    xhB0o.jpg
    rwxrl.jpg

    Honestly, I should have used UDK terrain, my mistake really, but I wanted to do the terrain base in MAX.

    The problem I had was how tricky it was painting the vert colours without adding too much and I had hoped there was a more elegant and detailed method of displaying texture 1 here Texture 2 here and texture 3 here and if possible 4,5,6, through 20.

    Are vert colours limited in the amount you could use? Certainly felt like it if Red channel gives you texture 1, Green Texture 2 and Blue Texture 3, any values in between leading to a blend.

    Would Masking alleviate this issue? I have to confess I know nothing of that particular method of texturing :L




    ALTERNATIVELY I can abandon this foolish quest and just roll with how I do it in UDK. :U
  • leechdemon
    Offline / Send Message
    leechdemon polycounter lvl 11
    Basically, the colors are all values; using Red to mask Grass, for example, doesn't look up a color, specifically, but the value of Red you're applying; if you tell it you want 128 of Red, you're saying you want to see 50% of your grass map. Because of this, yes, you're pretty much limited to 4 mixed maps this way (AFAIK). That said, what type of terrain needs more than 4 layers? If you want fancy stuff, some people decal fancy things on top; special features they use to break up tiling or bad transitions.

    Blends are ugly, and the biggest problem with Vertex Colors. The easy fix is to add verts on blend areas if there aren't many of them. The better way to do it requires fancy shader math, but is absolutely what you'd want. Read this: http://www.polycount.com/forum/showthread.php?t=66952. The basic gist is that you're using one of the tiled textures, in conjunction with vertex colors, to control the shape of your blend. Instead of a smooth transition, you get a sharper transition, and can tweak it to follow the contours of your normal map (say, dirt in the crevices of your rocks, snow on the tops of them, etc).
Sign In or Register to comment.