1. Trang chủ
  2. » Công Nghệ Thông Tin

AutoCAD Basics 2004 bible phần 8 potx

132 377 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 132
Dung lượng 2,22 MB

Nội dung

882 Part IV ✦ Drawing in Three Dimensions To create a scene, choose Scenes from the Render toolbar to open the Scenes dialog box, shown in Figure 25-16.This dialog box lists your scenes and enables you to create, modify, and delete scenes. Figure 25-16: The Scenes dialog box To create a new scene, follow these steps: 1. Click New to open the New Scene dialog box, shown in Figure 25-17. The New Scene dialog box lists all the saved views and all the lights you have created. 2. Type a name in the Scene Name text box, no more than eight characters long. 3. Choose a view. You can choose only one. 4. Choose the lights you want. Press Ctrl to choose more than one light. Press Shift to choose a range of lights. You can also choose *ALL* to quickly choose all the lights for the scene. 5. Click OK. Figure 25-17: The New Scene dialog box 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 882 883 Chapter 25 ✦ Rendering in 3D Your scene is now listed in the Scenes dialog box. Click OK again to return to your drawing. When you render the drawing, you can choose this scene from the Render dialog box. The drawing used in the following Step-by-Step exercise on creating a scene, ab25-2.dwg, is in the Results folder of the AutoCAD 2004 Bible CD-ROM. Step-by-Step: Creating a Scene 1. If you have ab25-02.dwg open, use it. Otherwise, open it from your AutoCAD Bible folder or the Results folder of the CD-ROM. 2. Save the file as ab25-03.dwg in your AutoCAD Bible folder. If the Render toolbar is not open, right-click any toolbar and choose Render. 3. Choose Scenes from the Render toolbar. Click New in the Scenes dialog box to open the New Scene dialog box. 4. Type morning in the Scene Name text box. 5. Choose RENDER1 from the Views list. 6. Choose D1 and P1 from the Lights list, pressing the Ctrl key while you select the second light. 7. Click OK twice to return to the drawing. 8. Save the drawing. If you are continuing on to the next Step-by-Step exercise, keep it open. Working with Materials Working with materials involves two steps — adding them to the drawing and attaching them to objects. Designing appropriate materials is an important part of the rendering process and greatly affects the results. Materials interact with lights. For example, shiny materials reflect light differently than dull materials because shiny materials create highlights. The object’s color affects how light appears on it as well. Adding materials AutoCAD comes with a large selection of materials. You can modify these to create your own materials. To add materials to the drawing, choose Materials Library from the Render toolbar to open the Materials Library dialog box, shown in Figure 25-18. On the CD-ROM 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 883 884 Part IV ✦ Drawing in Three Dimensions Figure 25-18: The Materials Library dialog box Working with lists of materials Materials are saved in a file with the extension .mli (materials library). The default materials library is render.mli. The left side of the Materials Library dialog box represents materials in the current drawing. The right side of the dialog box repre- sents the entire list of materials provided by AutoCAD. In the Current Drawing section, you can: ✦ Click Save As to save the list of materials in the current drawing in an .mli file. ✦ Click Purge to delete all the materials in the list from the drawing. In the Current Library section, you can: ✦ Click Save to save changes to the entire library list in the MLI file in the current folder. ✦ Click Save As to save the entire current library list in a new MLI file in any location. ✦ Click Open to open a different library list and use its materials. Importing and previewing materials To add existing materials to your drawing, follow these steps: 1. Choose a material from the Current Library list on the right side of the dialog box. 2. Click Import. 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 884 885 Chapter 25 ✦ Rendering in 3D 3. Choose the material from the Current Drawing list. 4. From the Preview drop-down list, choose the preview type of either Cube or Sphere, based on whether the object you want to use the material for is flat or curved. 5. Click Preview to see a sample of the material. 6. Repeat Steps 1 through 5 until you have all the materials you want. 7. Click OK. If you don’t find the exact material you want, import the closest one you can find. You can then create a new material based on that material. The next section explains how to edit existing materials. You can choose a range of materials by holding down Shift and clicking the first and last materials in the range. You can choose any nonconsecutive materials by holding down Ctrl and clicking the materials you want. If you don’t like a material that you have imported, highlight it and click Delete. Use the Export option to save materials you have created in the drawing to the materials library file. When you click OK to close the Materials Library dialog box, AutoCAD asks you if you want to save the changes you have made to the materials library file. Saving the changes updates the file. The drawing used in the following Step-by-Step exercise on importing materials, ab25-3.dwg, is in the Results folder of the AutoCAD 2004 Bible CD-ROM. Step-by-Step: Importing Materials 1. If you have ab25-03.dwg open from the previous exercise, use it. Otherwise, open it from your AutoCAD Bible folder (if you did the exercise) or the Results folder of the CD-ROM. 2. Save the file as ab25-04.dwg in your AutoCAD Bible folder. If the Render toolbar is not open, right-click any toolbar and choose Render. 3. Choose Materials Library from the Render toolbar. Hold down Ctrl, and scroll as necessary to choose Beige Plastic, Green Glass, Light Wood Tile, Pink Marble, Stitched Pattern, White Matte, Wood Med. Ash, Wood White Ash, and Yellow Plastic. Click Import. 4. From the left list, choose Pink Marble. Choose Cube from the Preview drop- down list and click Preview to see the result. Do the same with Stitched Pattern. 5. Preview Green Glass with the Sphere. 6. Click OK. Save your drawing. If you are continuing to the next Step-by-Step exercise, keep the drawing open. On the CD-ROM Tip 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 885 886 Part IV ✦ Drawing in Three Dimensions Creating your own materials After you import materials from the materials library, you can modify them to create your own materials. Choose Materials from the Render toolbar to open the Materials dialog box, shown in Figure 25-19. Notice that you can click Materials Library in this dialog box to open the Materials Library dialog box. You can therefore use the Materials dialog box to manage the entire process of importing, creating, and attaching materials. You can preview imported materials in this dialog box as well. Figure 25-19: The Materials dialog box When you create a new material, you have three choices: ✦ You can modify an existing material. ✦ You can duplicate an existing material and then make modifications to the copy, leaving the original material intact. ✦ You can start from scratch and create an entirely new material. The dialog box that AutoCAD opens when you choose one of the preceding options depends on what you choose from the drop-down list below the New button. You have four choices: standard, marble, granite, and wood. ✦ Standard creates a standard material. ✦ Marble creates a material that mimics marble. In this dialog box you specify turbulence and sharpness of the veins as well as the scale of the veins to the entire object of marble. 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 886 887 Chapter 25 ✦ Rendering in 3D ✦ Granite creates a material that mimics granite. In this dialog box you can spec- ify up to four colors and their sharpness (distinctness) as well as the scale of the texture relative to the entire granite object. ✦ Wood creates a material that mimics wood. In this dialog box you specify the light/dark ratio of the grain, the ring density and width, and the scale of the rings relative to the entire wood object. When you choose a method of creating a new material, whether by modifying, duplicating, or creating from scratch, AutoCAD opens the dialog box appropriate to the material you have chosen. Figure 25-20 shows the New Standard Material dialog box. Figure 25-20: The New Standard Material dialog box Unless you are modifying an existing material, you first give the material a name in the Material Name text box. You use this dialog box by choosing the attributes listed on the left side one by one and then specifying the values for each attribute from the choices on the right. Color/Pattern The color is the basic color of the object. The reflection of light off the object (called diffuse reflection) is determined by this color. You set the color in the Color section of the dialog box, using one of four methods: ✦ Choose By ACI (AutoCAD Color Index). This option enables you to set the color to the color of the object in the drawing. You must uncheck this to choose one of the three other methods. 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 887 888 Part IV ✦ Drawing in Three Dimensions ✦ Choose RGB from the Color System drop-down list to specify the color using the red-green-blue system. These are the three primary light colors. For each color you can type in a value from 0 to 1 or use the slider bars. When all three are set to 1, you get white light. ✦ Choose HLS from the Color System drop-down list to specify the color using the hue, lightness, and saturation system. Hue is the color; lightness — or brightness — is the amount of white the color contains; saturation is the amount of black the color contains. ✦ Click the color swatch to open the Windows Color dialog box, letting you specify a color using either the RGB or the HLS system. In addition to setting the color, you set the value. The value affects the surface finish and interacts with the reflection value. For example, AutoCAD recommends using a color value of 0.7 and a reflection value of 0.3 for a dull finish and reversing the values for a shiny finish. You can type a value or use the slider bar. If you choose a bitmap (raster) file, the color becomes a pattern. See the sidebar on “Mapping” for more information. Ambient The Ambient color and value affect the color reflected by ambient light. Remember that you set the amount of ambient light when you created lights. You can click the Lock check box in the Color section of the dialog box to lock the ambient and reflection colors to the main color. (You cannot use Lock if you checked By ACI as the color.) Reflection The reflection setting affects highlights created by light that shines on the object. To create a shiny object, you can use a reflection value of 0.7 with a color value of 0.3. Shiny objects often create a white highlight— for this effect, set the color to white by setting red, green, and blue to 1. You can also choose a bitmap file to cre- ate a reflection map. See the sidebar on “Mapping” for more information. Roughness Roughness has no color setting — you only set a value. A rough surface produces smaller highlights. Use a lower value to create smaller highlights. If you chose a zero value for reflection, the roughness setting is not used. Transparency The transparency setting enables you to create transparent or translucent materials. You set the value from 0 to 1. Higher values mean greater transparency. Using trans- parency increases rendering time. You can choose a bitmap to create an opacity map. See the sidebar on “Mapping” for more information. 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 888 889 Chapter 25 ✦ Rendering in 3D Mapping AutoCAD lets you project a 2D image onto the surface of a 3D object. This is called map- ping. You must use the Photo Real or Photo Raytrace rendering types to render with map- pings. The 2D images are bitmap (raster) files that can be in several file formats, such as TGA, BMP, TIF, and JPEG. AutoCAD provides a large number of TGA files. To locate them, choose Tools ➪ Options and click the Files tab. Double-click Texture Maps Search Path. (You need to do a full or custom installation of AutoCAD to get all the texture maps.) You can actually place up to four bitmaps onto an object. When you create a material, you can add bitmaps to the Color/Pattern, Reflection, Transparency, and Bump Map characteristics of a material. Four kinds of maps correspond to the four characteristics: ✦ Texture maps place a pattern of colors onto the object. When you include a bitmap in the Color/Pattern definition, you turn a plain color into a pattern. ✦ Reflection maps place a scene on the surface of a reflective object, in the same way that you can see yourself reflected in a pool of water. Add a bitmap to the Reflection definition. ✦ Opacity maps mimic areas of opacity and transparency. Add a bitmap to the Transparency definition. ✦ Bump maps create the effect of varying heights. Choose Bump Maps and choose a bitmap file. AutoCAD comes with a number of materials that include maps. In the Materials Library dia- log box, check out the Bumpywhite stone and Checker textures, for example. As their names make clear, the first material is a bump map and the second a texture map. Import and preview them to see how they look. Using these materials saves you the task of speci- fying a bitmap file. Bitmap Blend determines how much the bitmap is used. The values range from zero (0) to 1. For example, a 1.0 value for a bump map gives you the full value of the bumps. A lower value creates lower bumps. Choose Adjust Bitmap to open the Adjust Material Bitmap Placement dialog box. Here you set the offset of the origin of the bitmap and the scale. The scale is the number of times the bitmap fits onto the object. If you are unfamiliar with the bitmap, you’ll need to experiment. You can try various options and click Preview to see the results. Bitmapping uses U and V axes, which are like X and Y axes but can have any direction and origin. Click Maintain Aspect Ratio to keep the U and V scales equal. By default, bitmaps are tiled, which means that if the scale is less than 1, AutoCAD repeats the pattern to cover the entire object. You can also crop, which creates a decal effect — the pattern is placed just once on the object. 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 889 890 Part IV ✦ Drawing in Three Dimensions Refraction Refraction only applies to Photo Raytrace rendering when you have a transparent (or translucent) material. Refraction is the bending of a light wave when it passes through an object to an object of another density. A higher value increases the refraction. Bump Map Bump maps create the effect of varying heights on the surface of the object — in other words, bumps. You use the bottom part of the dialog box to choose the bump map and for bump map settings. See the sidebar “Mapping” for more information about bump maps. As you complete the dialog box, you can press Preview and see the result as a sphere or cube at any time. When you like the results you see with Preview, click OK. The drawing used in the following Step-by-Step exercise on creating materials, ab25-4.dwg, is in the Results folder of the AutoCAD 2004 Bible CD-ROM. Step-by-Step: Creating Materials 1. If you have ab25-04.dwg open from the previous exercise, use it. Otherwise, open it from your AutoCAD Bible folder (if you did the exercise) or the Results folder of the CD-ROM. 2. Save the file as ab25-05.dwg in your AutoCAD Bible folder. If the Render toolbar is not open, right-click any toolbar and choose Render. 3. Choose Materials from the Render toolbar. The materials that were imported in the previous Step-by-Step exercise are listed on the left. Choose Yellow Plastic and click Duplicate. 4. In the Material Name text box of the New Standard Material dialog box, type Yellow Cheese. 5. With Color/Pattern selected from the Attributes section of the dialog box, click the color swatch to the right of the Color System drop-down list. In the Color dialog box, click the Index Color tab and pick the yellow box. Click OK. 6. Choose Ambient from the Attributes section. Click Lock in the Color section. The color changes to the same yellow as the Color/Pattern swatch. 7. Choose Reflection. Change the value to 0.10 because cheese isn’t very shiny. Click Lock here as well. 8. Choose Roughness. Change the value to 0.75. You can omit transparency because its default value is zero (0). Refraction is irrelevant without a transparency setting. On the CD-ROM 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 890 891 Chapter 25 ✦ Rendering in 3D 9. Omit this step and Step 10 if you don’t have a full installation or a custom installation that includes textures. Preview the yellow cheese on a cube. Choose Bump Map from the Attributes section. Choose Find File at the bottom right of the dialog box. In the Bitmap File dialog box, the Textures folder should be current. (If not, find the Textures folder inside the main AutoCAD folder and double-click.) Change the Files of Type drop-down list to *.tga. Choose bmps.tga and click Open. Change the Bitmap Blend to 30. Click Preview again to see the difference. Note that the bumps are too big. 10. Click Adjust Bitmap. In the Adjust Bitmap Material Placement dialog box, check Maintain Aspect Ratio. Change the scale to 2 and click Preview using the cube. The bumps are smaller now. Click OK three times to return to your drawing. 11. Save your drawing. Attaching materials After you import, create, and modify the materials you need, you can attach them to objects. AutoCAD lets you attach materials by object, layer, or color. To attach any material, follow these steps: 1. Choose Materials from the Render toolbar. 2. Choose the material from the list of materials. 3. Use one of these methods to attach the material: • Click Attach to attach a material by selecting the object or objects. AutoCAD temporarily returns you to your drawing and prompts you to select objects. • Click By ACI (AutoCAD Color Index) to attach a material by its color in the drawing. AutoCAD opens the Attach by AutoCAD Color Index dialog box, which lets you choose a color, or colors, by their numbers. • Click By Layer to attach a material by layer. AutoCAD opens the Attach by Layer dialog box, which lets you choose a layer or layers. Attaching materials by layer can be a very efficient method. It requires some plan- ning in advance. For example, if you have a block that is a chair, and if you create it so that the legs are on one layer and the seat and back are on a second layer, then you can easily attach a wood-like material to the legs and a decorative pat- tern to the seat and back. You can assign a material to an object, to its layer, and to its color, which would mean that the object has three materials. AutoCAD gives priority to direct attach- ments by object, then to attachments by color, and finally to attachments by layer. Tip 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 891 [...]... the Results folder of the AutoCAD 2004 Bible CD-ROM 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 89 7 Chapter 25 ✦ Rendering in 3D Step-by-Step: Creating a Final Rendering 1 If you have ab25-07.dwg open, use it Otherwise, open it from your AutoCAD Bible folder if you did the previous exercise or from the Results folder of the CD-ROM 2 Save the file as ab25- 08. dwg in your AutoCAD Bible folder 3 Choose Lights...30 539922 Ch25.qxd 89 2 5/2/03 9:41 AM Page 89 2 Part IV ✦ Drawing in Three Dimensions On the CD-ROM The drawing used in the following Step-by-Step exercise on attaching materials, ab20-b.dwg, is in the Drawings folder of the AutoCAD 2004 Bible CD-ROM Step-by-Step: Attaching Materials 1 Open ab25-b.dwg from the CD-ROM 2 Save the file as ab25-06.dwg in your AutoCAD Bible folder If the Render toolbar... the AutoCAD 2004 Bible CD-ROM The graphic file, sky.gif, which you may or may not need, is in the Drawings folder of the CD-ROM See the instructions in the exercise Step-by-Step: Adding a Background 1 If you have ab25-06.dwg open, use it Otherwise, open it from your AutoCAD Bible folder if you did the previous exercise or from the Results folder of the CD-ROM 2 Save the file as ab25-07.dwg in your AutoCAD. .. and refraction effects You can use the same types of files for environment as for images AutoCAD maps the image onto a sphere surrounding the scene 89 3 30 539922 Ch25.qxd 89 4 5/2/03 9:41 AM Page 89 4 Part IV ✦ Drawing in Three Dimensions Foggy landscapes The landscape commands enable you to create and edit landscapes AutoCAD comes with a small library of trees, bushes, people, and a DO NOT ENTER road sign... shadows, transparent objects, and a background Thanks to Autodesk for the sky.gif file This material has been reprinted with permission from and under the copyright of Autodesk, Inc 89 7 30 539922 Ch25.qxd 89 8 5/2/03 9:41 AM Page 89 8 Part IV ✦ Drawing in Three Dimensions Remember that rendering is a trial-and-error process Don’t expect to get it right the first time You can probably see several areas for... the following Step-by-Step exercise on using the DesignCenter, ab26-a.dwg and ab26-b.dwg, are in the Drawings folder of the AutoCAD 2004 Bible CD-ROM On the CD-ROM Step-by-Step: Using the DesignCenter 1 Open ab26a-dwg from the CD-ROM 2 Save the file as ab26-01.dwg in your AutoCAD Bible folder This drawing needs an updated set of layers and a title block It is shown in Figure 26-4 3 Choose DesignCenter... Type drop-down list, choose the type of rendering you want ✦ In the Scene to Render box, choose a scene 89 5 30 539922 Ch25.qxd 89 6 5/2/03 9:41 AM Page 89 6 Part IV ✦ Drawing in Three Dimensions ✦ In the Rendering Procedure section, check one of the options if you want Query for Selections means that AutoCAD asks you to select objects Use this to test a rendering on one or more objects Choose Crop Window... Texture Maps Search Path) and choose sky tga (make sure the Files of Type drop-down list box says *.tga) or choose sky.gif from AutoCAD s \Support subfolder Click Open 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 89 5 Chapter 25 ✦ Rendering in 3D 7 Click Preview AutoCAD displays the file 8 Click OK You won’t see the result until you render the drawing 9 Save your drawing If you are continuing to the next Step-by-Step... drawings, blocks or hatches AutoCAD provides three tabs with sample content Each tab is considered a separate tool palette within the Tool Palettes window Figure 26-5 shows the Tool Palettes window that comes with AutoCAD To open the Tool Palette, choose Tool Palettes on the Standard toolbar or press Ctrl+3 New Feature The Tool Palettes window is a new feature in AutoCAD 2004, designed to make inserting... image or you can accept the original size AutoCAD displays the image Do a regen to return to your regular drawing display You can import these saved rendered images back into your drawing Figure 25-25 shows three floating viewports One of the views shows the rendered image CrossReference See Chapter 27 for detailed instructions on importing images In AutoCAD 2004, you can now plot rendered viewports . Library dialog box, shown in Figure 25- 18. On the CD-ROM 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 88 3 88 4 Part IV ✦ Drawing in Three Dimensions Figure 25- 18: The Materials Library dialog box Working. on “Mapping” for more information. 30 539922 Ch25.qxd 5/2/03 9:41 AM Page 88 8 88 9 Chapter 25 ✦ Rendering in 3D Mapping AutoCAD lets you project a 2D image onto the surface of a 3D object. This. folder of the AutoCAD 2004 Bible CD-ROM. Step-by-Step: Importing Materials 1. If you have ab25-03.dwg open from the previous exercise, use it. Otherwise, open it from your AutoCAD Bible folder

Ngày đăng: 14/08/2014, 01:21

TỪ KHÓA LIÊN QUAN