Thursday, March 31, 2011

SketchUp Keyframe Animation

Here is another video using the Keyframe animation plugin.

SketchUp Animation



This animation was rendered using Sketchup and Kerkythea. The animated portions of the building were created using the Keyframe Animation plugin by the company Regular Polygon. It's free to try and only 20 bucks to buy. You can find more information about it here http://regularpolygon.blogspot.com/ the second half of the video was rendered in Kerkthea and the two videos were merged together using Adobe Priemere Pro. If you are interested in learning more about the process in "detail" please subscribe to my blog and youtube channel http://www.youtube.com/user/ArchitectureGraphics

Wednesday, February 23, 2011

SketchUp is easy but…


SketchUp is the easiest program I have ever used! Most people don't need to take a course or even buy a book to learn SketchUp, it's that intuitive. Therefore within a few days your average newbie will feel like a SketchUp "Guru". Newsflash! You probably can increase your productivity. The reason I say this is because new users often fail to employ these fundamental guidelines when modeling in SketchUp.

Here is a checklist of things that every SketchUp user must do:
1. Make everything a group or component. This is a very important step to ensure that you are able to easily modify your model. Often times I encounter beautiful models that are poorly constructed because they did not use groups or components. Therefore it's a nightmare when you try to edit the model because everything is "stuck together." Take a little extra time and make sure you group items as you create them.


The two figures above look identical; the difference is that the fist set is not split into different groups and the second set is. Therefore if I decide to move the box to the center of the plane watch what happens to the first set.


Notice that the box stretched the plan to its new location; this is a result of the items not being grouped separately as they were created.

2. Make sure faces are oriented correctly. SketchUp has the unique ability to display a two-sided face (plane). You can also apply a material to either side of that face. However, there aren't many other programs that can do this, therefore if you want SketchUp to play nicely with other programs you need to flip any reversed faces. Otherwise the exported model will not display properly in the program you are using.


The image above shows a native SketchUp model with materials. However if you were to switch the model to monochrome mode as shown below you will see that the blue faces represent those that are oriented the wrong way. Those faces will not display correctly if exported to another program.


3. Control your file size and performance by using layers. It's really easy to load up your model and create a huge file size, especially with the Google Warehouse at your finger tips. Things like panning and zooming become a chore because it moves so slowly. Place items on different layers in a logical manner and turn off the layer when you are not manipulating those items and the speed of the model will increase.

That's pretty much it, from my experience these are the most common task that many SketchUp users fail to understand and implement.

Tuesday, February 22, 2011

SketchUp to Kerkythea Tutorial

Rendering SketchUp models in Kerkythea requires a few additional steps in the way you construct a SketchUp model in order to fully utilize the power of the Kerkythea rendering engine.  This brief tutorial will go over the major factors you must consider when modeling in SketchUp as well as a detailed instructions for rendering your model in Kerkythea.

SketchUp Modeling guidelines:

1. Component, Components, Components… When modeling in SKP, it is important that items be grouped logically. For instance, windows and doors should be separate components from walls; walls should be grouped separately from the site etc. This is important when exporting to other programs for the simple fact that if you need to move or delete an object and it is connected to another object in the model, the later object will also be moved or deleted as well. Ungrouped items can potentially cause issues in Kerkythea. (Side Note)Ungrouped items are unusable in 3DsMax. The grouping of items makes it easier to manipulate the model especially if multiple people will work on the file.

2. Faces need to be properly oriented towards the viewer. If Faces are reversed they will render blank in Kerkythea as well as any other rendering program. You can check the orientation of the face by switching to monochrome mode; tan faces are oriented correctly and blue/grey faces need to be reversed. In order to reverse a face, right click on it and select “Reverse Face”.

3. Everything needs a thickness even glass! SketchUp is unique in its ability to display both side of a face, however Kerkythea and many other programs cannot. Therefore every object must have a thickness. For instance, walls should not be paper thin. If they are and you have a window looking into the space you will not be able to see the inner face of the walls, they will render clear or black.

4. Carefully analyze models download from the internet (Google Warehouse) before using it in your model. User submitted models online often break some if not all of the guidelines listed above. The biggest culprit is faces being oriented in the wrong direction. I often quarantine models by opening them in a separate file and then I make any necessary corrections before moving it to my host model.    

5. File size is important, maintaining a moderate file size is important for successfully exporting a model for render. It is also essential for reducing render times. A few ways to reduce the file size is to model only the information that will be seen. For instance you may consider not adding plumbing fixtures to the restrooms of a model if they will never be seen. The biggest issue is usually “Entourage” landscaping, people and cars will drastically increase your file size. One way to keep the file size in check in regards to the “Entourage” is to use the more detailed models (Hi Poly) only where the camera (view) is closest and use less detailed (Low Poly) models in the background and areas where it isn’t as noticeable. (Side Note) people and trees are file hogs and will drastically reduce computer performance, make sure they are on a separate layer so that you can turn them off the layer to improve performance in SketchUp while you are working on a different part of the model.

6. Only .JPEG materials will export correctly to Kerkythea. Materials that are .tga are .pngs will export but they will not contain any transparent information. Exporting .tif ‘s produce random results and .PSD will not export at all! Stick with .jpeg’s and you shouldn’t have any problems

7. Model and material names should not contain any special characters. This causes issues within Kerkythea. 

8. Set up your scenes (cameras) and daylight system in SketchUp and Kerkythea will import them. You can set up the camera and lights in Kerkythea but the setup is much more intuitive in SketchUp.  

9. It’s a good idea to purge and saved the file before you export to Kerkythea.

