2D Proxies in V-Ray for SketchUp
Search Keywords: proxy
Part I: Importing the Proxy
Part II: Applying Materials
Part III: Preparing the 2D Images
Part IV: Importing the image and making it a component
Part V: Replacing the low Polygon proxy representation for a 2D images
Part VI: Next time that you need the same proxy
Part VII: Import the Proxy component
In V-Ray for Sketchup there is a way to replace the proxy geometry by any other object. Every single vertices and faces consume memory of ram, meaning that if you have several proxy in the scene, not only the Sketchup feedback is slower, but you could be wasting memory of ram needed to achieve a high resolution render. That is why it is a good idea to replace the actual low polygon proxy representation for an even more simpler geometry. In this document we are going to replace the Proxy triangle representation for a single surface with the image of the proxy object.
Step 1. We are going to click in the import proxy icon to import a proxy tree.
1.1. The proxy geometry doesn’t support material information, therefore V-Ray for Sketchup will create a multi-material and it will have random material color for every single ID.
Step 2. Click Render and you will see all the random color of the material ID.
2.1. In this example, the tree has two material ID applied to it. the green material (ID 1) for the leaves and the pink material (ID ) for the trunk.
In the material editor you can see a generic multi-material with two ID. The idea is to replace those two generic material with the final material.
You can apply the correct material to the proxy multi-material. There are couple way to do this.
Step 1. You can edit the current material and add all the mapping and material properties as reflection, bump, etc.
Step 2. You can import material properties over the current materials by selecting the material, right click on it and select import material. This will override the current materials properties with the desired once.
Step 3. You can import new materials and replace the old material in the multi-material for the imported once. This is method that I’m going to use in this tutorial.
Notice in the material editor the new materials. For the leaves, we are using a 2 sided material to achieve more realism. Also you can see the final render with the correct material.Now the idea is to use the same image of the render to replace the proxy tree representation.
Step 1. Make a render of the final tree without floor and kinda front view. Something similar to the previous render in this example.
Step 2. Save the image as .png. Saving the image as .png will remove background.
Step 3. Crop it to the tree bounding box.
Import the tree image into Sketchup
Step 1. Select file, import
Step 2. Select .png in the file format.
Step 3. Select import as image
Step 4. Select the image and click open
Step 5. Place the image in Sketchup and be sure that the high is the same as the proxy tree.
Step 6. Explode the image. We want to create an always face camera component.
Step 7. Select the whole image and right click on it.
Step 8. Select “Create component”
Step 9. Assign a name to the component, enable the always face the camera option.
Step 10. Set the component axes to the bottom of the trunk and click “create”.
The proxy object is a group enclosed in a component. So, if we replace the geometry inside the group we are not breaking the proxy.
Step 1. Copy the 2D image component of the tree.
Step 2. Double click on the proxy tree to enter into the component.
Step 3. Double click again, to enter inside the group.
Step 4. Now that you are inside the proxy group, you can import the 2d image component
Step 5. Delete the proxy geometry representation. ( we are going to use the 2d image to represent the proxy)
These method is very useful for couple reason. First you are representing the Proxy file with less polygons that the V-Ray default proxy setting saving valuable ram resource. The Sketchup viewport feedback will be faster no matter how many proxies you get on your scene and the 2d representation will give you a great idea of how you. final image will look.
Due Proxy doesn’t support materials, the next time that you import the proxy, it will come without the real materials. The solution is to save the proxy component as Sketchup file.
Step 1. Select the Proxy component that you want to save.
Step 2. click on save as, then press “save”.
Step 1. Go to the File menu
Step 2. Select “import”
Step 3. In the “File of type” select “Sketchup file”
Step 4. Click “open” and place the file in your desire position.
Here is an example of the 3d warehouse scene with proxies trees and grass.