Announcement

Collapse
No announcement yet.

Terrain Grass Deco Layer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Terrain Grass Deco Layer

    I have searched and searched, but can't find a tutorial on terrain deco layer grass.

    What I have learned from the forums:

    Grass can be a terrain texture material.
    (I would like 3d grass if possible)

    or

    Grass can be made using a foilage volume
    (this requires a simple mesh with a grass texture?)

    or

    Grass can be made using a deco layer
    (this requires a simple mesh with a grass texture?)

    looking at some screen shots of the great looking grass I have seen
    http://img.photobucket.com/albums/v2...p/UDK3WIP4.png

    was that made with the deco layer style or foilage volume?

    Any tips or help appreciated

    #2
    You shouldn't use deco layers for grass for obvious performance reasons. (Decos are meant to switch into a lod actor something you don't need with grass).

    Create a new terrain material if you haven't already (manually by double clicking the terrain actor!) and check the option for foliage layers. You just need a simple grass mesh for it.
    Once you're done you can also add a wind source somewhere in your scene and animate wind effects just like you wouldbe able to do with "speed-grass".

    Comment


      #3
      Thanks for the reply.

      I'm gonna start working on it tonight. I'm making the mesh in 3dsmax, should I model a low poly grass blade, or a small patch of low poly grass?

      Comment


        #4
        Just in case you find it useful, I posted a couple of sample-shots below.

        I applied a wood material on the basic mesh I made in order to be better visible.
        It's just a simple example. Most people just use 2 simple planes crossing each other. In my opinion thought it doesn't look very realistic and especially from the top view, this is why I made something more complex but at the same time I keep the polycount as low as possible. Grass is always a game frame-rate killer.

        [SHOT]http://img367.imageshack.us/img367/1011/tut01.jpg[/SHOT]
        ----

        This is an example of a grass material. The alpha channel has been used as a mask.

        [SHOT]http://img717.imageshack.us/img717/2448/tut02.jpg[/SHOT]
        [SHOT]http://img41.imageshack.us/img41/6338/tut03.jpg[/SHOT]
        ----

        And last, this is an in game shot of grass created the same way. Note that it's still a WIP and requires some more tweaking but, I'd say that it's representative.

        [SHOT]http://img188.imageshack.us/img188/8295/tut04.jpg[/SHOT]

        I hope this helps.

        Comment


          #5
          Where do you get your grass textures from ThePriest, Google always lets me down or I'm typing the wrong phrases into the search box.

          Comment


            #6
            Can you please post your grass mesh? I am not so good at max, I would really appreciate that. Or at least screens from left/front and top views so i can try to repeat it

            Comment


              #7
              yeah can we have the grass mesh?

              Comment


                #8
                I uploaded the grass mesh here: http://www.filefront.com/16044331/grass_01.ASE
                It's in ASE format.

                @Piranhi, I found links to grass textures from a post somewhere around the UDK forums. I can't find the original post but I kept a link: http://www.loopix-project.com/
                There are a couple of free textures there including the one from my example.
                The in game shot thought shows a custom made texture. It may sound funny but... I used a hi-Q scanner to scan real grass plants that I used as a base to make the texture in photoshop lol. In my opinion it looks much more realistic than the usual "painted" textures.

                Comment


                  #9
                  @ThePriest909 thank you very much

                  Comment


                    #10
                    Well I tried this method and it works well, but I have run in very, very strnage problem.
                    When I look in one direction grass look normal. When I start look in opposite direction grass getting darker, and darker, nearly black at the end.

                    Material setup is pretty simple. Single texture with OpacityMask, TwoSided and Mask.

                    Comment


                      #11
                      Originally posted by iniside View Post
                      Well I tried this method and it works well, but I have run in very, very strnage problem.
                      When I look in one direction grass look normal. When I start look in opposite direction grass getting darker, and darker, nearly black at the end.

                      Material setup is pretty simple. Single texture with OpacityMask, TwoSided and Mask.
                      Have you tried building the lighting? And if yes maybe try to turn shadows off for that specific actor.
                      It looks the same way here when the lighting is not built.

                      Comment


                        #12
                        @inside maybe try one sided? for me it works, i didnt calculate lighting yet, but seems ok

                        Comment


                          #13
                          cheers priest for the texture

                          Comment


                            #14
                            Actually after building light have same problem with back of the grass, it almost black

                            Comment


                              #15
                              haha great idea ThePriest, and thanks for the link

                              Comment

                              Working...
                              X