Announcement

Collapse
No announcement yet.

Custom Foliage Lighting Model

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

    Custom Foliage Lighting Model

    Hi All,

    I have been doing some work on a custom lighting model for foliage. Basically its an approximate SSS that can be used to give foliage more life without the impact of actually using SSS. Grass uses an even quicker branch, allowing for a lot more instances. The demo that I tested on had 116,000 instances of the grass, and about 500 tree's, running above 60fps. This is still a work in progress and can be optimized even further, and made to look better.

    My plan is to eventually submit this as a PR to be included into the engine so everyone can use it.

    Click image for larger version

Name:	TestTree2.jpg
Views:	1
Size:	342.7 KB
ID:	1138846
    Click image for larger version

Name:	TestTree3.jpg
Views:	1
Size:	262.6 KB
ID:	1138847
    Click image for larger version

Name:	TestTree4.jpg
Views:	1
Size:	309.2 KB
ID:	1138848
    Click image for larger version

Name:	TestTree5.jpg
Views:	1
Size:	496.4 KB
ID:	1138849
    Click image for larger version

Name:	TestTree8.jpg
Views:	1
Size:	383.9 KB
ID:	1138850
    Click image for larger version

Name:	TestTree9.jpg
Views:	1
Size:	353.4 KB
ID:	1138851
    Click image for larger version

Name:	TestTree10.jpg
Views:	1
Size:	442.3 KB
ID:	1138852
    Click image for larger version

Name:	TestTree11.jpg
Views:	1
Size:	392.8 KB
ID:	1138853
    Click image for larger version

Name:	TestTree11.jpg
Views:	1
Size:	392.8 KB
ID:	1138853
    Click image for larger version

Name:	TestTree12.jpg
Views:	1
Size:	443.7 KB
ID:	1138854
    FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
    TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

    #2
    Wow, you have awesome ideas and work, but sadly no one can enjoy them if you don't release them.
    Last edited by DarkInfiktrator; 09-27-2014, 08:26 AM.

    Comment


      #3
      awesome looking great. I have been needing a good foliage shader. Look forward to seeing it released

      Comment


        #4
        Originally posted by DarkInfiktrator View Post
        Wow, you have awesome ideas and work, but sadly no one cna enjoy them if you don't release them.
        He mentioned in the post that his plan is to submit a pull request so it can be included directly in the engine.

        @Ehamloptiran - seriously awesome work dude, you're a machine! I know a lot of people have issues with foliage lighting for large scenes, so I'm sure many will appreciate this.
        Storyteller - An immersive VR audiobook player

        Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

        Comment


          #5
          Originally posted by DarkInfiktrator View Post
          Wow, you have awesome ideas and work, but sadly no one cna enjoy them if you don't release them.
          Some ideas of mine dont make it out of the testing phase, such as the metaballs. (But I'm always happy to give people the source of what I have done so far). But this is not one of them. The main reason I want to go the pull request route is because to use this in your project, you have to modify the engine source to include the new lighting model, will be easier on everyone if its integrated into the engine.
          FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
          TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

          Comment


            #6
            Originally posted by QuickBrownFox
            Do you think you can record a peaceful video of you walking around your scene?
            Here you go: https://drive.google.com/file/d/0Bzq...it?usp=sharing

            Sorry for the bad camera footage, Im not a very good camera man :P I'm still playing around with the grass, so what you see is not final. The grass model is the hero grass model from the SpeedTree grass pack. Bluriness is due to recording at 1280x720 and having TXAA on. Looks crisper at 1920x1080.
            FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
            TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

            Comment


              #7
              I already said it look very good, but would not hurt to do it again .

              But I think it would be better if trees were more bright and less dark(shadowed, occluded ?), and ignore normals for shading completely. It might not be realistic, but could provide more plausible results.
              https://github.com/iniside/ActionRPGGame - Action RPG Starter kit. Work in Progress. You can use it in whatever way you wish.

              Comment


                #8
                Looking good! Great job Ehamloptiran! I look forward to seeing it integrated into a Unreal Engine 4 in the future. What hardware have you tested it on so far? Thanks!

                Comment


                  #9
                  Great job Ehamloptiran! The foliage looks fantastic. Keep up the great work and I hope to see more of your work in the future. Have a great day!

                  Comment


                    #10
                    Great! I really hope this gets implemented in the engine. Good job!

                    Comment


                      #11
                      Lot better than UE4 default plant rendering , should definetively be in engine.

                      Comment


                        #12
                        Hope this can be implemented into UE4!

                        Epic, any word on this?

                        Integrate THIS into the engine. Would make a lot of people happy
                        Last edited by reok; 09-30-2014, 08:33 PM.

                        Comment


                          #13
                          I am also very excited to see this integrated, having some performance issues myself and it just doesn't look too good right now.

                          Very nice job Eham!

                          Comment


                            #14
                            IMO it looks the same just washed out as if you turned down the contrast and brightened it up.

                            Can you do a comparison shot of the same scene? Also a comparison for speed in numbers.
                            Last edited by Errvald; 10-01-2014, 07:53 AM.

                            Comment


                              #15
                              Thanks everyone. Okay I am currently experimenting with a few settings. I am trying to reduce the waxy look they have. So the next set of screenshots are just testing, they may not look as good as the primary pics. I'm not satisfied with the results, but I wanted to get opinions of others. I do think the grass looks better, but I still have more work on the leaves.

                              Click image for larger version

Name:	TestTree14.jpg
Views:	1
Size:	374.7 KB
ID:	1057297
                              Click image for larger version

Name:	TestTree15.jpg
Views:	1
Size:	428.0 KB
ID:	1057298

                              and below is a video of me experimenting with back face lighting. As the light passes behind the object it reveals details as if light is passing through the object.

                              https://drive.google.com/file/d/0Bzq...it?usp=sharing
                              FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
                              TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

                              Comment

                              Working...
                              X