Rendering your 3D models part2
Kerkythea is an open source rendering application that makes life-like images. A community developed plugin can import Google SketchUp 3D models into Kerkythea, so we can use it to render boards made with EagleUp.
Since Kerkythea is open source there are no restrictions at all, unlike the Maxwell plugin for SketchUp. You can render images at any quality or resolution, though it is somewhat more complicated to work with. The goal of this tutorial is to help you make your first lifelike PCB rendering with Kerkythea.
Install Kekythea and the SketchUp plugin
You'll need to have a model built and SketchUp installed on your computer. If you haven't done this already, check out our "Build 3D models from Eagle files" tutorial.
Once you have a model, download the following:
Run Kerkythea2008.exe to install the application. Extract SU2KT_3_17.zip (Kerkythea SketchUp plugin), and follow the su2kt_Install.txt file to install the SketchUp plugin.
Install material libraries
We recommend the following (do not extract the files):
Download them into a folder of your choice.
To install the material libraries:
- Start Kerkythea
- Select File->Install Library
- Select all the zip files you downloaded
- Hit OK
Edit model for export
Before we export the model into Kertythea there are a few thing we can do to get the best rendering results. Soft edges look more natural, and consistently named materials and colors make updates easier.
Softening the edges makes them look more realistic in the final rendering. Follow these steps to soften the edges on your parts:
- Select the part you'd like to soften.
- Right Click on it, and select Soften/Smooth Edges.
- A small slider will show up, by moving it left or right you can adjust the amount of softening you want.
- We adjust the softening until the sharp edges just disappear. Watch out not to overdo it!
- If you don't want all of the edges to be smoothed, open the part model by double-clicking it and select just the edges you want to adjust.
Since its a high probability that most of your models are from external sources, you'll need to make sure that all the colors have the same name.
Click the Paint Bucket tool, the Materials GUI will open up. Select the Sample Paint tool.
- Click the various surfaces of your models to see color information about them
- Use the Paint Bucket tool to assign similar materials the same color
Exporting to Kerkythea
To export your model click on the Export model to Kerkythea button in the Kerkythea toolbar.
Use the same settings as shown in the example above, click OK. Next select where to export model and hit OK.
The model will be converted and the Kerkythea Rendering System will start.
By default, Kerkythea will show a wireframe of the model. This can easily be changed to fill in the faces with the appropriate colors, making it a little easier to see what's going on.
Editing the materials
To get photo realistic effects you'll need to edit the materials in your model. The material libraries we downloaded earlier will be our templates.
Materials are listed in the left side bar under Models. Double click on one. The part of the model wire-frame associated with that material will turn yellow.
Right click on the material and select Edit Material. The Material Editor will open.
There are two types of materials. Some are a single color, others use an image. They require a slightly different setup process.
Left click on the color in the diffuse section.
Check and remember the RGB values. Close that popup.
Left Click on the material preview (usually a ball with a checkered flooring).
Select the material you to use as a template. For IC packages and the board we suggest Basic_Plastic_perfect_reflection->IOR_ 1,100.
Select the #0 layer and click on the diffuse color.
Now input the RGB values we found previously. Hit OK, then Apply Changes, and finally Close Editor.
Materials that use an image as the background, like the circuit board, use a similar process but an image is used instead of a diffuse color.
Follow the same process as before:
- Left-click on the material preview
- Select the material you'd like to use as a template, we suggest Basic_Plastic_perfect_reflection->IOR_ 1,100
- Right click on the diffuse color(blue) and hit the X button to delete it
Right click on diffuse, and select add Bitmap. Choose the image for that material. Hit OK, Apply changes, then Close Editor.
Repeat these steps for all your materials.
- For metals, we get the best results using the metals library templates without any changes to the diffuse color.
- You can play around with the Shininess characteristic if you feel like it.
Once all the materials are assigned, it's time to make that killer photo real rendering of your next great project.
Use the middle mouse button and hand tool to put your model into the best position for the rendering. When you are happy with the viewpoint, select Start Render.
Choose the resolution you want. The higher the resolution, the longer it will take to render.
We like to use the No.17 Path Tracing - Progressive setting. It renders indefinitely until you stop it.
Once you are satisfied with the quality, hit the Stop Render button. To save your rendered image, click on the Image button, and hit Save.
That completes our three part series on rendering life like circuit boards with Google SketchUp. Be sure and check out every tutorial in the series.