Announcement

Collapse
No announcement yet.

Spherical Normals for Trees (Blender)

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

    Spherical Normals for Trees (Blender)

    So, after posting pictures of my trees in the UE4 Discord, and just in general, even, I've had a lot of people ask me or others about how to make the normals for trees or bushes spherical. If you have Max, this is easy as all you have to do is download the NormalThief script and you're all set to transfer your normals. Modo Indie: Too bad. Maya: Can do this out of the box, I think; if not, it's a script or plugin away. So what do you do if you don't have one of the really big name modeling programs and you want spherical normals? Download Blender.

    So before I go further, I feel like Simon Schreibt deserves alot of credit for bringing attention to this method of having stylized rendering for trees with this writeup: https://simonschreibt.de/gat/airborn-trees/

    Alright, so with that stuff out of the way, and assuming you read Simon's article to understand the goal here, let's get started.

    So in this picture, all I have is a group of arranged foliage cards generated by the Blender Add-on, Sapling Tree Gen. You're going to want to transfer normals to your foliage after you already have them arranged on your branches/mesh, so do that.
    Click image for larger version

Name:	Tree1Pic.PNG
Views:	1
Size:	65.6 KB
ID:	1226980

    Next, head over to the Data tab and enable Auto-Smooth.
    Click image for larger version

Name:	Tree2Pic.PNG
Views:	1
Size:	134.0 KB
ID:	1226981

    Move one tab over to the Modifiers tab and add in a Normal Edit modifier. Leave it set to Radial and do not apply the modifier just yet.
    Click image for larger version

Name:	Tree3Pic.PNG
Views:	1
Size:	245.3 KB
ID:	1226982

    Next, hit A to deselect your foliage, then Ctrl+A>Mesh>UV Sphere. With the UV sphere highlighted, hit S to scale the sphere to where it's big enough to fit your foliage inside of it completely. You don't want foliage sticking outside of the sphere, and you don't want the sphere to be a lot bigger than your foliage, so play around until you get a tight fit on the inside. Once you've done that, move the camera into the sphere so you can see, select your foliage and head back over to the normal modifier we added earlier. Under the word radial, there will be a drop down box that will let you pick the mesh you want to transfer normals from. Simply pick your sphere and hit apply.

    Before applying the modifier:
    Click image for larger version

Name:	Tree4Pic.PNG
Views:	1
Size:	521.3 KB
ID:	1226988

    After applying the modifier:
    Click image for larger version

Name:	Tree5Pic.PNG
Views:	1
Size:	380.4 KB
ID:	1226989

    The Before picture shows the area to view normals. To get them to become visible, select your foliage, hit Tab to enter edit mode, then hit N to bring up that palette. Finally, scroll down to the area I highlighted in the Before pic, click view vertex normals per face (the middle one) and set your normal size to whatever you want.

    Well...that's it. Getting spherical normals in Blender is very simple, and I'm pretty sure I didn't leave out any steps. If you have questions, feel free to ask.

    Edit: If you don't want entirely spherical normals, you can cut the sphere in half and then stretch it to become somewhat of a cone. This will make it so that the bottom of your foliage doesn't have normals that point downwards. This can affect shading in way that some don't like, so I figured that was worth mentioning.
    Last edited by JamesEmory; 08-18-2017, 01:56 PM.

    #2
    Thanks for sharing!
    Didn't know that Blender had a modifier to mess with normals like this. Will start experimenting with it!

    Comment


      #3
      Glad you found it useful, and I'm not surprised; it didn't have this ability for a long, long time.

      Comment


        #4
        You can also do the same thing with the Data Transfer modifier, it has a few more options for how to interpolate the normals.

        Comment


          #5
          Originally posted by cyaoeu View Post
          You can also do the same thing with the Data Transfer modifier, it has a few more options for how to interpolate the normals.
          This is true, you can, though for something as simple as getting spherical normals, it's a little more complicated and unnecessary.

          Comment


            #6
            This guide on spherical normals for trees was really great to see! I never even knew it existed and was really happy to see the quick but well written guide you had made! However, due to my lack of knowledge of blender/graphics terminology I had some problems understand what you meant by;

            "You're going to want to transfer normals to your foliage after you already have them arranged on your branches/mesh, so do that."

            This is from what I can tell the only reason making my attempt during this entire week futile and feel slightly discouraged atm. I was wondering wether you woulf have time to just elaborate exactly what this means. It would be greatly appreciated.

            (Excuse potential spelling and structure issues, writing on phone and not native language)

            Best Regards
            ​​​​!

            Comment

            Working...
            X