How to make leaf materials for 3d trees using the VRay2sidedMtl, in this case a sugar maple (in autumn). The tutorial uses Onyx Tree for the tree generation, but this material technique works just as well with other tree objects with low-poly opacity mapped leaves.
1Firstly, some observations on opacity mapped leaves vs. geometry leaves. As you can see in the image above, the images in this post were made using opacity mapped leaves. After some tests on my farnsworth house project, I have come to the conclusion that it is quicker in some cases to use opacity mapped leaves. Its true that in simple scenes trees with geometry leaves may render quicker as V-Ray doesnt have to calculate the opacity of thousands of leaves, but in dealing with complex scenes with millions of polygons the advantage in using (a lot) less RAM is huge. The processes involved in swapping opacity mapped plates for geometry are also very long winded and very tedious!
2Exporting from Onyxtree. I went with 4 polygons per leaf so that the leaves aren't just flat. Remember to set the dimensions you want the individual leaves, and change the units when you export. You can also make it export 3 different leaf IDs with varying sizes. I normally export as a .obj file.
3Opacity mapping. It's important to make sure the opacity map is just pure black or white, with a sharp edge. You should also turn off filtering in the bitmap loader options.
The opacity map applied to a grey material in 3ds Max and assigned to the leaves. (Click to show full image)4VRay2sidedMtl. V-Ray's 2 sided material works best with geometry that has no thickness, which is what onyxtree outputs. It is a very quick way of generating a SSS (sub-surface scattering, think candle wax, skin, milk etc) type look. The image below (Click to show full image) is rendered using a VRay2sidedMtl on all leaves with grey submaterials and a hand drawn image for the vein skeleton.
5Front material. The front side material is a basic vraymaterial with a diffuse map and a reflection map. The color correction map is to produce slightly different hues of leaf for each of the 3 sub leaf types (you should have got a mult-subobject material when you imported the .obj file). I usually make the first leaf and then copy and paste it to the 2nd and 3rd and just change the hue value slightly. The reflection map is a b&w copy of the diffuse map with levels adjusted to make it more contrasty.
Render showing front leaf material on both sides with no transparency. (Click to show full image)
6Back material. The back material is a copy of the front material but with a different diffuse bitmap and no reflection. Note that I overlaid the veins skeleton jpg on top in photoshop as well. (without it, the veins looked too light when viewed from the underside as they took 100% of the lighter back material)
Render showing 2sided material with correct front/back materials but no transparency. (Click to show full image)
7Finished result Click image for 800px version. Rendered using VRaySky and VRaySun, and a VRayPhysicalCamera.
No comments:
Post a Comment