This week I focused finishing the tree branches to incorporate them in the trunks I previously modelled and prepared the leaves texture in Photoshop to add to cards as shader in Maya.
Branches
For the branches modelling, I followed the tutorial I found last week. I started extruding some faces of a scaled-up cube, to then scale down the tapper in the ends of the branches. Then adding some rigging to this shape, using a ‘randomizer’ tool, and adding some manual tweaks to it, I created some random shapes of a branch. Once I was happy with the shape generated, I duplicated and tweaked again the original shape. I created 5 variations of the branch which I incorporated to the trunks I previously made. To add the branches to the trunk, I positioned them first where I wanted to place them, then deleted the faces of the trunk where I wanted to add these branches, combined the two meshes, selected both edges in both ends and bridged them.
Leaves
For the leaves I decided the add an alpha and a bump map to a card instead of modelling them as this last would be time consuming and will be quite heavy tot render. Therefore, I found a tutorial that shows how to create your own normal map and alpha from the image I am going to use as texture.
First, I search for a leaf image that is placed flat and has a white background. Then in Photoshop I made the background pure white (as it was slightly darker). Then selected the white area with the ‘magic wand’ tool, created new layer, and using the ‘bucket’ tool, I painted this layer in black. Then, I changed this layer blend mode from ‘normal’ to ‘colour’ and I ‘merge down’ with thee original layer. Then, I selected the ‘generate normal map’ 3D filter and in the pop up window, I tweaked ‘blur’, ‘contrast details’ and ‘detail scale’ to design the normal map of the leaf. Lastly, I exported this result in JPEG.
To create the alpha layer of the same leaf picture, in Photoshop, I selected the white area with the magic wand again and created a new layer to paint it in black with the ‘bucket’ tool as I did before. Then, I changed the blending mode from ‘normal’ to ‘colour’ and ‘merge down’ as before too, but this time I used ‘curves’ tool to adjust the image in the curve graph until the main image of the leaf looks black. Lastly, I used ‘invert’ to swap the white and black space and exported the image en JPEG.
Once I had my texture maps prepared, I linked them to a plane in Maya, connecting the original leaf picture to the base colour, the alpha to opacity, and the normal map to the bump map. Then, I oriented the UV map slightly so the leaf centre line was aligned with the centre of the plane, to then bend the plane slightly so it doesn’t look totally flat. Lastly, I duplicated this and arranged the duplicates to form a group of leaves attached to a small branch. Then I started to add them to the trees.
References
Kelly (2019). Green Leaf (online). Available at: https://www.pexels.com/photo/green-leaf-2559931/ [Accessed on 13 May 2023]
Rees3D (2020). Transparent Leaf [Maya Tutorial] | Rees3D.com (online). Available at: https://www.youtube.com/watch?v=hM0VgEbc4pw [Accessed on 13 May 2023]