Making a hi-poly tree proxy using OnyxTree and ply2vrmesh
- Copy the shortcut for ply2vrmesh to desktop to make things easier on converting.
- Adjust the shortcut to include some of the parameters that I like to use, like reducing the polygon count. Adjust as you see fit. Under Target for the shortcut properties, I use:
%comspec% /k ply2vrmesh.exe -previewFaces 800 -smoothNormals -materialIDs - Open Onytree Broadleaf and create a hi-poly model of a tree. I use geometric leaves and not 2D planes as to not have to use clip-map leaves which increase render times.
- Go to the export panel and use OBJ as the file type. - Look at the polys, (just under a half million polygons).
- I save the OBJ file to my desktop.
- Drag the OBJ file right on to the ply2vrmesh shortcut you created.
- The DOS shell window will open and you should see the conversion process take place and a vrmesh file will be saved to your desktop. Copy the vrmesh file to a shared location on your network or workstation. For now, we cannot relocate a proxy file from SketchUp, so the easiest way to deal with this is to just have a shared library in one place for now. Otherwise, you can copy the vrmesh file and place it into the same folder as your SKP file and when you open your SKP file, V-Ray will load the proxy from there.
- Import the mesh into SketchUp. You will need to open the component and rotate it, switching the green with the blue axis. This is the one limitation of using an OBJ file. If you use the FlipYZ argument in the ply2vrmesh utility, you will lose your UVW mapping, so just do the Y flip inside SketchUp.
- Create your materials to be placed on to the ID channels and assign them. For me. I just use one bark material and one leaf material. From OnyxTree, All IDs are all trunk and twig objects and the last is set for leaves.
- I like to render out a low res PNG of the tree and import into the group with the proxy poly reference as a visual reference in SU.
- Right click the proxy and Save As to save your proxy component into your proxy library. If you dont have one, now is the time to start one!
- 160 million polys rendered in SketchUp in 3 minutes! This is where the geometric leaves really cut on render times. If you don't have Fur or Comp Sprayer plug-ins, get them!
Comment