Creating my gradient –
First of all I had to create my gradient which I will use for the colors of my tree. I started by created a canvas 256 x 256 pixels wide and long and using the gradient tool to create a brown and green gradient. The bottom pegs of the gradient menu are to change the color and the top are for opacity. Once done I placed my gradient on my canvas and saved it as a JPEG.
Using my gradient to texture the tree –
To do this I opened the tree file and then selected the object and pressed the “Display Hypershade Window” button which opened the materials of the object, I selected Lambert 1 and then opened the wire map, I added a file to it which was my gradient and then had to connect the file wire to the objects wire map, to do this i dragged the out pin to the color pin of my object.
This gave it the colors but they were not correctly aligned.
To align them I opened my uv map, selected the trunk of the tree and selected planar on the UV tab, this then allowed me to drag the UV map of the trunk into the brown part of the gradient which then made the trunk brown,
I repeated this for each bunch on top of the tree to make them green with the top part being lighter than the others to create the effect of a light source impacting the object.
This is what it looked like when I had finished.