官术网_书友最值得收藏!

Setting up an arch-viz scene

There are several ways to begin setting up our scene. All of these will help anchor your scene in the existing surroundings and give the model a context and scale that our audience needs to relate to the project.

The following are the main scene setup methods:

  • Import a satellite image and terrain data via geolocation
  • Use a site photograph with the Match Photo tool
  • Import a scanned site map, image, or pencil sketch
  • Build on data from an imported CAD file

Any of these can be used in combination, and it is this flexibility that makes SketchUp so unique. SketchUp is equally at home with accurate CAD, as it is with pencil concept art. We're going to look at each of these starting points individually so that you can choose the best combination for your particular way of working.

Of course, you can also just start sketching away and build up a complete scene with context from scratch. However, there is nothing special about this, is there?

Importing terrain data

Thanks to its history with Google Earth, SketchUp offers an easy way to import a 2D site image from Google Earth. Often, this is the quickest way to get context information on a site, especially in the early stages of a concept design or projects in faraway places, where detailed survey maps are hard to come by or do not exist at all.

  1. Open the tool by navigating to File | Geo-location | Add Location....

    A slimmed down Google Earth browser window, as shown in the following screenshot, will appear, and as a seasoned Google Maps user, you should feel right at home:

    Importing terrain data
  2. Use the search bar at the top of the window or the zoom and navigation controls to focus on a piece of land you want to use for the model.
  3. Click on the Select Region button in the top-right corner of the screen, when you have found the right place.
  4. A frame with a pin in each corner appears.
  5. Adjust the frame so that the center shows the area you want to import into your model.
  6. When you are done, click on the Grab button in the top-right corner of the screen.
  7. The image will be imported and centered into your model.
  8. However, that's not all. Navigate to File | Geo-Location | Show Terrain.
  9. The image turns into a textured 3D landscape with true elevation information, as seen in the following screenshot:
    Importing terrain data

Let's inspect what we have just imported into our model. Open your Layers dialog. You will find two new layers in the model: one called Google Earth Snapshot and the other called Google Earth Terrain. On the snapshot layer, you can find the flat 2D image of the site that was displayed first. The terrain layer contains the 3D topographic mesh as a component. Switching between the two via the Show Terrain option toggles the visibility of the layers, so that only one is present in the scene.

The import also gave our model the correct coordinates of the location that we picked. In the Geo-location section of the Model Info dialog, you can see the name of the new Location and information about the Latitude and Longitude.

To modify the imported terrain to fit your new design, do the following:

  1. Right-click on the component and select unlock.
  2. Right-click again and select explode.
  3. Show the hidden elements by navigating to View | Hidden Geometry.
  4. Navigate to View | Face Style to disable textures and, maybe, even switch to a Wireframe view of the model. You will now see the individual lines that make up the imported terrain.

There are a number of plugins and extensions out there that can help you with editing free form geometry such as terrain meshes. The Sandbox Tools are already included in SketchUp, and several others are available via the Extension Warehouse and Plugin Store. If you are planning to do this type of modeling a lot, it is worth checking them out.

Using a site photo with Match Photo

One of the best ways to bring across the concept of a new building is to put it into its existing setting. We can do this with a photo of the site as it is now, before the building commences. It's also one of the easiest ways of producing great architectural visuals because you don't have to worry about all the extra bits of the entourage that need to be selected and arranged. They're already in the photo.

If you can get your hands on a decent camera and the site is relatively uncluttered, this may be the best way to go. The following is an example image of a home that is about to undergo renovation:

Using a site photo with Match Photo

What you need from a Match Photo image

You're going to use the tool Match Photo to set up the SketchUp camera, so that it matches the position and focal distance of the camera you used to take your photo. Before SketchUp Version 6, we used to do this by trial and error, but since Version 6, SketchUp includes Match Photo, which automates the whole task for you. Using this feature, you can create "before" and "after" photos that are very useful for renovation projects, such as the home extension shown in the following image. The realism that the architect has achieved here wouldn't have been possible without exactly matching the camera view:

What you need from a Match Photo image

First, some points about the kind of photographs you need to take:

  • The image needs to show strong vertical and horizontal corners or lines
  • Horizontal lines need to form a true right angle, such as the corners of a 90-degree building
  • The picture should be taken with a horizontal line of sight (don't tilt the camera up or down)
  • Sunny days with defined shadows work best when you are planning to use the scene for photorealistic rendering
  • The image can't be cropped or changed in proportions by an image-editing program
  • Use a digital SLR with good lenses if possible. Failing this, a high-resolution compact camera or even a good smartphone camera will do

For a before and after scene, it is important to make a note of the following important details:

  • The date and time of day
  • The site map or location sketch (to work out the North location)
  • Take a reference photo of the sky
  • Include some right angles in the frame (like the corner of a building)

These allow SketchUp to recreate the position of the camera and sun. You might wish to use the sky's photo to select similar sky settings in your rendering application or to pick a similar HDR sky for rendering (for example, clear, cloudy, or overcast).

Setting up a Match Photo scene

Match Photo works by recognizing perspective foreshortening in the frame. In order to do this, there have to be some buildings or walls or other items with right angles. All you have to do, is open the photo in SketchUp and line up some colored lines with these features.

  1. Select a suitable site image.
  2. From the drop-down menu, navigate to Camera | Match New Photo.
  3. Navigate to your photo and select Open.
  4. The image will be imported and red, green, and blue lines will be displayed on top.
  5. Move the origin point (the yellow square) to a corner of a building (or other architectural feature of the building) at ground level, as shown in the following screenshot:
    Setting up a Match Photo scene
  6. Click and hold the left-mouse button to move the grips.
  7. Align one of the green dotted lines along an edge going off to the right.
  8. Align the second green line in the same plain but higher up the blue line (the z axis), as shown in the following screenshot:
    Setting up a Match Photo scene
  9. Do the same with the two red lines to the left.
  10. Click on Done, as shown in the following screenshot:
    Setting up a Match Photo scene

SketchUp has now created a new scene (see the tab at the top of the 3D window), which you can click on whenever you want to come back to this view. You will see the image only in this scene. If you move the viewpoint away from the viewpoint of the image, the backdrop will disappear.

You have now set up the blue, green, and red axes to correspond to the up/down, forward/backward and left/right directions that you have captured in the photograph. Having done this, you can now happily draw away in the scene, knowing that the model you create will always look as if it is right within the photograph. The depth of the field, focal length, and eye height have all been taken care of. This is a big deal, because doing this by trial and error would have taken far more time and probably caused a lot of frustration!

3D drawing in a 2D photo

You can now test your new perspective setup by drawing a simple box into the scene. If this looks right in relation to the photo, you know you've done the Match Photo process correctly.

  1. Select the pencil tool.
  2. Click on the origin (where the blue, red, and green axes meet).
  3. Move up the blue axis and click on the blue axis to set the end point of the line at the height of the eaves or gutters of the building.
  4. Move along the green axis and click on a point along the axis to define the width of the facade.
  5. Move down the blue axis, hold the Shift key to activate the constraint to the blue axis and click on the origin.
  6. Release the Shift key and click on the origin again to complete the face, as you can see in the following screenshot:
    3D drawing in a 2D photo
  7. Select the Push/Pull tool.
  8. Push the face along the red axis to form a 3D box, as shown in the following screenshot:
    3D drawing in a 2D photo

The perspective of this box should be in keeping with the house, wall, or any other right-angled item that you included in your photo. If it isn't, just click on the photo match pallet, click on the cogs symbol to edit the Match Photo setup, and tweak the dotted lines. The best indication that you're right is when the blue axis lines up perfectly with the corner.

You have just created a 3D box to represent the existing building. Rotate the view with the mouse to view it. Notice that the photo disappears. Don't worry; you can bring it back at any time by clicking on the scene tab that the Match Photo tool created at the start.

You can now draw or add anything onto this scene, and it will look correct if you place items into the scene in relation to the 3D box, as you can see in the following screenshot:

3D drawing in a 2D photo

Setting up a real-world location and the Sun's position

Before we can create renderings of the new geometry that blend in with the rest of our photo, we have to set the location and orientation of our scene. Once this is set, the shadows on the model will match up with the shadows in the picture.

For scenes created with the Match Photo tool, setting the orientation is important, because the lines you set as your x and y axes are most likely not aligned with East and North, respectively. Unfortunately, the simple controls for the location and orientation settings have been removed since SketchUp 2013.

Luckily, you can still download a plugin by Jim Foltz. This plugin recreates the necessary controls. He has kindly allowed us to provide a copy of the Ruby files on the Packt support website. Go to http://www.packtpub.com/support and select the title of the book from the drop-down list. Then, download the files model_location.rb and inputbox.rb from the Chapter 3 folder and copy them both into your plugins folder (refer Chapter 2, Collecting a Toolset, for details). Restart SketchUp, and you will find a new Model Location entry under the Plugins menu, as shown in the following screenshot:

Setting up a real-world location and the Sun's position

With this simple tool, you can set the location, time zone, and North orientation of your scene. A simple way of going about this is to set up the location, date, and time of day using the Shadow Setting menu in SketchUp. If you have previously noted down the time and date when you took the photo, you can set this up now too.

  1. Open the plugin from the menu by navigating to Plugins | Model Location.
  2. Set the Latitude and Longitude of your site.
  3. You can also give a name for the Location and Country, but this has no influence on the Shadow Setting.
  4. Change the Time Zone to the right offset for your country. If you want to simulate Daylight Saving Time, also set the Daylight option to true.
  5. Set Show North? to true. The North direction will now be displayed in the model as an orange line. Adjust the North Angle until the line points to the geographic North in the model.

Setting up the time and date for shadows

All that remains is to tell SketchUp what time of day and date the photo was taken. You can do this with the Shadow Settings dialog box, as shown in the following screenshot:

Setting up the time and date for shadows
  1. Navigate to Window | Shadows.
  2. Use the sliders or type in the date and time.
  3. You can adjust the time zone here as well. Notice that the setting will also update in the Model Location plugin.
  4. If you don't see the shadows in the model yet, open the View menu and click on Shadows. A check mark indicates that shadows are displayed in the model.

    Note

    Use this function to set up accurate shadow studies for all your projects. For example, you can now check the sunlight that each room will receive at any day of the year.

You have now set the location, orientation, time, and date of your site. This means that the Sun and shadows will behave just as they would if you were really there.

Check the shadow cast by the box. Does it match with the photo? If not, you may have got the North orientation mixed up or forgotten to set the correct location. You can go back and change this now. You can also use trial and error on the sliders for the date and time to match the shadows in the photo as closely as possible.

Now that you've learned everything you need to know about setting up a physically accurate environment, let's look at the other great methods you can use to set up a site in SketchUp. Don't forget; even though shadows and shading look quite cartoony now, these settings will be used to define the physically accurate Sun and sky conditions when you export them to a renderer.

Sketch plan

SketchUp works surprisingly well with sketchy details. So, even importing a rough sketch plan or a scan of an old hard copy drawing you might have found lying around still works well as basis for your 3D scene.

  1. Scan the map image. Don't go crazy with the scan resolution (DPI). Use just enough quality to clearly see the lines you are going to use in the model.
  2. Save it as a JPEG or PNG image.
  3. In SketchUp, navigate to File | Import....
  4. Navigate to the image and click on Open.
  5. Click where you want it and drag it to a size about as big as the site.
  6. If your image contains a drawing scale, measure the size of the scale in the scene and scale the image.
  7. Now, you can start creating your geometry right on top of the image and build up the footprint and floor plans of the building.

As long as you use the image lines as guides, you will produce a proportional model. It is surprising how little detail you need to start drawing meaningful 3D visuals.

Sketch plan

Now, just try to draw a very basic (or pretentious) house and garden plan or look for one in an architectural or DIY magazine. Scan this into the computer, or alternatively, find one on Google Image Search and use that. Can you see how easy it is to construct from sketches? The important thing here is that you've used a proportional sketch or drawing as guideline rather than just starting to draw in 3D from scratch.

Starting with a 2D CAD site plan

If you have an existing CAD drawing, either a proposed or existing site plan, you can easily import it into SketchUp and build up the 3D site from there. The benefit of a CAD drawing over an image is the precision that CAD data provides. Also, CAD lines will be imported as SketchUp edges, which you can snap to when creating the 3D elements.

You should have a CAD application such as AutoCAD LT or a free alternative such as DoubleCAD XT (www.doublecad.com) or DraftSight (www.3ds.com/products-services/draftsight/) available to do some cleanup work. Usually, CAD drawings are not optimized for rough SketchUp work but contain a lot more information than necessary. Here are a few things you should look out for before you import a CAD drawing into SketchUp:

  • Remove unnecessary elements such as text, grid lines, or sheet layout elements
  • Remove pattern fills and hatches, especially if they are individual lines and not complex drawing elements
  • Use the explode command to convert 2D polylines to normal lines
  • Remove geometric details you will not use in your model (such as crown molding)
  • Identify the layers you do need for your model (walls, doors, windows, and hard landscape) and delete all the others

In Chapter 4, Modeling for Visualization, you will also learn how to import and use CAD elevations (side and front views) to build up the detail.

Note

You need SketchUp 2014 Pro to import DWG or DXF files into your scene.

Setting up a CAD site plan

Follow these basic steps to clean up your CAD drawing for use in SketchUp:

  1. Open the CAD plan in your CAD drawing application.
  2. Save a copy of the file and rename it cadplan_xref.dwg or similar.
  3. Delete all the lines, hatchings, xrefs, dimensions, text, and blocks you don't need.
  4. You can keep the 2D blocks representing the elements that you do want to replace with 3D geometry (such as plants) in your drawing, but make sure that the blocks do not contain too many lines.
  5. You should be left with clear outlines of buildings, roads, and landscaping.
  6. Select everything and move it near to the absolute origin (0,0) of the drawing.
  7. Zoom to extents to verify that no stray lines are left at a great distance from the center.
  8. In AutoCAD, you can use the purge command to clean up the drawing structure and remove unused elements and layers.
  9. Hit Save.

You now have a basic plan from which you can begin modeling the environment around your building and the building itself. Now, you need to import it into SketchUp at the correct scale.

  1. Open up SketchUp.
  2. Start the import tool by navigating to File | import.
  3. Change the Format drop-down box to AutoCAD Files.
  4. Hit the Options... button and verify the import settings, as follows:
    • Adjust the Scale to fit to your CAD drawing scale
    • Preserve drawing origin is useful if you have split your CAD drawing in multiple files (such as floor levels) and want to import them at the same position in the model
    • Merge coplanar faces and Orient faces consistently are relevant if you import 3D elements. You can always have them checked, as seen in the following screenshot:
    Setting up a CAD site plan
  5. Select your drawing file and click on Open.
  6. You will see a progress window displaying the elements that are being processed. At the end, a summary of imported drawing elements is displayed.
  7. Hit Zoom Extents. If the view zooms out so far that you can't identify any of your drawing elements, you will see that there were some stray lines left in the drawing that were not deleted. You can try and hunt them down in SketchUp or return to the CAD drawing to delete these lines and repeat the import. Either way, you should remove these extra lines.
  8. If your scene already contained an element (such as the default Sophie component), all lines will be combined in a component. If the scene was completely empty, the lines will be independent. If this is the case, select all the lines now and turn them into a component.
  9. Use the Tape Measure tool to verify the size of the imported lines. Measure the length of an element with a known dimension (such as a wall) and make sure you snap to the end points of the line.
  10. If the scale is not correct, just type the correct length right after you took the measurement and hit Enter.
  11. SketchUp will ask: Do you want to resize the model?
  12. Confirm that you want to resize the model, and all drawing elements will be scaled to the correct size. Measure the new size again to confirm.

In the following screenshot, you can see an imported CAD plan scaled to the right size. You can compare the size of the person with the size of the door opening or a chair to confirm the correct scale.

Setting up a CAD site plan

You now have the plan within SketchUp and scaled to real-world dimensions. This is important, because SketchUp is built for real-world architectural models, and every component you will add to your model (such as persons or plants) will come in at a realistic size.

Cleaning up the imported CAD data

If you only have a few layers in your CAD file, you can leave it at that. However, if there are dozens of layers in the file, these have now been replicated in SketchUp. It's time to do a bit of cleanup work:

  1. Open the Layer dialog by navigating to Window | Layers.
  2. Activate Layer0.
  3. Select all the CAD layers by holding down the Shift key.
  4. Select the minus icon at the top to delete all the layers.
  5. A popup will give you a choice about what to do with the content of the layers. Select Move to Default Layer.
  6. Click on Delete.
  7. The layers will vanish, and all content will be placed on Layer0.
  8. Create a new layer called CAD drawing.
  9. Select the component of the drawing and assign it to the newly created layer. Now, you can switch off the layer when you don't want to see it in your model.
    Cleaning up the imported CAD data

CAD applications use layers to separate elements. In SketchUp, all the basic elements should be drawn on Layer0, and only the containers (groups and components) should be assigned to a different layer to control the visibility of the object. We have created this structure in SketchUp and at the same time, got rid of a number of imported layers that are not useful to us.

Importing 3D data from CAD

If you are lucky and can get a ready-made 3D model for your visualization project, you can also import the entire 3D model into SketchUp. The supported formats are as follows:

  • DWG/DXF
  • 3DS
  • DAE (Collada)
  • OBJ (via plugin only)

When you import 3D content from another application, you have to be careful with the complexity and level of detail. CAD and BIM models can be large in dimensions but still model every detail down to the doorknob in very high resolution. If you actually succeed with the import, the performance of SketchUp will certainly suffer.

Most CAD applications will create triangle surfaces when exporting 3D objects, because these are the most basic objects that every application can handle. In SketchUp, we would prefer to have complex polygonal faces to make use of the native surface tools. Luckily, there is a plugin that can combine triangles to polygons for us. It is Cleanup by Thomthom. You can download it from the Plugin Store.

Although importing a finished 3D model may look like a big time saver, you will find that you will have to spend a lot of effort on cleaning up, restructuring, and converting the triangular surfaces into something that can be easily handled and modified with SketchUp. Therefore, directly importing CAD or 3D data is most useful for objects that you are not going to edit a lot, such as a car or a surrounding urban block. If you are going to make a lot of modifications to the geometry, it may be faster to recreate the model from scratch with all the tools and the correct structure of a SketchUp model.

主站蜘蛛池模板: 陕西省| 义乌市| 邵武市| 乌什县| 西昌市| 忻城县| 绥棱县| 六枝特区| 华亭县| 随州市| 元谋县| 宽甸| 阿坝| 垦利县| 马龙县| 达孜县| 西畴县| 保山市| 交城县| 玉树县| 吉安县| 台湾省| 惠州市| 门源| 大英县| 汾西县| 平远县| 民丰县| 五寨县| 兴业县| 桂林市| 修武县| 怀柔区| 南溪县| 兰西县| 无为县| 湘潭县| 台江县| 屏东县| 西和县| 凤城市|