After developing a 3D model, you'll usually want to apply materials and render it to get a better feel for the substance of the project so that you can produce a clearer presentation for clients.
In this chapter, I'll give you a quick tour of some of these rendering steps as you set up a view of the cabin and render it. Developing a full rendering takes time and patience, but touching on a few of the many steps involved will give you a feel for the process. You've put in a lot of time working your way through this book, and you deserve to have a rendered 3D view of your cabin to complete the process. Be aware, however, that rendering is computationally intensive and can task your computer pretty heavily. It's a good rule to save your file prior to each rendering attempt.
Similar to saving named views in Chapter 10, “Generating Elevations,” using cameras is a method for returning to a saved viewpoint. The most significant advantage of cameras is the ability to select the camera object and change its position or orientation, rather than panning or zooming in the drawing area. Cameras can also be animated to show your model from a variety of locations. Before you place the cameras, however, you'll create some land on which your cabin will sit, so that it no longer appears to be floating in the air.
The Loft tool builds 3D geometry in one of three ways: by connecting a series of 2D shapes, called contour lines, with 3D surfaces; by extruding a cross section along a path; or by controlling the transition between two cross sections with 2D guide curves. You'll use the first method to create a loft object to serve as the land by drawing concentric 3D polylines, converting them to splines, changing their elevations, and then lofting them. Follow these steps:
Because each contour you'll draw will have a constant elevation, you'll use a standard polyline instead of a 3D polyline. Standard polylines can have only a single elevation, whereas 3D polylines can have many elevations.
You can pick an interim point between each of the long sides of the cabin to break up the perimeter. These are the first two contour lines.
If you haven't already, visit the companion website found at www.sybex.com/go/autocad2013ner or www.thecadgeek.com to access the Chapter 17 download, which includes the I17-PropBndy.dwg (M17-PropBndy.dwg) file.
The last three contour lines you drew are at the same level as the top of the foundation. You need to move them downward to define the slope of the property away from the cabin:
A spline is a curved line with control points for adjusting the curvature.
This should provide a gentle slope for the land.
It may be hidden under the Extrude button.
The creation mode is changed to Surface, and the command line once again reads Select cross sections in lofting order or:.
It's important to pick the cross sections for a lofted surface in order; otherwise, the surface may not generate as expected.
Select the outermost polyline and then each subsequent spline or polyline in order, from outside to inside.
You can adjust how lofted surfaces are created by entering S with the LOFT command still running.
Smooth Fit creates a soft transition from one contour to the next.
Your cabin land parcel should look similar to Figure 17.6.
AutoCAD® software uses a camera analogy to define reproducible views. The cameras and their respective targets are placed in model space and, using several available grips, are adjusted to capture the desired view.
A camera icon appears at the cursor location.
TIP If you don't see the Camera panel, right-click the title bar of any panel and choose Show Panels Camera from the context menu.
Now the camera stays in place, as shown in Figure 17.7, and the target is moved with the cursor. The location of the target determines the orientation of the camera, and the visible cone emitting from the camera shows the camera's field of view (FOV), or the angle visible through the camera's lens.
The camera disappears temporarily while AutoCAD waits for input at the cursor and the command line.
The camera reappears in the drawing area.
You should always give your cameras descriptive names to make it easier to find the correct view when multiple cameras exist in a drawing. You can change the camera name in the Properties palette.
The Field of View cone and grips are displayed, and the Camera Preview dialog box opens. This dialog box displays the view from the camera in one of the available visual styles (see Figure 17.9). The 3D Wireframe visual style is the default and the one you will use here.
You may need to click the grip again for the Camera Preview dialog box to refresh.
Raising the target brings the cabin more into the preview window.
Notice that the two cameras now appear in the list, as shown in the left image of Figure 17.10.
Alternatively, the list of custom model views is accessible from the View Manager dialog box (see the right side of Figure 17.10). Open this dialog box from the View tab Views panel.
Your drawing area changes to view the scene from the selected camera, as shown in Figure 17.11.
Without a well thought-out lighting scheme, the scene can look flat and unappealing. In this section, you will add a light to represent the sun and then an additional light to add ambient illumination to the scene.
AutoCAD has four kinds of lighting, each with a distinct method for distributing light rays into the scene. They are as follows:
Point Light All light rays are emitted from a single location and diverge as they get farther away. An incandescent lightbulb is a real-world example of a point light, even though the light does not travel in the direction of the light's fixture.
Spotlight With this type of light, rays are emitted from a single point, but they are restricted to a conical portion of the amount of light that a similar point light would emit. Flashlights and headlights are examples.
Distant Light With this type of light, all light rays are parallel. Although the sun is technically a point light, at the enormous distance the light rays travel to Earth, they are nearly parallel.
Weblight These are photometric lights with real-world distributions. These lights can be used in conjunction with light distributions derived by manufacturers of real-world lights. Using manufacturer data to establish lighting distributions helps ensure more accurate representation of rendered lights than possible when using point or spotlights.
Each light type has a unique set of parameters. The sun is a special distant light and has its own settings, including determining the light's position based on the geographic location of the scene, the date and time, and the ability to add ambient light to the drawing.
To add this type of light, you'll use tools in the Visualize tab of the Ribbon:
When it is off, the button will not have a blue background as the cursor pauses over it and there will be no default illumination in the scene.
Be sure that it's toggled on by verifying that the button has a blue background.
The palette may be docked on the side of the AutoCAD window.
The date is set by clicking the button at the right end of the date field and choosing from a calendar.
NOTE If you have Google Earth installed, you could have chosen to import a KML or KMZ file (Google Earth placemark files) or to import the location directly from Google Earth.
The dialog box closes, and the Geographic Location dialog box opens (see Figure 17.14).
You can define nearly any location in the world as the location for the current drawing by entering the latitude and longitude in this dialog box. For your cabin, you'll select the city in which it's located from a map.
The example here uses North America and Richmond, VA. A red cross appears over Richmond (or wherever you've chosen) in the map. The Time Zone drop-down list displays the accurate time zone based on the location you selected (see Figure 17.15).
TIP If a particular city is not listed, you can uncheck the Nearest Big City option and then click directly on the map to set the location or enter the longitudinal and latitudinal coordinates in the left side of the Geographic Location dialog box.
Shadows add depth and realism to a scene and tie the objects to the surfaces on or near where they rest. You have significant control over the types of shadows cast by the lights in the drawing and whether those shadows appear in the viewports. You adjust how the shadows appear in the viewport and how they render in the Render tab.
When shadows are turned on, AutoCAD will render them by using one of three methods: simple, sorted, or segment. The simple method is the default used by AutoCAD, and it calculates shadow shaders in random order. By contrast, the sorted and segment methods each calculate shadows in the order they are cast, and they produce higher-quality renderings at the cost of machine performance. Segment shadows will produce the highest-quality rendering, but they take the longest time to complete.
To ensure that you'll be able to work through this chapter's exercise in a timely manner, we'll stick to the simple method. Don't be fooled by its name; while it doesn't perform the advanced calculations done by the sorted and segment methods, it still produces a detailed rendering without sacrificing system performance.
This displays an approximation of the shadows in the viewport.
WARNING The Full Shadows option requires that your video card utilize hardware acceleration. See the Display Backgrounds and Shadows page of the AutoCAD 2013 help file to determine whether your system is equipped with hardware acceleration.
A rendering is the visual result of the program calculating the effects of the lights and materials on the surfaces in the drawing. Let's make a preliminary render now. Later, you'll add materials and a background and then render the drawing again.
The Render window opens and, after a few moments, the rendering fills in the graphic area (see Figure 17.18). As you can see, the right side of the cabin is unlit and in total darkness.
As with cameras, you should give your lights descriptive names.
Position Z: 30′ (9150)
Shadows: Off
Intensity Factor: 60.000
Lamp Intensity: 15,000 Cd
This gives the light a pale yellow hue.
As you can see in Figure 17.20, this time the shadows on the right side of the cabin are not as stark as they were previously; but the overall appearance is still pretty dark. You need to add some ambient light.
This will add a measure of ambient light to your scene without washing it out.
This rendering looks a bit better than the last. The Render window maintains a history of the recent renderings, and you can compare them by clicking any of the renderings listed in the pane at the bottom of the Render window. To delete a rendering, follow these steps:
You can continue to tweak the lighting as you want. For indoor projects that require rendering, a good rule of thumb is to expect to dedicate 15 to 25 percent of the total project time to creating an excellent lighting scheme. For outdoor scenes, dedicating 5 to 10 percent should be sufficient.
The building looks fine, but it would be nice to have something in the background other than the blank screen, and the lights need to be tweaked.
Some of the options you can set when choosing a background for the rendering are as follows:
The AutoCAD Background This is what you used for the preliminary rendering.
Another Solid Color Use the slider bars to choose another solid color.
Gradient You can use varying colors (usually light to dark) blended together.
Image You can supply or choose a bitmap image.
Sun & Sky Background You can use a computer-generated sky. This background has the option of introducing additional ambient illumination into the scene.
You'll use the Sun & Sky Background option with the Illumination option here:
Doing so opens the Adjust Sun & Sky Background dialog box, as shown in Figure 17.23.
NOTE The sky background options are available only when the lighting units are not set to generic. This is controlled by the LIGHTINGUNITS system variable. Enter LIGHTINGUNITS 2 to set the lighting units to International. A setting of 1 sets the lighting units to American, and 0 sets them to generic units.
Background Illumination will not work if Final Gather Mode is set to Off.
It will take a little longer to process this image, and you'll notice that the image in the Render window is replaced twice—the first time with a very rough-looking representation of the cabin and then again with a sharper result. When it is done, the display in your Render dialog box should look similar to Figure 17.24. The background image not only appears behind the cabin and ground, but it also contributes light to the scene.
NOTE Rendering is a processor-intensive function. It's not uncommon to experience a lag in computer performance or to hear increased cooling fan activity while a rendering is in progress. To help speed up rendering time, you're encouraged to leave AutoCAD as the current application and refrain from performing other tasks on your computer if possible.
Adding the proper materials to a scene can greatly increase the realism of the drawing and convey a better sense of size and texture to the person viewing the image. This chapter assumes that you installed the material library that ships with AutoCAD 2013, along with the rest of the package.
You can assign materials to your drawing objects from several premade libraries, you can create materials from scratch, or you can edit materials that originate from the libraries. In the next exercise, you will apply materials from the AutoCAD libraries:
The Materials Browser palette is divided into two primary areas:
Document Materials The upper region of the Materials Browser palette displays the materials that have been loaded into your current drawing. Above the name for each material, a small thumbnail preview of the material displays.
Libraries AutoCAD materials are filed away into a series of libraries. A list of available libraries along with the material categories within each library display along the left side of the palette. Selecting any library or category on the left will display the materials belonging to that library or category as a series of thumbnails along the right side of the palette. The default installation creates two libraries: the Autodesk Library and the My Materials Library.
Materials may be added to the current drawing from any of the libraries listed in the lower portion of the Materials Browser.
DISPLAY MATERIAL THUMBNAILS
Because materials are inherently visual, many users find the Thumbnail View type to be more useful than the default List View type. You can change this by using the panel display button and selecting Thumbnail View beneath the View Type heading.
A list of categories containing an assortment of materials displays.
The Red Oak - Wild Berries material is added to the Document Materials list at the top of the Materials Browser palette.
Category | Material Name |
Wood | Hardwood |
Yellow Pine - Natural No Gloss | |
Brick | 12in Running - Burgundy |
Glass | Blue Reflective |
Metal Aluminum | Satin - Brushed |
Sitework | Grass - Dark Bermuda |
Siding | Shakes - Weathered |
Roofing | Shingles - Asphalt 3-Tab Black |
Wall Paint | Flat - Antique White |
All of the materials you'll need for your cabin are now loaded into the current drawing. However, before those materials are used for rendering, they must be assigned to objects in your drawing. Materials can be applied to individual objects, faces, or layers. Whenever possible, it's best to assign materials to an entire layer as opposed to individual objects or faces. Subscribing to this practice will help ensure the manageability of your model.
To assign materials to the layers in your drawing:
The Material Attachment Options dialog box opens to display a list of materials and layers in the current drawing.
The Material Attachment Options dialog box, shown in Figure 17.26, is split into two parts:
By default, the Global material is assigned to each layer.
It should look like Figure 17.27. Notice how the roof is reflected in the living room window.
NOTE During the rendering process, you probably noticed the small, black squares being replaced one at a time by small areas of the rendered drawing. This indicates that AutoCAD is using bucket rendering. Before the rendering process begins, AutoCAD determines the sequence to process the squares, called buckets, in order to maximize the memory usage and thereby increase the efficiency of the rendering.
Image maps are the components of a material that consist of image files, such as a JPEG or TIFF. When a material uses an image map, its purpose can be to change the color of an object (diffuse maps), to give the illusion of texture (bump maps), or to define the transparency of a surface (opacity maps).
The individual properties of all materials are controlled in the Materials Browser palette. Here you'll find the controls for setting the parameters for the size of the map, which map to use, and several other features for the selected material.
The Materials Editor palette opens to display details about the Shakes - Weathered material (see Figure 17.28).
Selecting the image in the Materials Editor palette will open the Texture Editor palette, shown in Figure 17.29.
Note how the dimensions shown in the preview at the top of the Texture Editor palette update to reflect this change.
The Realistic style displays the materials and maps, and the changes that you make to them, all at the expense of system performance (see Figure 17.30). You should use this visual style only when necessary.
The exterior walls of the cabin consist of flat surfaces, and there are no features that would cause shadows to be cast. The Bump Map option adds apparent texture by adding shadows where they would appear if the surfaces had texture. In the Maps rollout, you can see that only the Diffuse Map option is checked, meaning that no map is used to define the opacity and bump features of the material. Opacity maps and bump maps don't use any of the color information from an image map, but this doesn't mean that color maps can't be used—only that the grayscale equivalent of the colors will be interpreted by AutoCAD.
Windows 32-Bit C:Program FilesCommon FilesAutodesk SharedMaterialsTextures3Mats
Windows 64-Bit C:Program Files (x86)Common FilesAutodesk SharedMaterialsTextures3Mats
Navigate to one of these directories if the Image File dialog box does not automatically open there.
The Thermal - Moisture.Shakes.Weathered.jpg image is also included in the Chapter 17 download.
Figure 17.32 shows the cabin rendered with the new material parameters.
There are enough tools and features relating to AutoCAD materials to fill several chapters, and this was just an introduction. Some of the features not covered are copying mapping between objects, applying different maps to different surfaces of the same object, and using opacity maps. I strongly encourage you to investigate the full capabilities of the AutoCAD materials.
By default, the Render feature creates a rendering in the Render dialog box only. The picture is not saved unless you explicitly tell AutoCAD to save it. You can also instruct the program as to the quality level of the rendering and the size, in pixels, of the image created. Follow these steps:
Depending on the file type you choose in the future, an Options dialog box, similar to the one shown in Figure 17.34, will appear.
The next time you render the drawing, the rendering will be saved as an image file on your hard drive, and the filename will appear in the Output File Name column of the Render window, with a folder and check mark next to it (see Figure 17.35). The files with clocks and teapots won't be saved, but you can open them in the Render window by clicking the appropriate filename.
This is the resolution required to print a 10″×8″ image at 200 dots per inch (dpi).
With the higher quality and larger image size, this may take considerably longer to process.
This has been a brief introduction to the world of 3D and rendering in AutoCAD, but you should now be oriented to the general way of doing things and have enough tools to experiment further. For a more in-depth discussion of the process, including rendering, see Mastering AutoCAD 2013 and AutoCAD LT 2013 by George Omura (Wiley, 2012), or visit the companion site for this book at www.sybex.com/go/autocadner2013 and www.thecadgeek.com.
Renderings can be an invaluable way both to explore and validate design alternatives. For more practice working with materials as a way of design validation, you can try the following:
13.58.3.72