Exporting and rendering in Kerkythea:

1. Make sure you have properly installed Kerkythea and the Kerkythea export plug-in on your machine. Please refer to http://www.kerkythea.net/ for detailed installation instructions. Notice that it is a two part step which involves installing a plug-in directly into SketchUp as well as installing the Kerkythea program.

2. From the plug-in directory in SketchUp select “Kerkythea Exporter” then select “export model”. This will give you a pop-up with a few different settings you can choose.


Make sure geometry and lights is set to “yes”. Set the rest of the values to no. (Side Note) if you set Clay to yes your model will export without materials. Photomatched should be used only if you have your model matched to a photo in SketchUp.  Default UVs will reset the scale of all of your materials to their default settings. For instance, if you scaled an object that has a material on it by twice the size, the material size will double as well, and any new materials added to the object will double as well. If you turn on Default UV’s, if you add a new material in Kerkythea it will go to the default size in lieu of being scaled by 2. 

3. Hit OK and save the file with the same name as the SketchUp file. Once the file has exported which will take a few second to several minutes depending on file size, open up the model in the Kerkythea software.

 
By default you will see a wireframe version of your model. You can change the view to see the materials by going to View>Adjust>Solid Rendering.













4. Now that you can see the materials you can edit or replace them by clicking on them. The corresponding name appears on the left-hand column with a star. Right click on the name and you will have several options.













To simplify this tutorial we will only focus on applying a new material. By default you will only have the basic pack of materials. (To download more materials please go to http://www.kerkythea.net/)
Choose the desired material and it will replace your current selection.  (Side Note) I usually replace the glass material from SketchUp with the “thin glass” material in Kerkythea. This is because the glass material from SketchUp does not reflect. I also replace any metal material with a Kerkythea material. The rest remain as native SketchUp materials.















5. Now that you have applied and edited your materials it’s time to render. Select the view that you would like to render. The list of views is located under cameras on the left hand column on the screen. Right click on the view and select “go to/follow” to make this the current view.
Click the green render button located at the top of the screen to see the render options.
























Camera- Leave set to current view

Resolution- choose desired resolution, you can use a preset resolution or type in your own
(Side Note) the higher the resolution you use the longer it will take to render.

Settings- This is where you set the quality and type of the rendering. Use “Photonmap Quick” to see a rough preview of what your rendering will look like. Choose “Photonmap High or fine” for the final rendering. (Side Note) for the sake of simplifying this tutorial I will not go over the various other rendering choices. I will however suggest that if you have a lot of glass or other shiny materials, your rendering will benefit from using the “Photonmap+Caustics” setting, however this mode will drastically increase the rendering time.

Threads- Choose the highest number that is listed. The number will vary depending on how many cores you have in your PC. The more cores you have the faster your image will render. If you have a dual-core pc but only select one core, your pc is rendering at half of its capable speed.

Network- This is an advance feature that allows multiple pc’s to render a single file. Please refer to the Kerkythea.net User Forum for additional help.

After you have made all of your selections, uncheck “render in background” so that you may see the rendering as it progresses.  Click “apply” and “ok” to start the rendering. A render window will appear that shows the rendering taking place, this could vary from minutes to hours depending on settings, size and complexity of the model.














After the rendering has completed, hit the save button in the upper right hand corner of the floating window to save the image.

This completes the basic steps for rendering a single image.

To render an animation:
  
1. Make sure you have at least two scenes (cameras) set up in SketchUp. Kerkythea will render an animation that transition from one camera to the other. You can set the duration of the transition and the scene delay by going to View>Animation>settings


  














2. Now follow steps 1-4 listed under “Exporting and Rendering in Kerkythea”

3. Once you have set your animation settings you must export an animation script. This script contains the instructions that Kerkythea will use to execute the rendering. To export the script go to Plugins>Kerkythea Exporter>Export Animation Path








After you make the selection you will get this menu.


 









Frames per second- Basically this controls the smoothness of the video. As a bench mark, 30fps is what broadcast television uses (actually 29.97 fps to be exact). The higher the frame rate, the smoother the video will play. However high fps increases render time. From my experience 20fps, is a nice balance between speed and quality for architectural animations. 

Loops to camera- this controls whether or not the animation returns to its original starting point. This is essential if you intend for the animation to play continuously without interruption.

Animated Lights and Sun- Each scene (camera) can save a different sunlight setting. If this is turn on your animation will update to the corresponding time of day as the animation plays.

Face-Me Components- This controls whether or face-me components always face the camera in Kerkythea as it does in SketchUp.

Resolution- This controls the image quality for the intended playback format. 640x480 is the resolution for standard definition TV (SDTV). However if you want to optimize the animation for a specific format use 1080x1920 for Full HD, 720x1280 for HD, 576x720 DVD quality. (Side Note) Some computers are not powerful enough to play HD video which will result in choppy video. SDTV or DVD quality is a good universal choice.
4. Once you export the animation path save it with the same name as the SketchUp and Kerkythea file in the same folder as your Kerkythea model that you previously exported (Very Important).

5. Now with the model opened in Kerkythea. Got to File>Run Script
 












Once you are prompted for the script location. Find the folder where you saved the script file, the extension is “.kst” once that file is loaded the animation automatically begins. Expect the animation to take several hours to complete.
















Notice that “Anim_filename” folder was automatically created when you exported your animation script. Your animation frames will be saved here as they are completed.  Each frame will be uniquely numbered sequentially. Kerkythea will alert you once all of the frames have been rendered.

Now that all of your frames have rendered you must use video editing program to stitch the images together into a single animation clip. Adobe Premiere is a great choice.
END