301 69 16MB
English Pages 216 Year 2010
Architectural Rendering with 3ds Max and V-Ray
Architectural Rendering with 3ds Max and V-Ray Photorealistic Visualization Markus Kuhlo Enrico Eggert
AMSTERDAM • BOSTON • HEIDELBERG • LONDON • NEW YORK • OXFORD PARIS • SAN DIEGO • SAN FRANCISCO • SINGAPORE • SYDNEY • TOKYO Focal Press is an imprint of Elsevier
Focal Press is an imprint of Elsevier 30 Corporate Drive, Suite 400, Burlington, MA 01803, USA The Boulevard, Langford Lane, Kidlington, Oxford, OX5 1GB, UK © 2010 ELSEVIER Inc. All rights reserved. © 2009 Pearson Education Deutschland GmbH. All rights reserved. First published in the German language under the title “Architektur-Rendering mit 3ds Max und V-Ray” by Addison-Wesley, an imprint of Pearson Education Deutschland GmbH, München. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or any information storage and retrieval system, without permission in writing from the publisher. Details on how to seek permission, further information about the Publisher’s permissions policies and our arrangements with organizations such as the Copyright Clearance Center and the Copyright Licensing Agency, can be found at our website: www.elsevier.com/permissions. This book and the individual contributions contained in it are protected under copyright by the Publisher (other than as may be noted herein). Notices Knowledge and best practice in this field are constantly changing. As new research and experience broaden our understanding, changes in research methods, professional practices, or medical treatment may become necessary. Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using any information, methods, compounds, or experiments described herein. In using such information or methods they should be mindful of their own safety and the safety of others, including parties for whom they have a professional responsibility. To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability for any injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or from any use or operation of any methods, products, instructions, or ideas contained in the material herein. Library of Congress Cataloging-in-Publication Data Application submitted British Library Cataloguing-in-Publication Data A catalogue record for this book is available from the British Library. ISBN: 978-0-240-81477-3 For information on all Focal Press publications visit our website at www.elsevierdirect.com Typeset by: diacriTech, Chennai, India Printed in the United States of America 10 11 12 13 14 5 4 3 2 1
CHAPTER 1
Introduction and Theory Preface We are glad that you have decided to purchase this book on architectural renderings with 3ds Max and V-Ray. We hope that you will enjoy reading the book and the opportunity to learn new things while working through the lessons. We trust that you will be able to apply this information in your future projects. The book is divided into six chapters. The first chapter focuses on theoretical knowledge. The information provided in this section spans a range, from light in real life via computer graphics to its significance in architecture. We will discuss sources of light specific to V-Ray, as well as materials and cameras. Different render algorithms and their advantages and disadvantages will be introduced. The other five chapters show you how to proceed with 3D Studio Max and V-Ray, workshop-style. Architectural scenes and lighting scenarios are described, from opening the file to the final rendering settings. We decided to use V-Ray as the rendering plug-in, because it is a very fast, high-quality renderer and is available for all commonly used 3D software solutions.
Architectural Rendering with 3ds Max and V-Ray. DOI: 10.1016/B978-0-240-81477-3.00005-3 Copyright © 2010 by Elsevier Inc. All rights reserved.
1
Architectural Rendering with 3ds Max and V-Ray V-Ray is now available for Cinema 4D, SketchUp, Rhinoceros, and 3ds Max, to name a few. There is also a current beta version of V-Ray for Maya. The parameters and theories that the settings are based on are the same in all applications, which makes this book interesting for many users, not just users of 3ds Max. Have fun and enjoy working with V-Ray!
Acknowledgments From Markus I want to thank my family and my wonderful fiancé Rili, who always supported me. I also want to thank the team at ScanlineVFX for allowing me to learn so much and being able to see new tricks there.
From Enrico I am grateful to my family for their moral support. To them and to my closest friends, I owe thanks for being so understanding about how I was able to spend so little time with them. My good friend Anja deserves special mention for her great support in every respect during the last few weeks before completion. I owe special thanks to Dr. Marcus Kalusche of archlab.de, who always supported me and provided valuable advice. Many thanks also to our technical editor Florian Trüstedt. He readily supported us with his technical expertise. We also wish to thank our publishing editor at Pearson, Brigitte Bauer-Schiewek, for assisting us throughout the creation of this book.
Who Is This Book Intended For? The book is mainly intended for computer graphics artists, enthusiastic users, and students of all disciplines who want to present their drafts, products, and ideas in three dimensions. Primarily, it obviously addresses students of architecture and interior design, where ideas are often conveyed through the medium of renderings. Furthermore, this book is meant to offer experienced architects and creative people access to the world of three-dimensional computer graphics. We hope to accomplish this through clear and straightforward presentation of the basics and by offering various problem-solving strategies as well as helpful tips for daily production tasks. You should already have a basic understanding of the user interface and operation of 3ds Max. As we focus primarily on light, materials, and settings for V-Ray rendering, it would be beyond the scope of this book to explain the basic elements of 3ds Max. It would also be helpful if you have previous experience with AutoCAD. Some of the models on which the scenes are based have been constructed in AutoCAD and are linked with 3ds Max. Here, emphasis is placed on using AutoCAD layers.
2
Introduction and Theory Basics of Architectural Visualization The primary purpose of every picture is to impart an idea, concept, or draft. Sketches and templates for image formation are not necessarily required but can be very helpful. In architectural visualizations, photorealistic pictures are not in great demand. Instead, abstracted renderings are sought after in order to elaborate the idea and eliminate unimportant elements. Good communication with your client is therefore very important: you have to be speaking the same language, so to speak. It is also helpful to have a certain amount of background knowledge about your client’s trade. More concrete basics are a three-dimensional, digital model, reference photos of the surroundings, and materials or even mood pictures. You should build a well-structured database of fixtures and fittings, textures, background images, and other accessories. This database will grow rather large over time, so it needs to be properly arranged. We do not want to comment in great detail on technical equipment, as it constantly needs to be updated. We recommend that you have at least two computers. One should be a workstation with an up-to-date, powerful processor; a lot of RAM; a good graphics card; and two monitors. Ideally, one monitor should be at least 24 inches (diagonally) to allow comfortable working. You are going to be working on this computer, while the other one calculates your pictures. The second computer does not require a powerful graphics card or monitors. If possible, you should use processors of the same type. In addition to your knowledge and your equipment, you will need a lot of patience and of course a great deal of inspiration for creative computer work.
Considerations Regarding Light In this section, we are going to approach the topic of light from three angles: its observation in real life, its translation within computer graphics, and its significance in architecture.
Light in the Real World Perception and Mood First, it must be said that the topic of “light” is far too complex for us to sufficiently explore here. We are going to comment on only a few aspects regarding atmosphere and phenomenology. In everyday life, we rarely think about light in the real world, although it is present everywhere. But we are so used to the conditions of reality that we notice immediately if something is not real. Consequently, we would
3
Architectural Rendering with 3ds Max and V-Ray almost always notice a difference between a computer-generated picture and a photograph. This is mainly due to differences or errors in computer-generated presentations of light. Almost anyone can notice that these diverge from reality, but only a trained eye can actually specify the differences. Light has a subconscious influence on our feelings; it can stimulate emotions and create atmosphere. For example, when we are watching a sunset, we might feel romantic. Depending on its color, light can have a calming effect or make us feel uncomfortable. Think of the difference between warm candlelight and a corridor with the cold light from fluorescent tubes. Creating moods therefore requires conscious and deliberate observation of our surroundings. In the real world, there are three lighting scenarios. The first one is natural light, which means sunlight shining directly or indirectly onto Earth, such as moonlight or through a layer of clouds. Natural and weather phenomena provide an exception—for example, lightning and fire. The second scenario is artificial light: any light that is not of natural origin, but manmade. This includes electric light, but also candlelight. The third and most common scenario is a simultaneous occurrence of both natural and artificial light. One of the first discussions you should therefore have with your client is determining which of these scenarios is present in the picture you are going to create. Some units of measurement in dealing with light: • • • •
Luminous flux (lumen): Describes the radiated output of a light source per second Luminous intensity (candela): Describes the luminous flux which is emitted in a certain direction Illuminance (lux): Describes the luminous flux which arrives at a certain surface Luminance (candelas per square meter): Describes the luminous flux which is emitted from a certain surface
Illuminance Light is subject to a series of rules. Three of these are of great importance in computer graphics. The first rule is that the illuminance decreases with the square of the distance from the light source. This means that a surface of one meter square that is one meter away from the light source is illuminated with the full assumed luminous intensity of the light source. If you increase the distance by another meter so that it is now two meters, the illuminance is only a quarter of the luminous intensity. At a distance of three meters, the illuminance is only a ninth of the luminous intensity. The luminous intensity always remains constant. The two other important qualities are the reflection and refraction of light. If light hits a surface, a certain amount of it is absorbed and the 4
Introduction and Theory
FIG 1.1 Light Source without Decrease in Illuminance.
FIG 1.2 Light Source with Natural Decrease in Illuminance.
FIG 1.3 The Blue Floor Makes the Entire Scene Look Blue.
FIG 1.4 The Multicolored Floor Affects the Coloration of the Surrounding Objects, Depending on its Surface Color.
rest reflected. The reflected part is the determining factor that enables us to perceive objects. An object that absorbs 100 percent of light appears completely black to us. White surfaces reflect most of the light. The darker and rougher the surface, the less light it will reflect and the more it will absorb. An object always reflects light in its object color, which can lead to what is called color bleeding, or the bleeding or overlapping of colors onto other objects. 5
Architectural Rendering with 3ds Max and V-Ray The refraction of light occurs if light travels through a translucent medium with a different density than that of the medium in which the light was before. Again, the light will take on the color of the material. Light travels at the speed of light, which is measured inside a vacuum. If the light’s speed is decelerated by a change in density, there will be refraction. The refractive index or index of refraction (IOR) can be determined for each material. It measures how much the speed of light is reduced when passing from air into the medium.
FIG 1.5 Refraction; Glass Cuboids with Varying IOR.
The following table contains some examples.
TABLE 1.1 Overview of Refractive Indices
Medium
IOR
Medium
IOR
Medium
IOR
vacuum
1
quartz
1.46
flint glass
1.56–1.93
air (near the ground)
1
Plexiglas®
1.49
glass
1.45–2.14
plasma
0–1
crown glass
1.46–1.65
lead crystal
Up to 1.93
ice
1.31
polycarbonate
1.59
zircon
1.92
water
1.33
epoxy
1.55–1.63
diamond
2.42
The Color Temperature of Light The color temperature of light has been measured in Kelvins since William Thompson Kelvin realized that carbon emits different colors depending on its temperature. In blue light, the red and green components of the light source are lower or nonexistent. Under these circumstances, all red and green objects would appear black. When using colored light sources, you therefore need to make sure to always mix a certain proportion of all colors to avoid black objects. 6
Introduction and Theory
FIG 1.6 Cuboids with the Three Primary Colors and their Combinations, White Light.
FIG 1.7 The Same Cuboids, Red Light (R:255; G:0; B:0).
FIG 1.8 Cuboids, Green Light (R:0; G:255; B:0); Here You Can See Clearly that the Green Portion is the Largest in Our Color Spectrum.
7
Architectural Rendering with 3ds Max and V-Ray
FIG 1.9 The Same Scene, Blue Light (R:0; G:0; G:255).
The following table contains an overview of several color temperatures.
TABLE 1.2 Overview of Color Temperatures
Type of light
Kelvin
Type of light
Kelvin
Type of light
Kelvin
Candle light
up to 1900
Neutral white
5000
Cloudy north sky
6500
Warm white
Up to 3300
Sun at noon (summer)
5100–5400
Daylight white
5000–6800
Light bulbs
2200–3400
Cloudy sky (January)
5900–6400
Blue sky at noon (December)
9900–11500
Fluorescent tubes
Over 3900
Xenon lamp
6500
Color Temperature and Its Effect Colored light is very important, for example, to express the time of day. The color of the light in the morning has a different proportion of red than the light of the setting sun. The color of daylight also depends on the place, the time of year, and the weather conditions while you observe it.
Shadow The shadow being cast is not really a property of the light, but rather a property of illuminated objects. A shadow in itself is the absence of direct light and mostly refers to a diffusely illuminated area. Shadows always appear behind objects that are positioned in front of a light source. The shadow area does not necessarily have to be darker than the directly illuminated area. Transparent objects, for example, also cast a shadow and can even produce lighter shadows, due to a concentration of rays of light or caustics. Shadows play a very important role: they indicate the position and type of the light source. Without shadow, a picture cannot have any spatial depth. 8
Introduction and Theory An object that does not cast a shadow appears unrealistic, as if it were always floating. Parallel shadows do not occur in nature; they can be created only by artificial light.
Light in Computer Graphics Unlike in the real world, the light in computer graphics is not subject to any restrictions. You therefore have many options and great freedom, but it becomes more difficult to produce realistic illuminated scenes. A watchful eye is required to achieve a rendering that appears realistic. Sometimes one light source is not enough and you have to resort to tricks in order to achieve a result that appears realistic or expresses the desired idea. Consider possible scenarios of illumination: • • • • •
Location of scene, time of year, and time of day Indoors, artificial light, sunshine with clear sky Indoors, artificial light, cloudy sky Indoors, only artificial light Exterior view of a building, sunset, artificial light inside
Ask yourself which atmosphere you want to convey: • • •
Do I want to create a calm atmosphere or a romantic one? Do I want to draw to attention to something in particular? Is there a reference that I need to integrate my rendering into?
Get an overview of the light sources and their qualities: • • • • • • • • • • • • • • •
Standard light sources Point light, spot light, parallel light Create even illumination Are not subject to physical laws Photometrical light sources Point light, plane light Are essential for physically correct illumination Can be expanded with IES profiles Are based on physical units Daylight systems Even, diffuse lighting (sky) and direct illumination (sun) Light-emitting materials For representing luminescent, such as neon tubes or monitors Render-engine-specific light sources Dependent on the render engine used (V-Ray, Mental Ray, Maxwell, Brazil)
These are some tips when working with light: • •
Try to work with surrounding light that corresponds to natural light from the sky to light the scene diffusely. The main light should always be clearly noticeable. 9
Architectural Rendering with 3ds Max and V-Ray
• • • • • •
Pay more attention to convincing light setup than physical correctness. The shadows are as important as the light. Become familiar with materials in reality and their physical properties. Hardly any material has a completely smooth surface; the irregularities affect the light distribution on the surface. Highlights help the viewer to determine the quality and nature of a material, but not all materials have hard highlights. No two materials are the same; the differences in surface appearance create a more realistic effect.
Light in Architecture Light has always played a decisive role in architecture. Light creates atmosphere, can make rooms appear bigger or smaller, and can emphasize details or hide them. The first great buildings that specifically employed light were religious buildings. Initially, they did not let much natural light in, in order to emphasize the few existing windows. The windows seemed to shine, creating a mystical effect. Light and architecture are closely linked; light presents good architecture favorably, but can also show mistakes. During the day, the light wanders across the façade, constantly giving it a different appearance. Architects have always used this medium, from the old master builders of temples and churches to famous architects of today, such as Tadao Ando, Jean Nouvell, or Louis I. Kahn. Light can also be used as an effect in architecture, such as the Empire State Building, with its varying illumination for different occasions. The use of artificial light is of particular importance in exhibition architecture, whereas daylight plays an important role when constructing domestic buildings.
V-Ray Let’s now turn our attention to the render engine V-Ray. We will begin with some product specifications that convinced us to work with this product; then we will comment on the methods for light calculation and introduce some features specific to V-Ray. Last, we will discuss linear workflow.
Why V-Ray? Here is a list of the product features that we particularly appreciate during our daily production tasks: • • • 10
V-Ray is platform-independent and available for many 3D programs. The parameters are the same for the different applications. The product is relatively cheap.
Introduction and Theory
• • • • • • • •
The quality of the pictures is in good proportion to the render time. V-Ray is constantly being updated. There is a large worldwide community. V-Ray is used widely, also in the film and advertising industry. It has excellent displacement. It supports IES data, an important factor for architectural visualizations. Version 3 and later also support Mental Ray materials. V-Ray is very well integrated into the 3D programs.
Indirect Illumination The calculation of indirect illumination in V-Ray is divided into two processes, which can be combined in different ways: •
Primary bounces—The light is emitted from the light source onto the scene until it hits an object. The first complex calculation takes place here, and the light is scattered, absorbed, refracted and reflected. FIG 1.10 Rendering without Global
Illumination.
FIG 1.11 Rendering with Global
Illumination.
11
Architectural Rendering with 3ds Max and V-Ray
•
Secondary bounces—Starting from the point where the primary bounce hits the geometry, the light is spread around the scene once more in this calculation process, achieving diffuse illumination of the scene.
If you did not activate the calculation of global illumination, only the process of primary bounces is applied automatically. In the following section, we will introduce the various render algorithms with their advantages and disadvantages.
Brute Force The BRUTE FORCE algorithm calculates the GI (global illumination) for each pixel in the picture. Advantages: • • • •
Few setting options Very consistent results Reveals even small details Only little flickering in animations
Disadvantages: •
Very high render times, especially in complex scenes
Renderings are partly affected by severe noise, especially in darker image areas, which can be remedied only by higher render settings and therefore very long render times.
Irradiance Map The IRRADIANCE MAP algorithm calculates the GI depending on the complexity of the scene with different accuracy. Interpolation takes place between the calculated areas. A multitude of setting options is available and can be managed well with a selection of presets. Advantages: • • •
In comparison with the brute force algorithm, this produces shorter rendering times for the same complexity of scene. No noise in darker image areas. The irradiance map—the result of the calculation—can be saved and reused, which can drastically reduce the render time for animations.
Disadvantages: • •
• 12
Due to interpolation, fine shadows can be lost in detailed areas. Animations can be affected by flickering, which can be remedied by saving the irradiance map as a multiframe incremental map (i.e., provided that the output frame sizes are equal). Requires a lot of RAM.
Introduction and Theory
• •
Very complex setting options. The light solution is dependent on the location—only the visible portion of the scene is calculated.
Photon Map For the PHOTON MAP algorithm, photons are emitted from all light sources in the scene and then bounced around between objects until their energy is used up. Only true light sources are taken into consideration, not surrounding illumination or luminous materials. The algorithm is useful for interior scenes with many light sources and achieves good results with short rendering times when used in combination with irradiance map. Advantages: • • •
Very fast algorithm. Location-independent. The photon map can be saved, but changes in material, light, and position of objects are not possible.
Disadvantages: • • •
Very imprecise calculation; usage under primary bounces is not recommended. High memory requirements. Restrictions in selecting light sources.
Light Cache This algorithm functions in a similar way to the photon map, but the photons are emitted into the scene from the camera and the algorithm can be used for any kind of scene. Advantages: • • • • •
Simple setup. Very quick calculation. Very fast, good results in combination with the irradiance map. Very precise calculation of contact shadow and shadows in corners. Preview during calculation process; therefore, serious mistakes can be spotted quickly.
Disadvantages: • •
Location-dependent; has to be recalculated every time. Problems in calculating bump maps, but this has no effects when used for secondary bounces.
Finally, we would like to offer you some guidance by comparing the most sensible combinations for an interior scene and an outdoor scene. For the first comparison, we refer only to the quality of the result; for the second 13
Architectural Rendering with 3ds Max and V-Ray comparison, we relate the quality to the rendering time. We are analyzing only stationary images—these comparisons are not necessarily applicable to animations.
Interior Scene Criteria: Quality The best quality is produced by a combination of the algorithms BRUTE FORCE (primary bounces) and LIGHT CACHE (secondary bounces). Hardly any artifacts occur, and even in detailed image areas, the accuracy remains high. A clear disadvantage, however, is the long rendering time. Criteria: Time invested in relation to quality In this case, we recommend a combination of IRRADIANCE MAP (PRIMARY BOUNCES) and LIGHT CACHE (SECONDARY BOUNCES). The calculation is very quick and exact, even in detailed image areas. Possible errors can usually be fixed by selecting a better preset. This combination is the better choice for everyday work.
Exterior Scene For the exterior scene, the same applies as for the interior scene. The calculation can potentially take even longer in this case, as the scene has a higher number of polygons due to trees, bushes, and lawn, and therefore more detailed areas. We can therefore conclude that the combination of IRRADIANCE MAP and LIGHT CACHE is the most appropriate. As there is an exception to every rule and sometimes the rendering time is irrelevant, you should not completely disregard the other algorithms.
Ambient Occlusion In areas where two or more objects are touching, there is insufficient light, and these areas appear darker in comparison to the surroundings. These darker areas are called contact shadows (ambient occlusion or AO). Ambient occlusion is always calculated without direct light, and with only a diffuse surrounding light. In V-Ray, there are several options for calculating the ambient occlusion. For example, you can output it as a separate rendering channel, resulting in a grayscale image. In an image editing program, you can multiply this image with the actual rendering. Only certain image areas are darkened, as the image consists of color values between one and zero. In this book, we use a VRAYDIRT material for objects that are to have a contact shadow. In this case, the ambient occlusion is already saved in the output image. As you can adapt the parameters for each material, you have good control over the contact shadow. 14
Introduction and Theory
FIG 1.12 Ambient Occlusion
Channel.
FIG 1.13 Diffuse Channel, Rendered
without a Light Source.
FIG 1.14 Result of Overlaying Both
Channels.
15
Architectural Rendering with 3ds Max and V-Ray VRayLight Using V-Ray light sources (VRAYLIGHTS) is the best choice when working with V-Ray. These light sources behave with physical correctness. Unlike standard light sources, the light is emitted by a three-dimensional source, not by one point. VRayLights require shorter rendering times, have integrated falloff as the standard, and always produce a realistic-looking area shadow. There is a choice of four light sources: 1. Plane • The light is emitted by an area (i.e., from the light flux direction of the plane object only). • The bigger the light source, the more light is emitted and the softer the shadows it produces. FIG 1.15 VRayLight, Type Plane.
2. Sphere • The light is emitted by a three-dimensional sphere. • The bigger the light source, the more light is emitted and the softer the shadows it produces. FIG 1.16 VRayLight, Type Sphere.
16
Introduction and Theory 3. Mesh • The light source can be linked to a three-dimensional object and emits light from its geometry. • The bigger the light source (the object), the more light is emitted and the softer the shadows it produces.
FIG 1.17 VRayLight, Type Mesh.
4. Dome • The light is emitted evenly into the scene in order to achieve diffuse illumination without applying GI, especially for exterior visualizations. • The position and size of the light source have no effect; it should not be rotated in direction x or y.
FIG 1.18 VRayLight, Type Dome.
17
Architectural Rendering with 3ds Max and V-Ray
FIG 1.19 VRayLight, Dome with
90 Degree Rotation.
The V-Ray light sources have almost the same parameters as standard light sources. A big difference is the option to be able to work with different units of light intensity. Here is an overview of these units: •
•
•
•
•
Default (image) • No relation to physical values; this is based on the multiplication system internal to 3ds Max. • Light intensity and shadows depend on size of light source. Luminous power (lm) • Is measured in lumen (luminous flux). • Physically correct unit, size of light source has no impact. Luminance (lm/m2) • Physically correct values for light intensity can be looked up in catalogs provided by lighting manufacturers. • The size of the light source has decisive impact. Radiant power (W) • Measured in watts, describes the total energy that is emitted from a light source. • During application, it is important to remember that a light-bulb, for example, transforms most of its energy into heat, which means the value of 100 watts for a lightbulb cannot be directly transferred. • The size of the light source has no impact. Radiance (W/sr/m2) • Indicates the total energy of a light source per solid angle per square meter. • The size of the light source influences the total energy emitted by the light source.
VRayIES Companies that produce luminaires and lamps can provide so-called IES files. These enable you to simulate real luminaires with physical correctness. Their behavior corresponds to a three-dimensional object that emits light, 18
Introduction and Theory just as in reality. The emission properties of the lamps and the effects of built-in reflectors are taken into account. The light distribution within the room and on the walls appears more realistic than using standard light sources. It is important to activate the option USE LIGHT SHAPE in order to calculate soft shadows as they appear when using a three-dimensional light source in reality. The rendering time is longer, but this is compensated for by increased realism.
FIG 1.20 VRayIES, IES File by
Company Erco.
VRaySun The VRAYSUN is a V-Ray-specific light source, and its way of functioning differs from that of other light sources. It simulates a daylight system, composed of sun (direct light) and sky (diffuse light). When creating a VRAYSUN, a VRAYSKY shader is automatically placed into the channel of the environment map. The VRAYSUN has the same intensity as the real sun. The color and the light intensity of the VRAYSUN are determined by its position, just as with the real sun.
FIG 1.21 VRaySun, Time 06:00.
19
Architectural Rendering with 3ds Max and V-Ray
FIG 1.22 VRaySun, Time 08:00.
FIG 1.23 VRaySun, Time 10:00.
FIG 1.24 VRaySun, Time 12:00.
20
Introduction and Theory
FIG 1.25 VRaySun, Time 14:00.
FIG 1.26 VRaySun, Time 16:00.
FIG 1.27 VRaySun, Time 18:00.
21
Architectural Rendering with 3ds Max and V-Ray
FIG 1.28 VRaySun, Time 20:00.
For example, the lower the sun, the softer the shadows. In this respect, the value INTENSITY MULTIPLIER —which sets the intensity—cannot be compared to other light sources. There are two possibilities of working with the sun system. For one, you can set the intensity in the multiplier to 0.001 in order to be able to use it with other light sources without exposure compensation. This is not recommended, however, as the result is not physically correct. The better method is using the physical camera, VRAYPHYSICALCAM.
FIG 1.29 VRaySun, without
VRayPhysicalCam.
Here is a brief introduction to the main parameters of VRAYSUN: •
22
Turbidity • Haziness, degree of air pollution • The higher the value, the lower the amount of sun that gets through, the softer the shadows become, and the redder the picture is tinged.
Introduction and Theory
FIG 1.30 VRaySun, with
VRayPhysicalCam.
FIG 1.31 Turbidity 3.
FIG 1.32 Turbidity 10.
23
Architectural Rendering with 3ds Max and V-Ray
•
Ozone • Affects the color of the light, yellow for a value around 0, blue for a value near 1
•
Intensity multiplier • Light intensity of the sun, the value 1.0 is physically correct, but only to be used in combination with the VRAYPHYSICALCAM. Size multiplier • Affects the size of the sun. • The larger the sun, the softer the resulting shadows. • We recommend values between 0.5 and 5. Shadow subdivs • The higher the value, the better the resolution of the shadows and the quality, but the rendering time will also be longer. • We recommend values between 8 and 64, depending on distance between observer and shadow.
FIG 1.33 Ozone 0.35.
FIG 1.34 Ozone 1.
•
•
24
Introduction and Theory
FIG 1.35 Size Multiplier 1.
FIG 1.36 Size Multiplier 10.
•
•
Shadow bias • Moving an object’s shadow away from the object. • Values below 0 move the shadow away from the object; values above 0 pull the shadow closer to the object. • Choose values slightly above 0 in order to obtain realistic results and avoid errors in calculation. Photon emit radius • Within this radius, photons are emitted that can be used for calculating caustics.
VRaySky VRAYSKY offers the same setting options as the sun and is by default linked to the sun. It influences the diffuse light incidence within the scene. The shader with which the parameters can be set is located in the ENVIRONMENT MAP channel in the ENVIRONMENT AND EFFECTS dialog box. The sky can therefore be accessed independently from the sun’s position, and each can be adjusted on its own by enabling the manual sun node function. 25
Architectural Rendering with 3ds Max and V-Ray
FIG 1.37 Rendering with Sky and
Sun Linked.
FIG 1.38 Rendering with Separate
Sky; the Shadows Remain the Same, but the Sky’s Ambient Light Changes.
Here we offer a brief overview of the advantages and disadvantages of VRAYSUN and VRAYSKY (the daylight system). Advantages: • • • •
Easy to set up and modify. Good results with little effort. Physically correct. Well suited for daylight situations.
Disadvantages: • • • •
26
Longer rendering times in comparison with standard light sources. Limited adjustment options. Additional light sources in the scene have to work with photometrical data. Working with VRAYPHYSICALCAM requires knowledge of photography.
Introduction and Theory VRayPhysicalCam The application of the VRAYPHYSICALCAM enables working in V-Ray with physically correct values. In combination with VRAYSUN and VRAYSKY, it can be used to perfection. Using physically correct light sources is a requirement. The advantages in comparison to the standard camera are physically correct calculation of depth of field blur, motion blur, and bokeh effect (explained later in this section). The parameters, such as the exposure time, are equivalent to those of a real camera. The disadvantage is a comparatively long rendering time. Here once again an overview of the most important parameters.
Basic Parameters •
•
•
• • •
•
•
•
•
Type • Selection of different camera types, camera (STILL CAM), film camera (MOVIE CAM), digital video camera (VIDEO CAM). • Affects aperture and therefore appearance of blur. Targeted • If activated, the camera has a target point. • Very helpful for working with depth of field blur. Filmgate (mm) • The camera’s sensor size. • Important for matching the camera to the photograph (camera match). Focal length (mm) • The camera’s focal length. Zoom factor • The camera’s zoom factor. F-number • Relative aperture of the camera, analog to photography. • Affects brightness if the EXPOSURE option is activated. • Affects depth of field blur. Guess vert./Guess horiz. shift • Camera correction, removes perspective distortion; at times you may have to tweak its parameters. Exposure • If activated, parameters such as F-NUMBER, FILM SPEED (ISO) affect the image brightness. • If deactivated, the camera behaves like a standard camera except for DISTORTION, MOTION BLUR, and DEPTH-OF-FIELD. Vignetting • Simulation of the reduction of the image brightness in the periphery when using a real lens. White balance • Regulates the white balance.
27
Architectural Rendering with 3ds Max and V-Ray
FIG 1.39 Rendering, without
Vignetting.
FIG 1.40 Rendering, with
Vignetting.
FIG 1.41 Neutral White Balance.
28
Introduction and Theory
FIG 1.42 Daylight, Optimized White
Balance.
FIG 1.43 User Defined White
Balance.
•
• • •
Shutter speed • Exposure time or shutter speed, analog to photography. • Values are given in s−1: the higher the value, the shorter the exposure time and the darker the picture. Shutter offset • Direction of the motion blur when using a MOVIE CAM. Latency • Latency, influences motion blur when using the VIDEO CAM. Film speed (ISO) • Simulates the light sensitivity of an analog film. • The higher the value, the more light-sensitive the film and the lighter the image.
Bokeh Effects The term bokeh describes the appearance or quality of blurred areas in a photo. It depends on the lens used; for example, blurred image areas appear softer if the aperture has many sides. The effect only applies if DEPTH OF FIELD is activated, and it is very calculation intensive. 29
Architectural Rendering with 3ds Max and V-Ray
•
• •
•
Blades • Number of blades of the aperture. If the option is deactivated, a circular blur is calculated; if activated, the blur appears polygonal, depending on the number of blades. Rotation (deg) • Alignment of blades. Center bias • Determines which areas of the blur appear lighter. Values above 0 make the outside appear brighter. Anisotropy • Simulation of amorphous lenses, the bokeh is stretched horizontally or vertically.
Sampling •
FIG 1.44 Depth of Field Blur with
Near Focus.
FIG 1.45 Depth of Field Blur with
Focus Far Away.
30
Depth of field • Activates the depth of field blur.
Introduction and Theory
• •
Motion blur • Activates the depth of field blur. Subdivs • Determines the amount of subdivision during calculation, also referred to as resolution. • The higher the value, the higher the quality of the effects and the bigger the expenditure of time required for the calculation.
V-Ray Materials In this section, we discuss the V-Ray materials. These are installed together with the plug-ins and are naturally optimized for V-Ray.
VRayMtl The advantage of this material is that it has been optimized for the renderer and therefore enables it to calculate a physically correct result. It behaves physically correct with regard to absorption, reflection, and refraction of light. The material is based closely on the standard material and has similar parameters. For example, within the material you can set and change the diffuse color channel, the reflection, refraction, bump mapping, displacement mapping, and other qualities of the desired material. If possible, you should work with this material, as it has been optimized for V-Ray, and—if used in combination with V-Ray—it requires less time for rendering than other materials.
VRay2SidedMtl The VRRAY2SIDEDMTL enables creating translucent materials. Amongst other things, it is suited very well for the representation of leaves, curtains, and paper screens.
VRayOverrideMtl The VRAYOVERRIDEMTL enables you to override certain behaviors such as global illumination (GI), reflection, refraction, and shadow of a material independently from one another.
VRayLightMtl With the VRAYLIGHTMTL, you can create self-luminous objects. Unlike a light source, the material does not emit photons and does not create caustics. The rendering time is shorter than if using a standard material with self-illumination, and it can be used to illuminate a scene. In combination with a VRAYDIRT map, you can create an ambient occlusion channel very easily. The material cannot be used if you are working with motion blur.
31
Architectural Rendering with 3ds Max and V-Ray VRayMtlWrapper This material applies the V-RAY OBJECT PROPERTIES to a material. You can create matte objects via materials already present in the scene.
VRayFastSSS With this material, you can simulate the so-called subsurface scattering surface effect. The light within an object is transported on to the object. Materials such as wax or skin have this property. The VRAYFASTSSS material has a shorter rendering time and can be controlled easily.
VRayFastSSS2 This material is also used primarily for the simulation of skin, marble, and wax-like structures. It has more parameters than the VRAYFASTSSS material. You can use it for example to influence reflection and shine.
VRayBlendMtl This material offers the option of placing several materials on top of one another, to blend them. In each case, you can choose another material for masking. The rendering time is shorter than with 3ds Max standard materials such as SHELLAC, BLEND, or COMPOSITE. This material is used for creating complex surfaces, such as car paint.
VRaySimbiontMtl This is a special material that you can use with procedural shaders by the company Darkling Simulations. It enables you to create very complex shaders that are built completely procedurally and represented in full quality, independently from the representation distance.
V-Ray Image Sampler (Antialiasing) “Sampling” here refers to the sampling or resolution of an image. It influences the relation between sharpness of edges and avoiding aliasing (jaggies, or stair-like lines instead of smooth lines).
Antialiasing Antialiasing is used to reduce aliasing when converting a vector graphic into a raster picture. This method is usually achieved with smoothing of edges and occurs mostly with angled lines. In V-Ray there are two methods of antialiasing. We are going to give you a brief introduction to both.
Oversampling (Supersampling) A rendering consists of several pixels created when converting the vector-based graphic to a raster image. The number of pixels determines 32
Introduction and Theory the resolution of an image and therefore its quality. Each pixel can again be subdivided into subpixels. The number of subpixels is the square of the number of subdivisions. For example, with a subdivision of 1, the pixel is divided once. There is only one subpixel. With a subdivision of 2, the pixel is divided into 4 subpixels. The finer the subdivision into several subpixels, the higher the resolution and therefore the quality of antialiasing. However, the required rendering time also increases sharply.
Undersampling In undersampling, the opposite occurs. Pixels are not subdivided, but combined. Again, the relation is square. To keep the required rendering time low, this method is suitable for preview renderings. V-Ray offers three antialias algorithms. Oversampling and undersampling are used differently in each. Again, we will give you a brief introduction. Choose the algorithm in the RENDER SETUP dialog box, the V-RAY tab in the V-RAY: IMAGE SAMPLER (ANTIALIASING) rollout: •
•
•
Fixed image sampler • Simplest antialiasing algorithm. • Each pixel is divided into an equal amount of subpixels. • The number of subpixels is always the square of the SUBDIVS value. • The higher the value, the better the quality. • The required rendering time increases rapidly with higher values. • Used for highly detailed scenes, high amount of motion blur, blurred reflections, detailed textures. Adaptive DMC • Number of subdivisions calculated for each individual pixel. • Subdivisions depend on the difference between a pixel and neighboring pixels. • Undersampling not possible. • MIN SUBDIVS: number of minimum subdivisions per pixel. • MAX SUBDIVS: number of maximum subdivisions per pixel. • CLR TRESH: influences the decision about which pixels are divided into how many subpixels; the smaller the value, the higher the quality and the required rendering time. • USE DMC SAMPLER TRESH: also influences the subdivision, different method. Adaptive subdivision • Complex image sampler, can also do undersampling. • CLR TRESH: influences the subdivision, smaller values produce a better result with longer rendering time. • RANDOMIZE SAMPLES: better antialiasing for approximately horizontal or vertical lines. • OBJECT OUTLINE: undersampling of edges for all objects. • NORMAL TRESH: objects in which the normals differ greatly are always subdivided more. 33
Architectural Rendering with 3ds Max and V-Ray
Summary For scenes with sharp reflections and soft, blurry textures, always use the ADAPTIVE IMAGE SAMPLER. Scenes with highly detailed textures and lots of geometry or blurry reflections should be rendered with the ADAPTIVE DMC SAMPLER. It gives the best result with relatively short rendering times. Depending on the circumstances, the ADAPTIVE SUBDIVISION IMAGE SAMPLER may yield a lower quality, despite longer rendering times. For highly complex scenes with a great number of details and effects, apply the FIXED IMAGE SAMPLER. The required rendering time may be very long, however.
Linear Workflow (LWF) Put simply, the linear workflow describes a method of governing the input, processing, and output of image material in 3ds Max. The monitor is not able to display an image in the same brightness as we see it in reality. Each image has a gamma correction curve in order to be displayed on the monitor in such a way that our eyes see it correctly. This is usually a gamma correction value of 2.2. Because 3ds Max works internally in a linear way—that is, with a gamma of 1.0—this correction has to be reversed. To do this, choose the following settings in 3ds Max and V-Ray.
3ds Max Open the PREFERENCE SETTINGS dialog box (CUSTOMIZE/PREFERENCES…). Switch to the tab GAMMA AND LUT. Activate the checkbox ENABLE GAMMA/LUT CORRECTION and set GAMMA to a value of 2.2. This setting defines the monitor’s gamma correction. In the BITMAP FILES group, set the INPUT GAMMA and OUTPUT GAMMA also to 2.2. This tells 3ds Max that all image data has a correction and it can reverse this. The output images (renderings) are saved once more with the gamma correction to ensure that they are displayed correctly. Also activate the two checkboxes in the group MATERIALS AND COLORS. This ensures colors and images display correctly in the material editor.
V-Ray Open the RENDER SETUP dialog box and switch to the V-RAY tab. In the V-RAY:: COLOR MAPPING rollout, set GAMMA to 1.0. Here, no correction is applied. In the latest V-Ray version, 1.50 SP3, you have the option to use the value 2.2 in combination with the option DON’T AFFECT COLORS (ADAPTATION ONLY). V-Ray is already working with the corrected brightness internally. The correction is not yet saved into the picture, however, but used only for calculating the sampling. This produces a better quality, as image areas that are too dark are lightened by gamma correction. In order to have the V-Ray frame buffer display the correct brightness, you must activate the option DISPLAY COLORS IN SRGB SPACE. 34
Introduction and Theory
FIG 1.46 Render Setup Dialog Box,
Gamma, and LUT.
FIG 1.47 Render Setup, VRay:: Color
Mapping, Gamma 1.0.
35
Architectural Rendering with 3ds Max and V-Ray
FIG 1.48 Render Setup, V Ray: Color
Mapping, Gamma 2.2, Don’t Affect Colors (Adaptation Only).
FIG 1.49 V Ray Frame Buffer,
without Gamma Correction.
36
Introduction and Theory
FIG 1.50 V Ray Frame Buffer, with
Gamma Correction.
FIG 1.51 Opening the Default
Settings of 3D Studio Max.
37
Architectural Rendering with 3ds Max and V-Ray
FIG 1.52 Activating and Setting the
Correct Gamma Value.
FIG 1.53 Setting the Right Gamma
Values for Input and Output of Image Files In 3D Studio Max and the Color Corrections for the Material Editor.
38
Introduction and Theory
FIG 1.54 Material Editor before Gamma Correction.
FIG 1.55 Material Editor after Gamma Correction.
About the CD Included with This Book Directory Structure Before you start reading the next chapter, please take the time to read the following comments. All files in the following chapters can be found in the corresponding subdirectory to that chapter—for example, chapters/ch 02 for Chapter 2. This directory contains the 3ds Max files. The first file (ch 02 01.max) is the introduction to the chapter, and the second file (ch 02 02.max) shows the image at the end of the chapter, after applying the changes discussed in the chapter. You can use this file to quickly refer to a material, for example, or if you want to try something without having to work your way through the entire chapter first. Each chapter directory contains subdirectories for textures, AutoCAD files (dwg), and so on. Figure 1.56 shows the directory structure of Chapter 2. FIG 1.56 Directory Structure of
Chapter 2.
39
Architectural Rendering with 3ds Max and V-Ray Units Our AutoCAD and 3ds Max files are all measured in centimeters (cm). This scale lends itself for architectural visualization. All objects or light sources are covered well without an excessive amount of zeros before or after the decimal point. The 3ds Max system unit is set to centimeters as well. If you are using other units, 3ds Max will ask you when opening our files if you want to keep the units or convert to your settings. Please make sure that you adopt the units of measurement from our file to avoid conversion errors. In the FILE LOAD: UNITS MISMATCH dialog box, choose the option ADOPT THE FILE UNIT’S SCALE. Otherwise, you can end up with wrong values, such as for the intensity of light sources. FIG 1.57 Open File, Adopt File’s Unit Scale.
You can view and change your settings in the UNITS SETUP dialog box (CUSTOMIZE/UNITS SETUP…). Make sure that the unit for lighting is also set correctly: under LIGHTING UNITS, you should have the unit INTERNATIONAL selected. You can change the system unit by clicking on the SYSTEM UNIT SETUP button in the UNITS SETUP dialog box. FIG 1.58 Units Setup Dialog Box, Change Units.
40
Introduction and Theory
FIG 1.59 System Unit Setup Dialog
Box, Change System Units.
Gamma Correction To be able to work correctly with 3ds Max, you should generally adopt the settings described in section 1.3.11. Again, 3ds Max will ask you if other settings should be used. Adopt the settings from our file when loading it by choosing the option ADOPT THE FILE’S GAMMA AND LUT SETTINGS in the FILE LOAD: GAMMA & LUT SETTINGS MISMATCH dialog box. FIG 1.60 File Load: Gamma & LUT
Settings Mismatch Dialog Box, Adopt File’s Gamma Correction.
Adapt Paths (Asset Tracking) In our 3ds Max files, all textures, IES profiles, AutoCAD files, and so on are mostly linked. You can therefore copy the CD’s folder structure to any folder on your hard drive and 3ds Max should be able to find all used files. 41
Architectural Rendering with 3ds Max and V-Ray We recommend that you adapt the links to your file system. Open the ASSET TRACKING dialog box (3DS/MANAGE/ASSET TRACKING). Here you can see all file links in the scene. You can change the paths by right-clicking on an entry and choosing SET PATH…. Even if 3ds Max displays an error message when opening a file, telling you that a file was not found, you can use this dialog box to assign the correct path to that file.
FIG 1.61 Asset Tracking Dialog Box, Assign New Path to Selected Files.
Versions Used This book refers to the current program versions, 3ds Max 2010 or 3ds Max Design 2010 and V-Ray Advanced 1.50.SP3a. The files included on the CD are also in the most current format. If you are still using older versions of the programs, you can download a trial version of the current products from each manufacturer’s web site. You may need to register to do so. • •
42
Autodesk (http://www.autodesk.com) Chaos Group (http://www.chaosgroup.com)
CHAPTER 2
Loft Apartment in Daylight Introduction to Scene A classical loft apartment provides the setting for this daylight scene. The floor is covered by dark floorboards, the outer walls are exposed brickwork, and the internal walls are painted white. The large industrial windows let a lot of light into the room.
Preparing the Scene We will link an AutoCAD file using the FILE LINK MANAGER and insert the furniture into the room with the MERGE function. First we need to create a preset for linking the AutoCAD file.
Preset for File Link Manager Start 3ds Max and open the File Link Manager (3DS/REFERENCES/FILE LINK MANAGER). In this dialog box, go to the PRESETS tab and click on the NEW…
Architectural Rendering with 3ds Max and V-Ray. DOI: 10.1016/B978-0-240-81477-3.00006-5 Copyright © 2010 by Elsevier Inc. All rights reserved.
43
Architectural Rendering with 3ds Max and V-Ray
FIG 2.1 Loft Apartment.
FIG 2.2 File Link Manager, New Preset.
button. Enter the name acad. Confirm with OK, then select the new preset from the list and click on MODIFY…. In the resulting FILE LINK SETTINGS: DWG FILES dialog box, go to the BASIC tab and increase the value for CURVE STEPS to 16 and the value for MAXIMUM SURFACE DEVIATION FOR 3D SOLIDS to 0.1 cm. This increases the accuracy when reading the AutoCAD geometry, which affects (above all) curves. Deactivate all the checkboxes in the INCLUDE group. You want only the geometry to be included. 44
Loft Apartment in Daylight FIG 2.3 File Link Manager, Preset,
Basic.
Switch to the ADVANCED tab. Set the drop-down menu DERIVE AUTOCAD PRIMITIVES BY to LAYER, BLOCKS AS NODE HIERARCHY. This specifies that the layer structure of the AutoCAD file is adopted and the objects are arranged according to this hierarchy. The great advantage is that you can assign materials and modifiers to a whole layer. If you change anything in the AutoCAD model’s geometry, you can update the file in 3ds Max and the assigned materials are maintained. To save the preset, click on SAVE. FIG 2.4 File Link Manager, Preset, Advanced.
45
Architectural Rendering with 3ds Max and V-Ray Open File Go to the book CD directory Chapter\Ch02 and open the file ch02 01.max. In the main menu, choose the menu 3DS/REFERENCES and open the FILE LINK MANAGER. Link to the file ch02 01.dwg in the dwg subdirectory. Use the PRESET acad you created previously. FIG 2.5 File Link Manager,
Link File.
Load the interior for the scene with the command 3DS/MERGE. From the subdirectory merge, choose the file ch02 mg.max. Select all objects in the MERGE dialog box. Use the VIEWPORTS and the LAYER MANAGER (3DS/MANAGE LAYERS…) to familiarize yourself with the scene. FIG 2.6 Merge, Select All.
46
Loft Apartment in Daylight Adapt Viewport and Image Output Activate the PERSPECTIVE VIEWPORT. Now right-click on PERSPECTIVE and activate the option SHOW SAFE FRAMES (Shift-F). The visible image section is now marked with a yellow rectangle. Open the RENDER SETUP (RENDERING/RENDER SETUP…) and set the OUTPUT SIZE to a square image format 500 by 500 pixels.
FIG 2.7 Show Safe Frames.
Camera Setup Change to the TOP VIEWPORT: in the COMMAND PANEL, under CREATE/CAMERA, create a VRAYPHYSICALCAM. This gives you the option of using exposure parameters, such as exposure time or aperture, as analogs of photography. Now you can select your camera and set the FOCAL LENGTH (MM) to 35 mm (also in the COMMAND PANEL, in the MODIFY tab). This enlarges the displayed image selection, which is often useful for indoor renderings, where the camera is usually positioned very close to the objects to be depicted, but at the same time you want to show a lot of the room. Shift the camera left, below the rug. Move the TARGET to about the top-right corner of the model. In the PERSPECTIVE VIEWPORT, select the camera by pressing the C key. Adapt the height of camera and target as well. Set the camera to a height of about 80 cm and move that target so that a little bit of floor remains visible in front of the rug in the lower part of the picture; see Figure 2.8. 47
Architectural Rendering with 3ds Max and V-Ray
FIG 2.8 Create Camera.
To finish, apply the camera correction to remove perspective distortion. Select your camera, then go to COMMAND PANEL/MODIFY and click on the GUESS VERTICAL SHIFT button. The value is calculated automatically—you can check the result in the CAMERA VIEWPORT. If you change the camera position, you need to apply the correction again.
FIG 2.9 Camera without Camera Correction.
48
Loft Apartment in Daylight FIG 2.10 Camera with Camera
Correction.
Basic Settings for Texturing Before we can texture the scene, we need to make some preparations in order to reduce rendering time, to check geometry for errors, and to enable us to check the textures in neutral light.
Create Test Material Open the MATERIAL EDITOR. In the first slot, create a new VRAYMTL and name it Test Material. In the DIFFUSE CHANNEL, set all the color values for RGB to 230. FIG 2.11 Test Material.
49
Architectural Rendering with 3ds Max and V-Ray This corresponds to a neutral white. In the LAYER MANAGER (TOOLS/MANAGE LAYERS…), select all layers and assign the test material to them. To save time in the following section, switch the layer 01 glass to not visible (HIDE). The calculation of glass is very complicated; therefore, we will activate it only when we are ready for fine tuning. Now all objects in the scene have a uniform material. This way, it is easier to assess newly created materials. Also, it prevents unwanted color bleeding and reflections.
FIG 2.12 Switch Off Visibility of Layer 01 Glass.
V-Ray Basic Settings All the following parameters are set in the RENDER SETUP (RENDERING/RENDER SETUP…). Select the V-RAY tab and open the V-RAY::FRAME BUFFER rollout. Check the box ENABLE BUILT-IN FRAME BUFFER. This replaces the default 3ds Max Frame Buffer. Now you have access to V-Ray-specific functions, such as the sRGB mode for gamma correction. We will get back to this later. In the V-RAY:: GLOBAL SWITCHES rollout, deactivate the HIDDEN LIGHTS to make sure that invisible light sources are not included in the light calculation. In the DEFAULT LIGHTS drop-down menu, the option OFF WITH GI should be selected. The default light is used only if no Global Illumination is used. Now change to the V-RAY:: IMAGE SAMPLER (ANTIALIASING) rollout. Select the option FIXED in the IMAGE SAMPLER and deactivate the ANTIALIASING FILTER. Leave all other settings at the default. Set the value for SUBDIVS in the V-RAY:: FIXED 50
IMAGE SAMPLER
rollout to 1.
Loft Apartment in Daylight FIG 2.13 Render Setup, V Ray::
Frame Buffer.
FIG 2.14 Render Setup, V Ray::
Global Switches.
51
Architectural Rendering with 3ds Max and V-Ray
FIG 2.15 Render Setup, V Ray:: Image Sampler (Antialiasing).
FIG 2.16 Render Setup, V Ray:: Fixed Image Sampler.
In the next step, we will determine the settings for indirect illumination, that is, the light calculation itself. First we need to activate it. Choose the INDIRECT ILLUMINATION tab and activate the ON checkbox in the V-RAY:: INDIRECT ILLUMINATION (GI) rollout. As described in Chapter 1, the light calculation in V-Ray is determined by the PRIMARY BOUNCES and SECONDARY BOUNCES. Taking an acceptable rendering time into consideration, the best result will be achieved by a combination of IRRADIANCE MAP (PRIMARY BOUNCES) and LIGHT CACHE (SECONDARY BOUNCES). Choose both. 52
Loft Apartment in Daylight
FIG 2.17 Render Setup, V Ray:: Indirect Illumination (GI).
Open the V-RAY:: IRRADIANCE MAP rollout. In the CURRENT PRESET drop-down menu, choose VERY LOW then CUSTOM. We want to reduce the accuracy even more. Under BASIC PARAMETERS, set the value for MAX RATE to -4. Reduce the HSPH. SUBDIVS to 30. To get an impression during your rendering procedure of what your result will look like, activate the checkbox SHOW CALC. PHASE under OPTIONS. This enables you to stop the rendering any time if an error occurs.
FIG 2.18 Render Setup, V Ray:: Irradiance Map.
53
Architectural Rendering with 3ds Max and V-Ray In the last step, go to the V-RAY:: LIGHT CACHE rollout and set SUBDIVS to a value of 300. To make the best possible use of your computer’s abilities, set the NUMBER OF PASSES to twice the number of your CPUs, such as 8 for a quadcore machine.
& Tip: Make sure that the SHOW CALC PHASE checkbox is activated to get feedback.
FIG 2.19 V Ray:: Light Cache.
VRayLight Setup To illuminate the scene evenly, it is a good idea to choose a light source that emits only diffuse light. Create a VRAYLIGHT in the TOP VIEWPORT (COMMAND PANEL/CREATE/LIGHTS/V-RAY/VRAYLIGHT). You need to determine the type of the light source in the MODIFY tab: choose DOME from the TYPE drop-down menu. For OPTIONS, activate the INVISIBLE checkbox. Now the light source is not visible in the rendering and the light color is determined only by the COLOR value. Now render an image. The V-RAY FRAME BUFFER opens, and as you can see, the result looks somewhat dark. This takes us back to the linear workflow. Activate the DISPLAY COLORS IN SRGB SPACE icon in the status bar of the frame buffer. V-Ray now applies gamma correction and the image appears lighter. Now we still need to adapt the CAMERA VIEWPORT, as 3ds Max is illuminating the scene with the new light source. Right-click the display mode (SMOOTH+ HIGHLIGHTS), then go to LIGHTING AND SHADOWS and choose the ILLUMINATE WITH DEFAULT LIGHTS option. The Viewport is now evenly lit again. 54
Loft Apartment in Daylight
FIG 2.20 VRayLight (Dome) and V Ray Frame Buffer.
FIG 2.21 Camera Viewport, Illuminate with Default Lights.
55
Architectural Rendering with 3ds Max and V-Ray
Create and Assign Textures A rendering stands or falls according to the degree of care taken in texturing. We work exclusively with the V-Ray materials to achieve the best possible results. Little tricks help us represent the result even more realistically. We create the textures step by step in the MATERIAL EDITOR, select the objects in the scene, and assign the material. Choose an empty slot for each new texture and assign it a name. It’s very important to keep track of things!
Brick, White Paintwork Let’s first turn our attention to the outside walls. The building is a former factory; therefore, the outside walls are exposed brickwork. •
Open the MATERIAL EDITOR and name an empty slot brick white.
Click on the button to the right of the name field and create a VRAYMTL in the MATERIAL/MAP BROWSER. This is the standard V-Ray material. •
DIFFUSE
CHANNEL
Change the color value to a Gray of 230. This corresponds to a neutral white, as mentioned previously for the test material.
FIG 2.22 Brick White, Overview.
•
BUMP
CHANNEL
The MAPS rollout of the MATERIAL EDITOR lists all map channels. Click on the NONE button in the BUMP CHANNEL. Choose BITMAP and use the image brick b.jpg in chapters\ch02\textures of the book CD. This is a grayscale image, and bump-mapping makes lighter colors appear raised. 56
Loft Apartment in Daylight In the MATERIAL EDITOR, activate the option SHOW STANDARD MAP IN VIEWPORT for the current material. Now the map is displayed in the VIEWPORT, instead of the DIFFUSE color. This is generally recommended for any newly created material, as it lets you check the mapping. Depending on your computer’s hardware specs, handling the scene may be difficult. If you have many materials in one scene, you may need to deactivate the display again.
FIG 2.23 Brick White, Bump Map.
•
Assign material
Open the LAYER MANAGER and select the layer 01 wall brick white. All objects within the layer are now selected. In the MATERIAL EDITOR, assign the new material with MATERIAL/ASSIGN TO SELECTION. •
UVW Mapping
To project the material onto the wall correctly, you must assign UVW coordinates to the wall with the UVW Map MODIFIER. Select the layer 01 wall brick white in the LAYER MANAGER again. Under COMMAND PANEL/MODIFY, pull down the MODIFIER LIST and choose the UVW MAP MODIFIER. Change the 57
Architectural Rendering with 3ds Max and V-Ray
FIG 2.24 Layer 01 Wall Brick White, UVW Map.
mapping type in BOX. The material is now projected three-dimensionally onto the object. The values for LENGTH, WIDTH, and HEIGHT always depend on the material—in our case, on the picture we use. If you look at our picture of the bump texture, you will notice that it is very large. You can estimate the dimensions of the texture in the scene from looking at the brick size. You also need to take into account the picture's aspect ratio, to make sure that the texture does not get distorted. Set LENGTH and WIDTH to 600 cm and HEIGHT to 360 cm. Render the picture to test the material.
Brick, Exposed Brickwork The material of the exposed brickwork is the same as the one used before. Additionally, we place an image for the map color into the DIFFUSE CHANNEL. • •
Create a new material in the MATERIAL EDITOR and name it brick natural. DIFFUSE CHANNEL
Place the image brick d.jpg from the Texture folder of the chapter into the DIFFUSE CHANNEL, using a BITMAP. The image has of course the same size as the bump texture. Here’s something to watch out for: in the BITMAP PARAMETERS 58
Loft Apartment in Daylight
FIG 2.25 Brick Natural, Overview.
rollout, the default setting of FILTERING is PYRAMIDAL. The image will be blurred and details will be lost. To keep the details intact and avoid perspective washout, choose SUMMED AREA. This is recommended for almost any texture based on image material. •
BUMP
CHANNEL
Allocate the BUMP •
CHANNEL
analog to the texture brick white.
Assign material, UVW mapping
In the LAYER MANAGER, assign the material again to the layers 01 wall brick natural, 01 wall internal window, 01 wall brick displacement and 01 wall external. Apply the UVW MAP modifier to the layers. As the images used have the same size, the values are again identical.
Floor, Parquet We will cover the floor with dark, solid parquet flooring. Now reflection comes into play and the time required for rendering the image increases noticeably. 59
Architectural Rendering with 3ds Max and V-Ray FIG 2.26 Wood D.jpg, Output
Amount.
• •
Create a new material. Name it floor parquet. DIFFUSE CHANNEL
Load the image wood d.jpg into the DIFFUSE CHANNEL as BITMAP. This is a very dark image, so we will lighten it a little bit. Open the OUTPUT rollout. Increase OUTPUT AMOUNT to 2.2. You can vary this setting later if the result is too light or too dark. •
REFLECTION
CHANNEL
The parquet flooring reflects unevenly, as do many structured materials. Consequently, we do not use a fixed gray value for the reflection
FIG 2.27 Floor Parquet, Overview.
60
Loft Apartment in Daylight intensity, but a bitmap with different gray values. We provide the file wood s.jpg for this purpose. As with the bump map, the same advice applies in this case: the lighter the gray value, the bigger the effect (in this case, the reflection). This time we use the OUTPUT AMOUNT to reduce the reflection. Enter a value of 0.1. Go back to the top layer of the material. In the MATERIAL EDITOR preview window, you can now see strong highlights on the wood. Reduce the value REFL. GLOSSINESS to 0.65 to make the reflection softer and more natural. Increase the SUBDIVS in the field below to 16. The softer the reflection, the higher the values need to be in order to avoid unwanted grain in the picture. You do need to think carefully about the value you decide to set, however, as this affects the required rendering time greatly. A value of 16 should be okay for now. •
BUMP
CHANNEL
Of course we again use a BITMAP texture. Use the file wood b.jpg from the subdirectory textures. Because of the fine joints in this texture, it is especially important to set FILTERING to SUMMED AREA. •
Assign material, UVW mapping
Assign the material to the layer 01 floor livingroom. Apply the UVW MAP modifier with these settings: LENGTH 200 cm, WIDTH 400 cm. Choose PLANAR as the mapping type.
Picture Now we turn our attention to the nondescript rectangle above the couch. We want to turn it into a work of art that makes the large white wall look less austere. We will base it on an abstract photograph by artist AnnaDorothee Arnold. The main focus is on assigning the material. We will use a MULTI/SUB-OBJECT material and give the object more vividness with a little trick. •
Prepare Picture object, assign material
In the TOP VIEWPORT, select the rectangle above the couch (picture) and isolate it by right-clicking on the object and choosing ISOLATE SELECTION from the resulting menu. Alternatively, you can press Alt + Q. First press the Z key to center the picture in every viewport. In the MODIFY tab of the COMMAND PANEL you can see that this is a Box object. But we want to texture the individual faces differently by working with MATERIAL ID. The EDIT POLY modifier is our first choice in this case. Apply it to the object. If you expand the modifier, it offers you five different options for altering the object. We want to edit faces, so POLYGON is the best option. First, select all areas. In the POLYGON: MATERIAL IDS rollout, enter 2 for SET ID. Now select only the object’s polygon that faces the room and assign the ID 1 to this polygon. 61
Architectural Rendering with 3ds Max and V-Ray
FIG 2.28 Picture, Isolated Selection, Assign Material ID 2 to All Polygons.
FIG 2.29 Picture, Assign Material ID 1 to Front Facing Polygon.
62
Loft Apartment in Daylight •
Multi/Sub-Object material
Name a free material slot picture multi. For the material, choose MULTI/SUBOBJECT. As you can see, there is a list of ten currently unassigned materials. They have an ID, NAME (description), and a material slot. Use the SET NUMBER button to limit the number to 2. Now we are going to create the two materials: • •
Assign VRAYMTL to the first slot. Name it picture painting. Place a BITMAP texture into the DIFFUSE CHANNEL and select the file picture.jpg. Name the second slot of the Multi/Sub-material picture painting back. As new material, choose VRAYOVERRIDEMTL. This enables overriding properties such as global illumination (GI) color or reflection color with new materials. For the BASE MATERIAL, create a VRAYMTL with a Gray value of 230 in the DIFFUSE CHANNEL. For the GI MATERIAL, also create a VRAYMTL, but set the RGB value in the DIFFUSE CHANNEL to 0, 0, 0.
We aim to achieve two things with this material. The picture is displayed on only the front of the picture frame, so the sides and back are white.
FIG 2.30 Picture Multi, Multi/Sub Object Material.
FIG 2.31 Picture Painting Back, VRayOverrideMtl.
63
Architectural Rendering with 3ds Max and V-Ray
FIG 2.32 Rendering with Picture.
But these white areas bleed black during the calculation of the indirect illumination. This darkens the wall area around the picture and the picture frame stands out more. That seems like a lot of effort for such a small effect, but it is these sorts of details that make a good rendering.
White Material, Matte Now we will do something less spectacular, just for a change. There are some objects in our scene, such as window frames and skirting boards, to which we will assign a simple white material. These do not need any reflection. • • 64
Name the new material white matte. Create a VRAYMTL and set the Gray value to 230 in the DIFFUSE CHANNEL. Assign material
Loft Apartment in Daylight
FIG 2.33 White Matte, Assign to Lampshade.
In the LAYER MANAGER, select the following layers and assign the material. • • • • • •
01 01 01 01 01 01
ceiling window frame baseboard joist lintel internal window lintel external window
Now select the object floor lamp in one of the viewports. This object is actually a group containing several objects with different materials. We want to assign the current material to the lampshade. Open the group with GROUP/OPEN. Select the lampshade and assign the material. Close the group again to avoid accidentally changing other objects in it.
White Material, Reflecting For other objects, we also need white material, but this time we want it to reflect—for example, shiny plastic surfaces or varnished wood. The REFLECTION CHANNEL has something special to offer. 65
Architectural Rendering with 3ds Max and V-Ray • •
In a new slot, create the VRAYMTL material white reflecting, again with a Gray value of 230 in the DIFFUSE CHANNEL. REFLECTION CHANNEL
A lighter shade of gray in the REFLECTION CHANNEL would produce a nice reflection. But we want the effect to be a little more realistic. Next time you get the chance, have closer look at a cue ball or a white porcelain cup. The reflection on the curved surface increases towards the edges, whereas a small area in focus has almost no reflection. This is particularly relevant for the two end tables. To achieve this effect, select FALLOFF as map for the REFLECTION CHANNEL. It enables falloff, in this case of the reflection, via a blackand-white gradient. To limit the effect even more to the object edges, look at the curve in the MIX CURVE rollout. FIG 2.34 Mix Curve, Bezier Corner.
The horizontal axis indicates the gradient from black to white; the vertical axis, the white content. At the moment, the gradient is linear, defined by two points at bottom left and top right. Right-click on the bottom-left point FIG 2.35 Mix Curve, Adapted Curve.
66
Loft Apartment in Daylight and change the point's behavior to BEZIER-CORNER. Now drag the new control point to the bottom-right corner. The black content—that is, the areas without reflection—are now bigger, and the material reflects only on the edges, just as we wanted. •
Assign material
In the LAYER MANAGER, select the layer 01 sideboard white (the sideboards below the windows) and assign the material. Select the two sockets to the left of the couch in any Viewport and also the two tables. Assign the material to these objects as well.
FIG 2.36 White Reflecting, Material Editor View.
Chrome We also have some pretty chrome objects in our scene. These reflect their surroundings almost entirely and create impressive light reflections. Here we need a SHELLAC material to overlay the reflection with a soft highlight. • •
Create a new VRAYMTL called Chrome. DIFFUSE CHANNEL
Change the color swatch to black. •
REFLECTION
CHANNEL
Create a FALLOFF map in the REFLECTION CHANNEL. You need to adapt the curve in the MIX CURVE rollout. Drag the left point upwards, to a value of about 0.6. In frontal view, the object now has almost no reflection, but towards the edges of the sphere in the MATERIAL EDITOR, it increases. Compare your settings to those in Figure 2.38. 67
Architectural Rendering with 3ds Max and V-Ray FIG 2.37 Material Editor, Chrome,
Overview.
FIG 2.38 Falloff Map, Adapted
Curve.
•
Shellac material
Create the Shellac material using the VRAYMTL and change the SHELLAC COLOR BLEND value to 100. In the SHADER BASIC PARAMETERS rollout, choose ANISOTROPIC. The following settings refer to the ANISOTROPIC BASIC PARAMETERS rollout. Change the color in the Diffuse swatch to black. Enter the value 60 for SPECULAR LEVEL, 15 for GLOSSINESS, and 90 for ANISOTROPY. 68
Loft Apartment in Daylight FIG 2.39 Chrome, Shellac Material,
Overview.
FIG 2.40 Chrome, Shellac Material
Settings.
•
Assign material
In the LAYER MANAGER, assign the material to the layer 01 chrome (frame of sideboards). Also assign the material to the following objects in the scene: • •
ceiling lights floor lamp
Isolate the group floor lamp and open it. Assign the material to all objects except for the lampshade. •
Couch base
Open the group couch and assign the chrome to the group couch frame. •
Tables
Again, only one object of the group table needs to have the material chrome assigned to it. Here we use a SCENE EXPLORER. Open a new SCENE 69
Architectural Rendering with 3ds Max and V-Ray FIG 2.41 Scene Explorer, Limit
Selection, Select Group Table.
EXPLORER (TOOLS/NEWSCENEEXPLORER). A SCENE EXPLORER enables the handling of practically any objects in your scene. It can, for example, tell you whether an object has a material assigned to it (HAS MATERIAL) and is very adaptable to your particular needs. You can create more than one SCENE EXPLORER. Using the icons in the main menu bar, you can limit the selection of displayed objects. Choose only DISPLAY GEOMETRY and DISPLAY GROUPS. In the selection list, activate the group table. Right-click on the selection and choose GROUPS/OPEN GROUP from the list. Now you can add your objects to the group table. Highlight the object table top and assign the material chrome. Now you can close the group. Do the same with the group table02. FIG 2.42 Scene Explorer, Open
Group Table.
70
Loft Apartment in Daylight FIG 2.43 Scene Explorer, Select
Object Table Top.
Leather The couch should have a black leather covering. Once the sunlight is shining onto the couch, we want to achieve a nice soft sheen. • •
Create a new VRAYMTL and name it leather. DIFFUSE CHANNEL
Set the Gray in the DIFFUSE CHANNEL to 10. Just as with white materials, we do not set black surfaces to pure black. •
REFLECTION
CHANNEL
Leather is also a reflecting material, but has a soft reflection. Assign a Gray value of 8 to the amount of the reflection. Reduce the value for REFL.
FIG 2.44 Leather, Overview.
71
Architectural Rendering with 3ds Max and V-Ray GLOSSINESS to 0.8 to achieve a softer reflection. Increase SUBDIVS to 32. Now we want to add a slightly harder, more precise highlight. Deactivate the box with the L to the right of HILIGHT GLOSSINESS. This removes the link between HILIGHT GLOSSINESS and REFL. GLOSSINESS; you can now enter separate settings for each. Set HILIGHT GLOSSINESS to 0.75 and look at the change in the material preview. •
Assign material
Open the group couch and assign leather to the group couch leather.
Ceiling, Textured Plaster The ceiling has a textured plaster finish. We will create a white material, again with a bump map. • •
Name the new material ceiling. Again, choose a VRAYMTL. DIFFUSE CHANNEL
Enter a Gray value of 230. •
BUMP
CHANNEL
Place a Bitmap texture into the BUMP CHANNEL. Choose the file ceiling b.jpg from the folder chapters/ch 02/textures. •
Assign material, UVW mapping
In the LAYER MANAGER, select the layer 01 ceiling suspended and assign the material. We need to place a modifier UVW MAP onto the layer ceiling, as we are using an image in the bump texture again. Choose BOX as the mapping method. Set LENGTH, WIDTH, and HEIGHT to 150 cm.
Rug Next, let’s focus on the plane below the couch. A large flokati rug perfects the room composition and creates a cozy atmosphere. First, we will use a bump map to make the rug look more 3D, and then we will apply the displacement modifier. • •
Create a new VRAYMTL and name it rug. DIFFUSE CHANNEL
Enter a Gray value of 230. •
BUMP
CHANNEL
Create a BITMAP texture and select the image rug b.jpg. •
Assign material, UVW mapping
Select the object rug in the scene and assign the material. Now apply the UVW MAPPING modifier. Leave the mapping method set to PLANAR and set a value of 50 cm for LENGTH and WIDTH. 72
Loft Apartment in Daylight
FIG 2.45 Bump Structure Display of Ceiling and Rug in the Viewport.
Glass Now we’ll create the glass for the window panes. • •
Create a new VRAYMTL and name it glass. DIFFUSE CHANNEL
Set the DIFFUSE •
REFLECTION
CHANNEL
to a pure white.
CHANNEL
For the reflection, change the gray value to white. The Fresnel reflection is relevant for glass. Activate the FRESNEL REFLECTIONS checkbox. The Fresnel effect is determined by the FRESNEL IOR value. The default setting of 1.6 corresponds to the transition from air to glass, which is what we want here. You can adjust this setting to achieve different reflections. But that is not necessary in our case. •
Refraction channel
Enter again a value of 255. Ensure that the AFFECT SHADOWS checkbox is activated, which allows light to pass through. Also select the COLOR+ALPHA option under AFFECT CHANNELS to make sure that it is taken into account during the alpha channel calculation. 73
Architectural Rendering with 3ds Max and V-Ray FIG 2.46 Glass, Reflection Channel.
FIG 2.47 Glass, Refraction Channel.
•
Assign material
In the LAYER MANAGER, make the layer 01 glass visible again. Select the layer and assign the material.
Light Setup Now that we have assigned a material to every object in the scene, we can get into the light setup. We are going to use only the V-Ray sunlight.
Sunlight Before setting up the new light, delete the DOME light that was used until now. The V-Ray sunlight (VRAYSUN) is a directional light; it has a light source 74
Loft Apartment in Daylight
FIG 2.48 VRaySun, Viewport Overview.
and a target. A texture for the surrounding area—the sky, so to speak—is created automatically. You can change settings such as tint or atmospheric pollution. Create the VRAYSUN in the TOP VIEWPORT (COMMAND PANEL/CREATE/LIGHTS/ V-RAY). Place the target on the rug and drag the light source to the bottom right. Adjust the direction of the light so that the sunlight falls into the room diagonally from the right. There should be direct sunlight on the rug, about a third of the couch and the wall. Compare your scene to that in Figure 2.48.
V-Ray Rendering Settings We have nearly achieved our aim. Next, we will work our way step by step through the crucial V-Ray settings. Now our materials will really come into their own. But we also have to strike a careful balance between rendering time and quality of the final result. Our final result takes about 25 minutes at a resolution of 2000 × 2000 pixels on a quad-core computer with 4 GB RAM. If you use a dual-core computer, the required time will double. We 75
Architectural Rendering with 3ds Max and V-Ray recommend that you experiment with the settings described in the following sections.
V-Ray Open the RENDER SETUP dialog box and switch to the V-RAY tab. The following bullet points focus on a rollout each: •
V-Ray:: Image sampler (Antialiasing)
Choose ADAPTIVE DMC under TYPE and reactivate the ANTIALIASING FILTER. Here you should choose BLACKMAN.
FIG 2.49 Render Setup, V Ray:: Image Sampler (Antialiasing).
•
V-Ray:: Adaptive DMC image sampler
Set MIN SUBDIVS to 4 and MAX SUBDIVS to 10.
FIG 2.50 Render Setup, V Ray:: Adaptive DMC Image Sampler.
76
Loft Apartment in Daylight Indirect Illumination Switch to the INDIRECT ILLUMINATION tab. •
V-Ray:: Irradiance map
Choose the MEDIUM setting under CURRENT PRESETS. Under BASIC PARAMETERS, increase the HSPH. SUBDIVS to 50. FIG 2.51 Render Setup, V Ray::
Irradiance Map.
•
V-Ray:: Light cache
Change the SUBDIVS setting to 2500 and the SAMPLE SIZE to 0.01. Activate the USE LIGHT CACHE FOR GLOSSY RAYS checkbox to ensure that soft reflections are calculated in this process. FIG 2.52 Render Setup, V Ray::
Light Cache.
77
Architectural Rendering with 3ds Max and V-Ray Now render the image at a resolution of 2500 × 2500 pixels. Keep an eye on the required rendering time. You may need to lower the settings a bit. Try the LOW preset in the IRRADIANCE MAP or reduce the ADAPTIVE DMC IMAGE SAMPLER values, perhaps to 2 and 6.
FIG 2.53 Rendering, 600 × 600 Pixels.
Fine-Tuning We hope that you are already convinced by the result. Now we will refine the effect of the rug and the natural stone wall. The Displacement modifier (VRAYDISPLACEMENTMOD) can add more realism.
Rug, Displacement The rug does not look like a proper flokati yet. We will fix this. Select the rug and go to the MODIFY tab in the COMMAND PANEL. Select the VRAYDISPLACEMENTMOD modifier from the list. The rug is a plane—a two-dimensional object—so choose 2D MAPPING (LANDSCAPE) for TYPE. Just as with the bump mapping, we need to assign a map to govern the displacement. Under TEXMAP, choose a BITMAP and assign the file rug b.jpg. 78
Loft Apartment in Daylight FIG 2.54 Rug,
VRayDisplacementMod, Texmap.
It is the same picture as in the bump map. Check FILTER TEXMAP and set the AMOUNT to 3.0 cm. That is sort of the length of our flokati strands. Finally, set RESOLUTION to 256. That should be enough. The rendering time increases noticeably again, as displacement is always very computationally intensive. FIG 2.55 Rug,
VRayDisplacementMod, Further Parameters.
79
Architectural Rendering with 3ds Max and V-Ray Brick, Displacement To bring out the relief structure of the brick wall even more, we will use displacement once more. To that purpose, we have already separated the visible wall surfaces in the AutoCAD file and placed it into the layer 01 wall brick displacement. Generally, you should apply the displacement modifier only to objects visible in the picture, in order to keep calculation time and memory space as low as possible. Select the layer 01 wall brick displacement and apply the VRAYDISPLACEMENTMOD modifier to the layer. The wall is a three-dimensional object, and we want the displacement to run around the edges of the wall as well. Under TYPE, choose the option 3D MAPPING. In the TEXMAP channel, select the file brick b.jpg for a BITMAP.
FIG 2.56 Layer 01 Wall Brick Displacement,
FIG 2.57 Layer 01 Wall Brick Displacement,
FIG 2.58 Layer 01 Wall Brick Displacement,
VRayDisplacementMod, Texmap.
VRayDisplacementMod, Further Parameters.
VRayDisplacementMod, 3D Mapping.
80
Loft Apartment in Daylight Activate the option FILTER 2.0 cm.
TEXMAP.
Set the AMOUNT of the displacement to
In the group 3D MAPPING/SUBDIVISION, set an EDGE LENGTH of 3.0 pixels. You can improve the resolution by changing RESOLUTION to 512. To make sure that the displacement is continued around the edges, activate the KEEP CONTINUITY checkbox with an EDGE TRESH of 0.01.
81
CHAPTER 3
Bathroom In this chapter, we want to visualize an extraordinary bathroom. The bathtub spans the width of the room and is immersed in light from the ceiling and at the head end. The camera perspective does not give view to the outside of the room, conveying a cave-like atmosphere. This impression is underlined by the use of natural stone on walls and floor.
Preparing the Scene This time we’ll start with a model constructed in 3ds Max. Almost all of the objects used in the scene have rounded edges that can be varied through the TURBOSMOOTH modifier. This increases the realism of the scene, as there are no exact edges in reality, either. Reflections on these gentle curves create contrasts in the scene, which is otherwise lit only diffusely. In this case, we will use a different UVW mapping method. The UVW MAP uses real texture dimensions, which are set in the BITMAP texture.
Open File Open the file ch 03 01.max in the book CD directory chapters\ch3. Use the scene for orientation. You can see the openings at the top and to the left of the bathtub. A further opening is located behind the camera; this could be the door. Architectural Rendering with 3ds Max and V-Ray. DOI: 10.1016/B978-0-240-81477-3.00007-7 Copyright © 2010 by Elsevier Inc. All rights reserved.
83
Architectural Rendering with 3ds Max and V-Ray FIG 3.1 Bathroom.
FIG 3.2 Scene, Overview.
If you select individual objects, you can experiment with the TURBOSMOOTH modifier in the MODIFY tab in the COMMAND PANEL. Select the object wall. As you can see, the TURBOSMOOTH modifier has RENDER ITERS set to 3. These are not visible right now. Increase the ITERATIONS value above it. Now the effect is visible in the VIEWPORT, but the scene handling is limited and less readable. 84
Bathroom
FIG 3.3 TurboSmooth Modifier, 0 Iterations.
FIG 3.4 TurboSmooth Modifier, 2 Iterations.
85
Architectural Rendering with 3ds Max and V-Ray
Camera Setup To be able to get an impression of the room, you first need to set up a camera. We decided to use a square picture format once more. Set the Resolution in the RENDER SETUP dialog box to 500 × 500 pixels. Create a FREE CAMERA in the TOP VIEWPORT and shift it in y-direction to about 100 cm in front of the inside of the back wall. In x-direction, center the camera in the room. Now switch to CAMERA VIEWPORT and activate SHOW SAFE FRAMES (press Shift-F) to display the output format. Change the camera lens to 28 mm. Now shift the camera in the z-direction so that the bottom edge of the washbasin is just about still in the picture. Compare your image with Figure 3.6. Render the scene to get a first impression. A test material with a VRAYDIRT map in the DIFFUSE CHANNEL has already been assigned to all objects, and using DEFAULT LIGHTS with Global Illumination on is activated in the V-Ray parameters.
FIG 3.5 Camera Setup, Overview.
FIG 3.6 Camera Setup, Camera Viewport.
86
Bathroom
Create Light Sources We are going to create the impression that the bathroom is lit by diffused daylight (or skylight) coming through the openings of the room. We will use V-Ray plane lights to create this effect; that is, rectangular planes emitting diffuse light in one direction. They are in front of the openings and are always slightly larger than these in order to create even illumination. The ceiling light is to be the strongest light source. The side light is also very intense. The back light behind the camera adds a bit of extra light to the room, but is not directly noticeable. First, create a new light layer in the LAYER MANAGER. •
Ceiling light
Create a new VRAYLIGHT in the TOP VIEWPORT (COMMAND PANEL/CREATE/LIGHTS/V-RAY). Name it ceiling light. Switch to the MODIFY tab in the COMMAND PANEL. Set TYPE to PLANE. Position the light in the center of the opening in the ceiling. Adapt the dimensions with the parameters HALF-LENGTH and HALF-WIDTH. They designate half the distance from the center. Settings of 110 cm and 25 cm are recommended; in any case, the light should overlap the opening by a
FIG 3.7 Create Ceiling Light.
87
Architectural Rendering with 3ds Max and V-Ray few centimeters. Shift the ceiling light in the CAMERA VIEWPORT upwards in the z-direction until it is obscured by the ceiling, or change the z-coordinate to 325 cm. •
Side light
Change to the LEFT VIEWPORT. Create a VRAYLIGHT side light with the dimensions 45 cm × 45 cm. Center it in front of the opening above the bathtub. Go back to the TOP VIEWPORT and move it in the x-direction to about 5 cm from of the outside of the left wall.
FIG 3.8 Create Side Light.
•
Back light
In the FRONT VIEWPORT, create a VRAYLIGHT back light. Enter 60 cm for HALF-LENGTH and 120 cm for HALF-WIDTH and shift the light to the center of the opening. In the TOP VIEWPORT, move it in the y-direction to about 10 cm beneath the external wall. Before rendering the scene, you still need to input the parameters for light intensity and color. Ceiling light and side light should simulate daylight. 88
Bathroom
FIG 3.9 Create Back Light.
So assign a light-blue color (to emulate the skylight color)—for example, RGB values 150, 200, 225. Set the value for light intensity: the MULTIPLIER for the ceiling light to 5.0 and the side light to 2.0. A test material VRAYMTL with a VRAYDIRT map has already been assigned to all objects. You can view it in the MATERIAL EDITOR. FIG 3.10 Color Selector, Ceiling
Light and Side Light.
89
Architectural Rendering with 3ds Max and V-Ray The back light should be slightly warmer; use a color with the RGB values 250, 220, 170. Leave the MULTIPLIER at 1.0.
FIG 3.11 Color Selector, Back Light.
You will need to fine-tune these settings after texturing the scene; for the next few steps, setting suggestions are just basic guidelines to start with. You should also enter the following settings in the RENDER SETUP dialog box. •
V-Ray:: Frame buffer
Activate the V-Ray output window by checking the ENABLE checkbox.
BUILT
FRAME BUFFER
FIG 3.12 Render Setup, V Ray:: Frame Buffer.
•
V-Ray:: Global switches
Deactivate the HIDDEN LIGHTS checkbox and make sure that DEFAULT LIGHTS is set to the option OFF WITH GI. 90
Bathroom
FIG 3.13 Render Setup, V Ray::
Global Switches.
•
V-Ray:: Image sampler (antialiasing)
Set the IMAGE SAMPLER to ADAPTIVE SUBDIVISION and ANTIALIASING
FILTER
to AREA. FIG 3.14 Render Setup, V Ray::
Image Sampler (Antialiasing).
•
V-Ray:: Adaptive subdivision image sampler
Set the MIN.
RATE
to –1 and MAX.
RATE
to 2. FIG 3.15 Render Setup, V Ray::
Adaptive Subdivision Image Sampler.
91
Architectural Rendering with 3ds Max and V-Ray
•
V-Ray:: Color mapping
In this rollout, set the GAMMA value to 1.0. Carry out the Gamma correction in the Frame Buffer with the DISPLAY COLORS IN SRGB SPACE button. FIG 3.16 Render Setup, V Ray:: Color Mapping.
•
V-Ray:: Indirect Illumination (GI)
Check the ON checkbox. Set PRIMARY BOUNCES to IRRADIANCE BOUNCES to LIGHT CACHE. •
MAP
and SECONDARY
V-Ray:: Irradiance map
Set the CURRENT
PRESET
to LOW and activate the SHOW
CALC. PHASE
checkbox.
FIG 3.17 Render Setup, V Ray::
Irradiance Map.
•
V-Ray:: Light cache
Set SUBDIVS to 500. SCALE should be set to SCREEN. Once again, activate the SHOW CALC. PHASE checkbox. 92
Bathroom
FIG 3.18 Render Setup, V Ray::
Light Cache.
Activate the CAMERA VIEWPORT and render the scene. The result should look similar to Figure 3.19.
Warning Make sure to activate Gamma correction with the DISPLAY COLORS IN SRGB SPACE button.
FIG 3.19 V Ray Frame Buffer.
93
Architectural Rendering with 3ds Max and V-Ray
Texture the Scene Now we are going to create the materials for the scene, step by step. We want to create contrast with the soft natural stone on walls and floor by adding highlights to the interior design objects. The natural stone on the floor is distinguished by a different scale from the stone used for walls and the side of the bathtub.
Natural Stone, Floor The floor is the first object where we will use the natural stone. • •
Create a new VRAYMTL in the MATERIAL EDITOR and name it natural stone floor. DIFFUSE CHANNEL
Place a VRayDirt map in the DIFFUSE CHANNEL. Change the parameters for RADIUS to 10 cm, FALLOFF to 1.0, and SUBDIVS to 32. FIG 3.20 Natural Stone Floor,
VRayDirt, Parameters.
This achieves a soft gradient of Ambient Occlusion. In the UNOCCLUDED COLOR channel, select a BITMAP. Open the image stone d.jpg from the textures subdirectory. Make sure that the SELECT BITMAP IMAGE FILE dialog box is set to USE SYSTEM DEFAULT GAMMA, to satisfy the linear workflow (LWF). In the Bitmap settings, activate the USE REAL-WORLD SIZE checkbox and enter the dimensions of the map. Set WIDTH to 250 cm and HEIGHT to 80 cm. Then go to the BITMAP PARAMETERS group and set FILTERING to SUMMED AREA. This setting adds more sharpness to the texture. Using this parameter is generally a good idea. 94
Bathroom
FIG 3.21 Natural Stone Floor,
VRayDirt, Bitmap.
& Tip: Also activate the SHOW STANDARD MAPS IN VIEWPORT option in the MATERIAL EDITOR to make sure that the texture is displayed on the objects in the VIEWPORT.
•
BUMP
CHANNEL
Place a BITMAP in the BUMP CHANNEL as well. Select the image stone b.jpg. Proceed in the same manner as in the DIFFUSE CHANNEL. Assign the same values. Leave FILTERING set to PYRAMIDAL. In the BUMP CHANNEL, a higher sharpness is a disadvantage; it causes textures to look somewhat rough. Reduce the value for the amount of bump mapping to 5. That will be enough to show the stone texture. FIG 3.22 Natural Stone Floor,
Bump Map.
95
Architectural Rendering with 3ds Max and V-Ray
•
UVW map
In the LAYER MANAGER, select the layer 00 floor. In the MODIFY tab of the COMMAND PANEL, assign the UVW MAP modifier to the selection. Make sure that the modifier is set to BOX for MAPPING and that the REAL-WORLD MAP SIZE checkbox is checked.
FIG 3.23 Layer 00 Floor, UVW
Mapping.
•
Assign material
Open the LAYER MANAGER. Select the layer 00 floor and assign the material.
Natural Stone, Wall The walls are made from the same material as the floor. We will assign different dimensions to the bitmap. • • 96
Create a copy of the material natural stone floor and rename it natural stone wall. DIFFUSE CHANNEL
Bathroom In the VRAYDIRT map, set the RADIUS to 50 cm to enlarge the area of the contact shadow. Now go into the BITMAP. The natural stone wall will have stones of different sizes than the floor. Change the WIDTH to 400 cm and the HEIGHT to 57 cm. To ensure that the joint structure fits the geometry, we need to modify the parameters for OFFSET. Enter an OFFSET WIDTH of 11 cm and OFFSET HEIGHT of –8.3 cm. We used trial and error to find the best settings.
FIG 3.24 Natural Stone Wall,
VRayDirt, Bitmap.
•
BUMP
CHANNEL
Adapt the BITMAP settings as you did in the DIFFUSE •
CHANNEL.
UVW Map
Open the LAYER MANAGER and expand the layer 00 wall. In the layer, select only the two objects wall and wall back. Assign the UVW MAP modifier to these objects. Again, set MAPPING to BOX and check the REAL-WORLD MAPPING checkbox. • •
Select the entire layer 00 wall and assign the material. UVW Map for object wall bathtub
Select the object wall bathtub within the layer 00 wall. Assign the UVW MAP modifier, just as with the other two objects. The bathtub panel will be formed by several large slabs. Uncheck the REAL-WORLD MAPPING checkbox and enter the parameters for LENGTH, WIDTH, and HEIGHT of the UVW MAP manually. Enter 0.8 cm for LENGTH and WIDTH and 2 cm for HEIGHT. Then shift the UVW Map in the z-direction until no horizontal joint is visible. Expand the UVW MAPPING modifier in the list panel and activate the GIZMO by clicking on it. It is now highlighted in yellow and you can drag it as usual. 97
Architectural Rendering with 3ds Max and V-Ray
FIG 3.25 Object Wall Bathtub,
UVW Mapping.
FIG 3.26 Camera Viewport, Shift
Gizmo.
Ceramic The bathtub and washbasin have a smooth, white ceramic surface, characterized by a high degree of reflection and highlights on the edges. • •
Create a new VRAYMTL ceramic. DIFFUSE CHANNEL
Place a VRAYDIRT map in the DIFFUSE CHANNEL. Assign a gray value of 230 to other words, pure white. Set RADIUS to 20 cm, FALLOFF to 1.0 and SUBDIVS to 32. UNOCCLUDED COLOR—in
98
Bathroom
FIG 3.27 Ceramic, VRayDirt
Parameters.
•
REFLECTION
CHANNEL
Set the reflection color to white and check FRESNEL REFLECTIONS. Remove the link between HIGHLIGHT GLOSSINESS and REFLECTION GLOSSINESS by clicking on the L button next to it. Add a soft highlight to the hard reflection by reducing the HIGHLIGHT GLOSSINESS to 0.75.
FIG 3.28 Ceramic, Reflection.
•
Assign the material to the layers 00 bathtub and 00 washbasin. FIG 3.29 Ceramic, Material Editor
View.
99
Architectural Rendering with 3ds Max and V-Ray Chrome There are also lots of shiny chrome materials in our scene. The faucet, the three shelf edges, and the washbasin brackets are chromed. • •
Create a new VRAYMTL and name it Chrome. DIFFUSE CHANNEL
Change the color to black. •
Reflection channel
Select a FALLOFF map. This makes the reflection dependent on the viewing direction. Toward the edge of the sphere, the reflection becomes increasingly stronger. To make sure that the chrome still reflects if viewed from the front, you need to reduce the black area. Assign an RGB setting of 125, 125, 125 to the black color swatch under the FRONT:SIDE parameter. Back in the main material, deactivate the link between HIGHLIGHT GLOSSINESS and REFLECTION GLOSSINESS by clicking on the L, then set HIGHLIGHT GLOSSINESS to 0.9. This places a softer highlight on the edges of the sharp chrome reflection, emphasizing the object shape.
FIG 3.30 Chrome, Reflection.
FIG 3.31 Chrome, Falloff
Parameters.
100
Bathroom
•
In the LAYER MANAGER, select the layers 00 chrome and 00 faucet and assign the material. FIG 3.32 Chrome, Material Editor
View.
Plaster The ceiling is covered in very light, almost white plaster. The plaster texture is created via a bump map. • •
Create a new VRAYMTL plaster. DIFFUSE CHANNEL
A VRAYDIRT map is sufficient in the DIFFUSE CHANNEL. For UNOCCLUDED COLOR, assign a gray value of 220. The other settings are the same as before: 10 cm for RADIUS, 1.0 for FALLOFF and 32 SUBDIVS. FIG 3.33 Plaster, VRayDirt
Parameters.
•
Bump channel
Place the image plaster b.jpg from the textures subdirectory into the BUMP as the bitmap. Enter 50 cm each for WIDTH and HEIGHT. Make sure that the USE REAL-WORLD SCALE checkbox is activated. To be able to see the texture in the CAMERA VIEWPORT, turn on SHOW STANDARD MAPS IN VIEWPORT in the MATERIAL EDITOR. CHANNEL
101
Architectural Rendering with 3ds Max and V-Ray
FIG 3.34 Plaster, Bump Map,
Bitmap Parameters.
•
Assign the material to the layer 00 ceiling.
Wood The shelf under the washbasin and the shelves on the wall have wooden surfaces. We will use a very soft reflection to represent a moderately shiny surface. • •
In a free slot of the MATERIAL EDITOR, create a new VRAYMTL and name it wood. DIFFUSE CHANNEL
Place a VRAYDIRT map into the DIFFUSE CHANNEL. Choose a RADIUS of 50 cm, and set FALLOFF to 1.0 and SUBDIVS again to 32. Place a BITMAP in the UNOCCLUDED COLOR channel. Select the image wood d.jpg from the textures subdirectory. Set WIDTH and HEIGHT to 20 cm. FIG 3.35 Wood, VRayDirt
Parameters.
102
Bathroom
FIG 3.36 Wood, VRayDirt, Bitmap
Parameters.
& Tip: In the MATERIAL EDITOR, activate the option SHOW STANDARD MAPS IN VIEWPORT.
•
Reflection channel
Set the REFLECT swatch to a gray of 40. Reduce the value for REFLECTION GLOSSINESS to 0.75. This very soft reflection makes it necessary to increase the sample subdivisions, so set SUBDIVS to 32. Now activate the FRESNEL REFLECTIONS checkbox. FIG 3.37 Wood, Reflection.
•
Shellac material
While still in the wood material, click on the VRAYMTL button next to the material name. Choose a SHELLAC material. In the resulting dialog box, select KEEP OLD MATERIAL AS SUB-MATERIAL. In the Shellac material, increase SHELLAC COLOR BLEND to 100. 103
Architectural Rendering with 3ds Max and V-Ray
FIG 3.38 Wood, Shellac Material,
Overview.
Now click on the SHELLAC MATERIAL slot. Within this standard material, we need the BLINN BASIC PARAMETERS rollout. Change the DIFFUSE COLOR to black to achieve a highlight overlay. Create the highlight by setting the SPECULAR LEVEL (that is, the reflection intensity) in the SPECULAR HIGHLIGHTS group to 45. Change the GLOSSINESS to 35 to make the reflection softer. You can leave the SOFTEN value at 0.1. Now your wood has a soft white highlight. FIG 3.39 Wood, Shellac Material,
Standard Material Parameters.
•
UVW map
In the LAYER MANAGER, select the layer 00 wood. Apply the UVW MAP modifier to it. Use BOX for MAPPING and activate the USE REAL-WORLD MAP SIZE checkbox. •
Assign material
In the LAYER MANAGER, select the layer 00 wood and assign the material. In the CAMERA VIEWPORT, notice that the wood grain runs across, not lengthwise. Activate the UVW MAPPING modifier gizmo, just as you did with the object wall bathtub. Rotate it by 90 degrees. Now the texture is aligned lengthwise, as we wanted. 104
Bathroom
FIG 3.40 Layer 00 Wood, UVW
Mapping, Rotate Gizmo.
FIG 3.41 Wood, Material Editor
View.
Mirror Glass The material for the mirror is really simple. It is black and completely reflecting. • •
Create a new VRAYMTL mirrorglass. DIFFUSE CHANNEL
Change the color to black. •
Reflection channel
Here, change the color to white; the material is 100 percent reflective. 105
Architectural Rendering with 3ds Max and V-Ray
FIG 3.42 Mirrorglass, Overview.
•
Select the layer 00 mirror and assign the material.
Lacquer, Switch Only the little switch to the right of the mirror will have this material. But the challenge lies in overcoming the impression that the switch is floating. A little trick can help us here. •
Create a new VRAYOVERRIDEMTL and name it lacquer switch.
In the VRAYOVERRIDEMTL, drag the material ceramic to the BASE MATERIAL channel. To achieve a stronger shading around the switch, overwrite the natural color bleeding during the calculation of indirect light with the GI material. For a light material, the color bleeding would also be very light. To achieve a darker effect, create a new VRAYMTL in the GI channel and change only the DIFFUSE COLOR to black. Now the material reflects dark photons.
FIG 3.43 Lacquer Switch,
VRayOverrideMtl, Overview.
106
Bathroom
FIG 3.44 Lacquer Switch,
VRayOverrideMtl, GI Material Parameters.
•
Assign the material to the layer 00 switch.
Rubber The rubber material will be needed only when we create the next material. For the sake of completeness, we are listing it separately nonetheless. • •
Create a new VRAYMTL rubber. DIFFUSE CHANNEL
Change only the color of the DIFFUSE •
CHANNEL,
to a gray with a setting of 30.
Shellac material
We use the SHELLAC material again to help us achieve a soft shine. Click on the VRAYMTL channel next to the material name. Choose a SHELLAC material and KEEP OLD MATERIAL AS SUB-MATERIAL. Change the SHELLAC COLOR BLEND to 100. Go to the SHELLAC material channel. Set black as diffuse color. In the SPECULAR HIGHLIGHTS group, increase the value for SPECULAR LEVEL to 65 and GLOSSINESS to 30.
FIG 3.45 Rubber, Shellac Material,
Overview.
107
Architectural Rendering with 3ds Max and V-Ray
FIG 3.46 Rubber, Shellac Material,
Standard Material Parameters.
FIG 3.47 Rubber, Material Editor
View.
Multimaterial, Showerhead For texturing the showerhead, we will use a multimaterial. That way we can assign different materials to an object by using multiple material IDs. • •
First we need a new material. Create a new MULTI/SUB-OBJECT material and name it multi-material showerhead. Multi/Sub-Object
Reduce the channels by clicking on the SET NUMBER button. Enter 2 for the number. Drag the chrome material to the first channel and the previously created rubber material to the second channel. Enter the names accordingly. FIG 3.48 Multimaterial Showerhead,
Multi/Sub Object Material, Overview.
108
Bathroom
FIG 3.49 Multimaterial Showerhead,
Material Editor View.
•
Assign material
Assign the material to the objects shower head and shower faucet. The rubber material is assigned to the handles, the chrome material to the rest. FIG 3.50 Multimaterial Showerhead,
Selecting Objects.
•
Determine ID
Select the objects shower head and shower faucet in the scene. Isolate the selection. Select the object shower head. In the MODIFY tab of the COMMAND PANEL, activate the selection option POLYGON for EDITABLE POLY. Select all objects. In the POLYGON: MATERIAL-IDS rollout, enter the material ID 1 in the SET ID box. Use the rectangular selection tool to select only the polygons of the top cylinder. Set the material ID for this selection to 2. Repeat this process with the object shower faucet. Again, enter the material ID 2 for only the polygons of the top cylinder. 109
Architectural Rendering with 3ds Max and V-Ray
FIG 3.51 Shower Head, Assign
Material ID 1 to all Polygons.
FIG 3.52 Shower Faucet, Assign
Material ID 2 to Selected Polygons.
110
Bathroom Frosted Glass The last material in our scene is a shimmering green frosted glass. We will assign it to the hardly noticeable space within the wall recess. While fine-tuning, we will place a plane light beneath the frosted glass to accentuate the picture. • •
Create a new VRAYMTL frosted glass. DIFFUSE CHANNEL
Change the RGB value to 195, 200, 195 (a light green). •
Reflection channel
For the reflection intensity, set a gray of 185. To achieve an unsharp reflection, reduce REFL. GLOSSINESS to 0.9 and increase SUBDIVS to 20. Check the FRESNEL REFLECTIONS checkbox. FIG 3.53 Frosted Glass, Reflection.
•
REFRACTION
CHANNEL
Change the REFRACT gray value to 180. Reduce GLOSSINESS to 0.4 and set SUBDIVS to 20. Set the FOG COLOR to RGB 170, 195, 180 to add color to the frosted glass. Reduce FOG MULTIPLIER to 0.01. Check the AFFECT SHADOWS checkbox. FIG 3.54 Frosted Glass, Refraction.
111
Architectural Rendering with 3ds Max and V-Ray
•
Assign the material to the layer 00 frostedglass.
FIG 3.55 Frosted Glass, Material
Editor View.
All objects are now textured. If you have enough time, try rendering the scene at a higher resolution with better render settings. In the IRRADIANCE MAP, leave the PRESET at LOW. With a higher resolution, adapt the LIGHT CACHE value for SUBDIVS. You should enter a setting that corresponds to your resolution, for example, 1500 for a resolution of 1500 × 1500 pixels. You can achieve finer details by increasing the MIN. RATE and MAX. RATE values in the ADAPTIVE SUBDIVISION IMAGE SAMPLER. The values should always be three to four numbers apart to avoid unnecessary subdividing of image areas that do not require fine subdivision during sampling, which would increase the rendering time without increasing quality. Try entering the values 1 and 5.
Fine-Tuning You will notice that the scene is still rather dark. We need to increase the intensity of the plane lights. To add an extra accent, we’ll place another light under the frosted glass, angled upwards. This will illuminate the recess in the wall. •
ceiling light and side light
Increase the light intensity by increasing the MULTIPLIER for the ceiling light to 10 and the side light to 5. •
light recess
In the TOP VIEWPORT, create a new VRAYLIGHT. Name it light recess. Set TYPE to PLANE. For SIZE, enter 7.0 cm for HALF-LENGTH and 175 cm for HALF-WIDTH. Set the light COLOR to RGB 150, 200, 170. The light intensity is again determined by the MULTIPLIER setting; choose 3.0. Position the light in the x-/y-direction so that it is centered in relation to the object frostedglass recess. Move it in the z-direction so that it is underneath that object. 112
Bathroom
FIG 3.56 Light Recess, Positioning.
FIG 3.57 Light Recess, Parameters.
Final Render Settings V-Ray Open the RENDER SETUP dialog box and go to the V-RAY tab. The following bullet points each relate to the relevant rollout. •
V-Ray:: Image sampler (antialiasing)
Set TYPE to ADAPTIVE DMC and choose BLACKMAN as ANTIALIASING
FILTER.
113
Architectural Rendering with 3ds Max and V-Ray
FIG 3.58 Render Setup, V Ray:: Image Sampler (Antialiasing).
•
V-Ray:: Adaptive DMC image sampler
Set
MIN. SUBDIVS
to 4 and
MAX. SUBDIVS
to 10.
FIG 3.59 Render Setup, V Ray:: Adaptive DMC Image Sampler.
•
V-Ray:: Color mapping
Activate the option CLAMP OUTPUT. Image areas that are too dark or too light and cannot be represented are clamped—or cut off, so to speak—at the values that can just about still be represented. A calculated gray with a lightness of over 255 will therefore be represented as white, with a lightness of 255. 114
Bathroom
FIG 3.60 Render Setup, V Ray::
Color Mapping.
Indirect Illumination Go to the INDIRECT ILLUMINATION tab. •
V-Ray:: Indirect Illumination (GI)
For PRIMARY BOUNCES, choose IRRADIANCE LIGHT CACHE as before. •
MAP,
and for SECONDARY BOUNCES choose
V-Ray:: Irradiance map
Set CURRENT PRESET to MEDIUM. For BASIC 60 and INTERP. SAMPLES to 30.
PARAMETERS,
increase the HSPH. SUBDIVS to
FIG 3.61 Render Setup, V Ray::
Irradiance Map.
115
Architectural Rendering with 3ds Max and V-Ray
•
V-Ray:: Light cache
Change the SUBDIVS value to 2500 and the SAMPLE option USE LIGHT CACHE FOR GLOSSY RAYS.
SIZE
to 0.01. Activate the
FIG 3.62 Render Setup, V Ray::
Light Cache.
Now render the picture with a resolution of 2500 × 2500 pixels. Your computer will be busy for a while, so you can lean back, relax, and proudly contemplate the completion of your second workshop.
116
CHAPTER 4
Bedroom at Night In this chapter, we are going to create a bedroom—perhaps in a luxury penthouse above the city rooftops. The foreground of the picture will be dominated by the bedroom itself, with a Japanese screen and a generously sized bed. The bedroom has dark wood parquet flooring. A wall of glass blocks separates the bedroom from the bathroom. With its minimalist interior and stylish small tiles, it completes the elegant overall atmosphere. The window spans the whole length of the room and offers a great view of the city skyline.
Preparing the Scene For this scene, we are again working with a combination of the AutoCAD model and loading furniture constructed in 3ds Max. The absolute highlight of the scene is undoubtedly the wall of glass blocks that separates the bedroom and the bathroom. The complicated geometry and the material glass mean a longer render time. This time we will use IES profiles for our light sources.
Architectural Rendering with 3ds Max and V-Ray. DOI: 10.1016/B978-0-240-81477-3.00008-9 Copyright © 2010 by Elsevier Inc. All rights reserved.
117
Architectural Rendering with 3ds Max and V-Ray FIG 4.1 Bedroom.
Open File Open the file ch 04 01.max from the book CD (chapters\ch 04). The file has no contents yet, as we’ve entered only basic settings for the V-Ray render settings.
Link AutoCAD Files Link the AutoCAD file via the 3DS/REFERENCES/FILE LINK MANAGER. In the dialog box, go to the ATTACH tab and select the file ch 04 01.dwg from the dwg subdirectory. For PRESET, choose the ACAD profile created in Chapter 2. The AutoCAD file is linked and new layers are created corresponding to the AutoCAD layers. Have a closer look at these.
FIG 4.2 File Link Manager.
118
Bedroom at Night FIG 4.3 Scene after Linking.
Load Furniture Load the furniture via 3DS/IMPORT/MERGE. Select the file ch 04 mg.max from the merge subdirectory. In the MERGE FILE dialog box, select all objects and confirm the selection. The scene is now filled with furniture. Let’s have a closer look at these items as well. FIG 4.4 Merge Dialog Box, ch 04 mg.max.
119
Architectural Rendering with 3ds Max and V-Ray FIG 4.5 Perspective Viewport, Scene after Importing Furniture.
Assign Test Material The imported objects have already been assigned the test material that you have already encountered in previous chapters. Use the eyedropper to drag this material to an empty slot in the MATERIAL EDITOR. Select all layers in the LAYER MANAGER and assign the test material. Assign the attribute invisible to the layers 01 window glass and 01 wall glassblocks glass, also in the LAYER MANAGER. FIG 4.6 Layer Manager, Hide Glass
Layers.
Open the RENDER SETUP dialog box. In the V-RAY tab, go to the V-RAY:: ENVIRONMENT rollout. Activate the checkbox for GI ENVIRONMENT (SKYLIGHT) OVERRIDE and choose a blue color in the swatch, such as RGB 0, 5, 10. Make sure that the V-RAY:: GLOBAL SWITCHES rollout has its DEFAULT LIGHTS set to OFF WITH GI. 120
Bedroom at Night FIG 4.7 Render Setup, V Ray:: Environment.
FIG 4.8 Render Setup, V Ray:: Global Switches.
Camera Setup Create a new camera (TARGET CAMERA) in the TOP VIEWPORT. Move the camera to the bottom-left corner of the bedroom and the target just below the separating wall, to about the center of the bathtub. For an effective perspective, set the camera to a height of about 60 cm and the target to about 110 cm. Set a small lens of about 20 mm, so that you can display the room in its entirety. 121
Architectural Rendering with 3ds Max and V-Ray FIG 4.9 Camera Setup, Positioning.
We decided to roll the camera slightly to make this scene a little more dynamic. Select the camera and open the dialog box MOVE TRANSFORM TYPE-IN by pressing F12. Enter –16 for ROLL. In the RENDER SETUP dialog box, choose an attractive aspect ratio of 2:1 with a resolution of 1000 × 500 pixels. Compare your camera position with Figure 4.9. Render the scene in the CAMERA VIEWPORT to get a first impression. At the moment, the scene is still submerged in very dark blue.
FIG 4.10 Move Transform Type In
Dialog Box, Roll Camera.
Basic Illumination of Scene Before assigning materials to the scene, we will set up the desired light sources. That way we can assess and test the light distribution at a low render time. We will use a VRAYIES light, a light source with a photometric profile. Practically all major lighting manufacturers now offer such IES 122
Bedroom at Night profiles. They contain data about the light intensity, emission characteristics, and color temperature of light.
Ceiling Lights, Bathroom In the TOP VIEWPORT, create a new VRAYIES light (COMMAND PANEL/CREATE/LIGHTS/ V-RAY/VRAYIES). Position it in one of the ceiling lights in the bathroom. Note that the light is directional—it has a target. The target should be situated directly underneath the light. In the LEFT VIEWPORT, move the light to under the ceiling light and the target to the floor. Name the light source light bathroom and go to the light characteristics (COMMAND PANEL/MODIFY). FIG 4.11 Setting Up Ceiling Lights
in Bathroom, Overview.
Click on the NONE button and select the file bathroom.ies from the ies subdirectory. FIG 4.12 Open Dialog Box,
Open IES File.
123
Architectural Rendering with 3ds Max and V-Ray The parameter SHADOW BIAS lets you specify how far the shadow is removed from an object. Enter a setting of 0.01 cm, which is very low. Improve the shadow calculation interpolation by increasing the SHAPE SUBDIVS setting to 32. Then change the COLOR MODE to TEMPERATURE. The COLOR TEMPERATURE should be set to 6500.00 (Kelvin), which corresponds to a cool white. Leave the light intensity, determined by the POWER parameter, at 1575.00.
Ceiling Lights, Bedroom For the bedroom, create VRAYIES light sources underneath the ceiling lights. Name them light bedroom. Proceed in the same way as for the bathroom, but this time move the target of the light to the right in the TOP VIEWPORT, to about the level of the bed’s headboard. Use the file bedroom.ies. For COLOR MODE, set TEMPERATURE again. Change the COLOR TEMPERATURE to a warmer tone: 4500.00. The POWER should be set to 6600. That should be sufficient as light setup for now; we may have to fine-tune the settings after assigning the materials. Now you can render the scene with the preset V-Ray settings. For the light calculation, we set IRRADIANCE MAP and LIGHT CACHE to low values.
FIG 4.13 Setting Up Ceiling Lights in Bedroom, Overview.
124
Bedroom at Night
Texture the Scene Now it’s time to create the materials for the scene again and then assign them to the objects. For this scene, this process will be more involved, as there are more textures being used than in the previous scenes.
Plaster, White This is the standard material for ceiling and wall surfaces, which are meant to be less noticeable. We will use a VRAYDIRT map and a discreet plaster texture in the BUMP CHANNEL. • •
Create a new VRAYMTL plaster white. DIFFUSE CHANNEL
Place a VRAYDIRT map with a large RADIUS of 50 cm into the DIFFUSE CHANNEL. Set FALLOFF to 1.5. Increase SUBDIVS to 32 to improve resolution of shadows. Choose a gray of 205 for UNOCCLUDED COLOR and 5 for OCCLUDED COLOR.
FIG 4.14 Plaster White, VRayDirt
Parameters.
•
BUMP
CHANNEL
Place a BITMAP into the BUMP CHANNEL. Select the picture plaster b.jpg from the textures subdirectory. Switch USE REAL-WORLD SCALE on and enter 50 cm for HEIGHT and WIDTH of the BITMAP. Reduce the BUMP MAP INTENSITY to 15, which is enough to represent a hint of plaster texture. 125
Architectural Rendering with 3ds Max and V-Ray FIG 4.15 Bump Channel, Bitmap
Parameters.
•
UVW map
In the LAYER MANAGER, select the following layers and assign the UVW modifier: • • • •
01 01 01 01
MAP
ceiling ceiling bathroom wall glassblocks joint wall interior
Set the mapping to BOX and activate the REAL-WORLD MAP SIZE checkbox. FIG 4.16 UVW Mapping
Parameters.
126
Bedroom at Night
•
Assign the material to the layers listed previously.
Parquet, Bedroom The bedroom floor is made from dark wood parquet flooring in small sections. The material reflects, depending on the wood texture. • •
Create a VRAYMTL called parquet bedroom in a new slot of the MATERIAL EDITOR. DIFFUSE CHANNEL
In the DIFFUSE CHANNEL, create a VRAYDIRT map with a RADIUS of 50 cm, FALLOFF set to 1.5, and SUBDIVS set to 16. In the UNOCCLUDED COLOR channel, select the image floor parquet d.jpg as the BITMAP. Set WIDTH to 450 cm and HEIGHT to 200 cm. FIG 4.17 Parquet Bedroom,
VRayDirt Parameters.
FIG 4.18 Parquet Bedroom,
VRayDirt, Bitmap Parameters.
& Tip: Activate the SHOW STANDARD MAPS IN VIEWPORT option so that you can assess the assigned material in the VIEWPORT later. 127
Architectural Rendering with 3ds Max and V-Ray •
REFLECTION
CHANNEL
Right-click on the UNOCCLUDED COLOR channel and use the command COPY to copy the BITMAP to the clipboard. By right-clicking on the REFLECTION CHANNEL and using the command PASTE (COPY), you insert a copy of the map. Any changes made here do not affect the original map. Replace the picture of the Reflection BITMAP with the image floor parquet s.jpg. You do not need to change the dimensions, because the image area has exactly the same size. Reduce the BLUR to 0.1 to sharpen the image. The reflective sections of the material are then separated more precisely from the areas that reflect little or not at all. FIG 4.19 Parquet Bedroom,
Reflection Channel, Bitmap Parameters.
As the reflection is still rather strong, you can darken the light areas of the picture in order to reduce the reflection. Go to the OUTPUT rollout of the BITMAP. Activate the ENABLE COLOR MAP checkbox. In the curve editor, drag the white point on the right down to 0.15. FIG 4.20 Color Map, Adapted
Curve.
128
Bedroom at Night •
BUMP
CHANNEL
Insert a copy of the BITMAP from the VRAYDIRT map in the BUMP CHANNEL as well. Replace the image here with the file floor parquet b.jpg. We want the parquet to have a very slight, soft relief, so increase BLUR to 1.5. Reduce the bump map intensity to 10. FIG 4.21 Bump Channel, Bitmap
Parameters.
•
UVW map, assign material
Select the layer 01 floor interior and assign the UVW MAP modifier and then the material. FIG 4.22 Parquet Bedroom,
Material Editor View.
Color Stripes We want the wall behind the bed to look cheerful and refreshing, so we will cover it with a colorful striped wallpaper. • •
Create a new VRAYMTL called colorstripes. DIFFUSE CHANNEL 129
Architectural Rendering with 3ds Max and V-Ray In the DIFFUSE CHANNEL, create a VRAYDIRT map again. Use the same parameters as for the previously created materials. Select the image colorstripes d.jpg in the textures subdirectory for the BITMAP, which you can assign to the UNOCCLUDED COLOR channel. In the BITMAP, activate USE REAL-WORLD SCALE with the dimensions 500 cm for WIDTH and 250 cm for HEIGHT. Make the map visible in the VIEWPORT by activating the option SHOW STANDARD MAPS IN VIEWPORT. FIG 4.23 Colorstripes, VRayDirt
Parameters.
FIG 4.24 Colorstripes, VRayDirt,
Bitmap Parameters.
•
UVW map, assign material
In the LAYER MANAGER, select the layer 01 wall interior bed and again assign the UVW MAP modifier. The MAPPING group should have BOX selected and the REAL-WORLD MAP SIZE checkbox should be activated. Now assign the material to the layers. 130
Bedroom at Night FIG 4.25 Colorstripes, Material
Editor View.
Tiles, Small We chose elegant, small format tiles for the bathroom walls and floor. The dark shade of brown varies slightly, creating an interesting but unobtrusive pattern. We use a TILES map that allows us to create joint structures of any size. • •
Name the new VRAYMTL tiles small. DIFFUSE CHANNEL FIG 4.26 Tiles Small, Overview.
Create a TILES map in the DIFFUSE CHANNEL. We are working with real-world sizes again to assess the texture more accurately, so activate USE REAL-WORLD SCALE. Set the texture WIDTH and HEIGHT to 100 cm. When we create the joint structure, the parameters always relate to this dimension of one square meter. Reduce the BLUR to 0.1. This makes the texture sharper and is especially important with small joints, so that you can still see them. Set the STANDARD CONTROLS rollout to STACK BOND; the tiles are simply stacked in rows without offset. 131
Architectural Rendering with 3ds Max and V-Ray FIG 4.27 Diffuse Channel, Tiles,
Coordinates.
Go to the ADVANCED CONTROLS rollout and to the TILES SETUP group. Here you determine what the tiles will look like. Set the TEXTURE swatch to a dark shade of brown with RGB 3, 2, 1. HORIZ. COUNT and VERT. COUNT specify how many tiles are in the viewed section. Enter a setting of 30. At our texture dimension of one square meter, this means a tile edge length of about 3.3 cm. Increase the COLOR VARIANCE to achieve color variation. For our example, enter 0.2. Adapt the joints with the GROUT SETUP parameters. Enter a gray of 90 in the swatch. Set HORIZONTAL GAP and VERTICAL GAP to 0.07. This value determines the tile joint width. FIG 4.28 Diffuse Channel, Tiles
Parameters.
•
REFLECTION
CHANNEL
Copy the TILES map to the REFLECTION CHANNEL. We want only the tiles to reflect, of course (not the joints between them), so you need to change the color settings. In the TILES map, set the TILES RGB to a gray of 5 for a slight reflection. Set the COLOR VARIANCE to 0.0 once again. The reflection is the same on all tiles. Set the GROUT swatch to black. 132
Bedroom at Night FIG 4.29 Reflection Channel,
Tiles Parameters.
Back in the Reflection settings, remove the link between HILIGHT GLOSSINESS and REFL. GLOSSINESS and increase SUBDIVS to 16. Paste a copy of the modified TILES map into the HILIGHT GLOSSINESS channel. In the TILES map, change the TILES gray to 195 to add a soft highlight to the material.
Tip: Increase the BLUR to 1.0. A transition that is too hard can result in undesirable reflection effects.
FIG 4.30 Highlight Glossiness
Channel, Tiles Parameters.
133
Architectural Rendering with 3ds Max and V-Ray •
BUMP
CHANNEL
Paste the copy of the TILES map from the REFLECTION CHANNEL into the Bump map as well. Here, set the TILES swatch to white. The tiles are high in relief and the joints are low, so black in the map. An intensity of 10 is sufficient for the BUMP CHANNEL. FIG 4.31 Bump Channel, Tiles
Parameters.
FIG 4.32 Tiles Small, Channels
Overview.
•
UVW map, assign material
Select the layers 01 wall interior bathroom and 01 floor bathroom. Apply the UVW MAP modifier as before and assign the material. 134
Bedroom at Night FIG 4.33 Tiles Small, Material
Editor View.
Wood, Window Frame The window frames are dark brown wood. It reflects slightly and the SHELLAC material provides a soft highlight for the rounded edges. • •
Create a new VRAYMTL wood windowframes. DIFFUSE CHANNEL
Place a VRAYDIRT map into the DIFFUSE CHANNEL. Enter settings of 20 cm for RADIUS, 1.0 for FALLOFF and 16 for SUBDIVS. Choose a BITMAP in the UNOCCLUDED COLOR channel and open the file wood window d.jpg. Set LENGTH and WIDTH of the texture to 50 cm. We want to see a nicer section of the image texture on the window frame. Set the OFFSET WIDTH to 25 cm. The USE REAL-WORLD SCALE checkbox must be activated.
FIG 4.34 Wood Windowframe,
VRayDirt Parameters.
135
Architectural Rendering with 3ds Max and V-Ray FIG 4.35 Wood Windowframe,
VRayDirt, Bitmap Parameters.
•
REFLECTION
CHANNEL
Set the reflection intensity to 30. The material should have a soft reflection, so set REFL. GLOSSINESS to 0.9 and SUBDIVS to 32 to avoid graininess. Remove the link between HIGHLIGHT GLOSSINESS and REFLECTION GLOSSINESS; we will create a highlight by overlaying a SHELLAC material. FIG 4.36 Wood Windowframe,
Reflection.
•
Shellac material
Create a SHELLAC material with the usual material as the BASE MATERIAL. Set SHELLAC COLOR BLEND to 100. Change the diffuse color to black. In the BLINN BASIC PARAMETERS rollout, paste a copy of the BITMAP from the DIFFUSE CHANNEL. You must first modify it slightly. Increase the RGB LEVEL in the OUTPUT rollout to 20. With this lightness multiplier, the image becomes lighter and the reflection therefore stronger. Back in the SHELLAC material, adapt the 136
Bedroom at Night parameters in the SPECULAR HIGHLIGHTS group. Set the SPECULAR LEVEL (the intensity) to 80. Enter 35 for GLOSSINESS and 0.5 for SOFTEN.
FIG 4.37 Shellac Material, Overview.
FIG 4.38 Shellac Material, Specular
Channel, Bitmap Output Parameters.
FIG 4.39 Shellac Material
Parameters.
137
Architectural Rendering with 3ds Max and V-Ray
•
UVW map, assign material
Before assigning the material to the layer 01 window frame, apply the UVW MAP modifier to this layer. FIG 4.40 Wood Windowframe,
Material Editor View.
Wood, Light Apart from the frame of the room divider in the foreground, the bed frame and bedside tables are going to be made from wood with a white finish. We can simply copy the material we just created; then we just need to make a change in the DIFFUSE CHANNEL. • •
Copy the material wood windowframe to an empty slot in the MATERIAL EDITOR and rename it wood light. DIFFUSE CHANNEL
In the DIFFUSE
CHANNEL,
change the VRAYDIRT map. Delete the BITMAP from the channel by right-clicking on it and choosing CLEAR. Enter a gray value of 230 in the UNOCCLUDED COLOR swatch. UNOCCLUDED COLOR
FIG 4.41 Wood Light, VRayDirt
Parameters.
138
Bedroom at Night •
UVW Map, assign material
Select the layer 01 wood light and apply the UVW MAP modifier. Then assign the new material to the layer. FIG 4.42 Wood Light, Material
Editor View.
Paper, Screen The screen is covered with translucent paper. It is not transparent, but does let light shine through, and has a rough texture. • •
Create a new VRAYMTL called paper screen. DIFFUSE CHANNEL
As the BITMAP in the DIFFUSE CHANNEL, select the file paper d.jpg from the textures subdirectory. Set WIDTH to 30 cm and HEIGHT to 20 cm. Activate the USE REAL-WORLD SCALE, as usual. FIG 4.43 Paper Screen, Diffuse
Channel, Bitmap Coordinates.
139
Architectural Rendering with 3ds Max and V-Ray In this case, you need to crop the image slightly to avoid texture tiling. In the BITMAP PARAMETERS rollout within the CROPPING/PLACEMENT group, click on the VIEW IMAGE button. Crop the image by about 0.15 on each side. Compare with Figure 4.44. Close the dialog box and check APPLY.
FIG 4.44 Crop Image, Paper D.jpg.
FIG 4.45 Paper Screen, Diffuse
Channel, Bitmap Parameters.
140
Bedroom at Night
•
REFRACTION
CHANNEL
Set a gray of 50 and enter 1.0 for IOR. The light is not refracted, unlike with glass.
FIG 4.46 Paper Screen, Refraction.
•
BUMP
CHANNEL
Copy the BITMAP from the DIFFUSE CHANNEL into the BUMP the intensity to 5. A slight relief structure is enough. •
CHANNEL
and reduce
UVW Map, assign material
In the LAYER MANAGER, select the layer 01 screen paper. First apply the UVW MAP modifier and then assign the material.
Fabric The duvet (comforter), mattress, and towel in the bathroom will be assigned a very light gray fabric as the material. It has a soft sheen, which we will achieve with a SHELLAC material. • •
Name the new VRAYMTL fabric. DIFFUSE CHANNEL
In the DIFFUSE •
CHANNEL,
set a light gray of 175.
Shellac material
On top of the fabric material, create a SHELLAC material with a SHELLAC COLOR BLEND of 100. Set the Diffuse swatch for the SHELLAC material to black. Change the SPECULAR LEVEL to 65 and GLOSSINESS to 5.
141
Architectural Rendering with 3ds Max and V-Ray FIG 4.47 Fabric, Shellac Material,
Overview.
FIG 4.48 Fabric, Shellac Material
Parameters.
•
FIG 4.49 Fabric, Material Editor
View.
142
Assign the material to the layer 01 fabric. A UVW MAP is not required.
Bedroom at Night Fabric, Bathmat The bathmat will have a simple VRAYMTL with a VRAYDIRT map to create a clear contact shadow. A texture on the bathmat would not be noticed, due to the small size in the picture. A copy of the test material that has the same qualities is enough. Create a copy of the test material and rename it fabric bathmat. Assign the material to the layer 01 bathmat. FIG 4.50 Fabric Bathmat, VRayDirt
Parameters.
Ceramic The ceramic material we use has a white surface. We want the reflection on the material to be view-dependent and to increase in bend. • •
Create a new VRAYMTL and name it ceramic. DIFFUSE CHANNEL Enter a gray of 230. FIG 4.51 Ceramic, Overview.
143
Architectural Rendering with 3ds Max and V-Ray
•
REFLECTION
CHANNEL
Create a FALLOFF map in the REFLECTION CHANNEL. You need to adjust the curve in the MIX CURVE rollout: right-click on the left point and choose BEZIER-CORNER. Now drag the control point to the bottom-right corner. Now hardly any reflection is visible when the object is viewed from the front, but the reflection increases towards the edges of the sphere in the MATERIAL EDITOR. Compare your settings with Figure 4.53. FIG 4.52 Reflection Channel, Falloff.
FIG 4.53 Falloff, Mix Curve,
Adapted Curve.
• FIG 4.54 Ceramic, Material Editor
View.
144
Assign the material to the layer 01 ceramic.
Bedroom at Night Chrome The faucet in the bathroom, the bathtub feet, and the handles on the bedside tables are meant to be chrome. We overlay the previously encountered chrome material with a SHELLAC material to create a white sheen along the edges. • •
Create a new VRAYMTL chrome. DIFFUSE CHANNEL
Change the color swatch to black.
FIG 4.55 Chrome, Overview and
Reflection.
•
REFLECTION
CHANNEL
Create a FALLOFF map in the REFLECTION point upwards to about 0.6.
CHANNEL
again. This time, drag the left
FIG 4.56 Reflection Channel, Falloff.
145
Architectural Rendering with 3ds Max and V-Ray FIG 4.57 Falloff, Mix Curve,
Adapted Curve.
•
Shellac material
Create the SHELLAC material above the VRAYMTL again and change the SHELLAC COLOR BLEND to 100. In the SHADER BASIC PARAMETERS rollout, choose ANISOTROPIC. The following parameters relate to the ANISOTROPIC BASIC PARAMETERS rollout. Change the color in the Diffuse swatch to black. Set SPECULAR LEVEL to 60, GLOSSINESS to 15 and ANISOTROPY to 90. FIG 4.58 Chrome, Shellac Material,
Overview.
FIG 4.59 Shellac Material
Parameters.
146
Bedroom at Night FIG 4.60 Chrome, Material Editor
View.
•
Select the layer 01 chrome and assign the material.
Mirror Glass The mirror glass is also a simple VRAYMTL and is completely reflective. • •
Name the new VRAYMTL mirrorglass. Set the color swatch of the REFLECTION CHANNEL to white and assign the material to the layer 01 mirror. The Diffuse color is irrelevant, because the material is completely reflective. FIG 4.61 Mirrorglass, Reflection.
FIG 4.62 Mirrorglass, Material Editor
View.
147
Architectural Rendering with 3ds Max and V-Ray Lights, Ceiling The illuminant is embedded within the chromed frame of the ceiling lamps. So far, we have only set up light sources—their origin has not been determined. We will use the VRAYLIGHTMTL, a luminous material, to represent the light sources. We assign two materials to one object, so we will use a multimaterial. We have already assigned the relevant material IDs to the objects. •
Create a new MULTI/SUB-OBJECT material and name it lights ceiling.
Reduce the number of submaterials to two. Drag and drop a chrome material into the top material slot. In the bottom slot, create a new VRAYLIGHTMTL. Leave the default settings in place. FIG 4.63 Lights Ceiling, Multi/Sub
Object Material, Overview.
FIG 4.64 Lights Ceiling,
VRayLightMtl Parameters.
• FIG 4.65 Lights Ceiling, Material
Editor View.
148
Assign the material to the layer 01 lights ceiling.
Bedroom at Night Glass Next, we will create the glass for the window panes. Switch the visibility of the layer 01 window glass in the LAYER MANAGER back on. • •
Create a new VRAYMTL glass. DIFFUSE CHANNEL
Set a black color in the DIFFUSE
CHANNEL.
FIG 4.66 Glass, Reflection.
•
REFLECTION
CHANNEL
Set the color swatch to white. FIG 4.67 Glass, Refraction.
149
Architectural Rendering with 3ds Max and V-Ray •
REFRACTION
CHANNEL
For a complete refraction, enter white. Select the AFFECT SHADOWS checkbox and select ALL CHANNELS in the AFFECT CHANNELS menu. •
Assign the glass to the layer 01 window glass.
FIG 4.68 Glass, Material Editor View.
Glass, Glass Blocks Last but not least, we will design the glass blocks. You again need to switch on visibility for the layer 01 wall glassblocks glass. The glass is supposed to have a light-blue tint, and we need to increase the number of reflections and refractions to be calculated. We will base this material on the previously created glass. • •
Create a copy of the glass material in an empty slot. Name the new material glass glassblocks. REFLECTION CHANNEL
Set a gray of 125 and increase MAX DEPTH to 10. FIG 4.69 Glass Glassblocks,
Reflection.
150
Bedroom at Night •
REFRACTION
CHANNEL
Reduce the IOR value to 1.55 to reduce the light refraction slightly. If the refraction is too high, you cannot see anything through the glass wall. Increase MAX DEPTH to 10 again. For FOG COLOR, set the swatch to RGB 195, 240, 250 and reduce the FOG MULTIPLIER to 0.05. FIG 4.70 Glass Glassblocks,
Refraction.
•
Assign the material to the layer 01 wall glassblocks glass.
FIG 4.71 Glass Glassblocks, Material
Editor View.
Fine-Tuning Now we have assigned all the materials and you can try rendering the scene at a higher resolution, such as 1500 × 750 pixels. Change the following settings in the RENDER SETUP dialog box: set MIN. RATE and MAX. RATE in the ADAPTIVE SUDIVISION IMAGE SAMPLER to 0 and 4. This makes the resolution finer and brings out more details. In the LIGHT CACHE, increase SUBDIVS to 1500. Generally, this setting should correspond to the higher resolution value, in this case 1500 pixels. Now render the scene. If you look at your picture afterward, you will notice that the light in the bathroom is still rather dim. To fix this, we will make two changes. 151
Architectural Rendering with 3ds Max and V-Ray Light, Mirror We want to accentuate the bathroom with a plane light in the mirror. In the TOP VIEWPORT, create a new VRAYLIGHT and name it light mirror. Place it approximately at center of the object mirror frame. Go to the light source settings, and set TYPE to PLANE; we want to create a plane light. Set SIZE to a HALF-LENGTH of 75 cm and HALF-WIDTH of 2 cm. Move the light so that it is inside the mirror frame and directed at the floor.
FIG 4.72 Light Mirror, Positioning.
Compare with Figure 4.72. To make sure that you are working in the same light intensity unit (Lumen) as the IES light sources, set UNITS in the INTENSITY group to Luminous power (lm). Set MULTIPLIER to 2500 lumen. Set the COLOR to RGB 240, 250, 250, which is a light blue. Increase the resolution by setting SUBDIVS in the SAMPLING group to 32.
152
Bedroom at Night FIG 4.73 Light Mirror, Parameters.
Adapt Light Sources and Environment •
Adapt light sources
Select one of the light sources, light bathroom, and increase the intensity by setting POWER to 4500. To improve the light source resolution, set SHAPE SUBDIVS to 64. Use the same setting for the light source called light bedroom. •
Adapt environment
To bring a more nocturnal atmosphere into the scene—in other words, some dark-blue light—increase the intensity of the environment illumination. Open the RENDER SETUP dialog box and go to the V-RAY tab, then to the V-RAY:: ENVIRONMENT rollout. Set the MULTIPLIER of the GI ENVIRONMENT (SKYLIGHT) OVERRIDE to 6.0. You can improve the image contrast by lightening the light colors slightly and darkening the dark image areas, such as shadows. Go to the V-RAY:: COLOR MAPPING rollout. Reduce the DARK MULTIPLIER to 0.9 and increase the BRIGHT MULTIPLIER to 1.2.
153
Architectural Rendering with 3ds Max and V-Ray
FIG 4.74 Render Setup, V Ray:: Environment, Color Mapping.
Final Render Settings Open the RENDER SETUP dialog box and go to the V-RAY tab. The following bullet points each relate to the corresponding rollout. •
V-Ray:: Image sampler (antialiasing)
Set TYPE to ADAPTIVE DMC and choose CATMULL-ROM as ANTIALIASING FILTER. The Catmull-Rom filter produces even sharper, more high-contrast results than the BLACKMAN filter does. The edges of objects in particular are clearly sharper. Both filters are popular for architectural visualizations. This advice applies to image production and cannot be applied to animations. You can see an overview of the filters with sample images in the support area of the Chaos Group web site (http://www. chaosgroup.com). •
V-Ray:: Adaptive DMC image sampler
Set the MIN. 154
SUBDIVS
to 4 and the MAX.
SUBDIVS
to 10.
Bedroom at Night FIG 4.75 Render Setup, V Ray::
Image Sampler (Antialiasing).
FIG 4.76 Render Setup, V Ray::
Adaptive DMC Image Sampler.
Indirect Illumination Go to the INDIRECT ILLUMINATION tab. •
V-Ray:: Indirect Illumination (GI)
For PRIMARY BOUNCES, choose IRRADIANCE choose LIGHT CACHE. •
MAP,
and for SECONDARY BOUNCES, this time
V-Ray:: Irradiance map
Set CURRENT PRESET to MEDIUM. For BASIC PARAMETERS, increase the HSPH. SUBDIVS to 80. This means that more rays are emitted during the calculation of the Global Illumination samples, the scene is sampled in more detail, and the quality of the calculated sample is better. With settings of 50 to 100, you usually get a very good result. The number of rays is the square of the value you set here. Increase INTERP. SAMPLES slightly to 30. During the calculation, more samples are averaged. The scene loses some detail, but the appearance is softer and more harmonious. The image is much less likely to become blotchy in dark areas with fewer samples. 155
Architectural Rendering with 3ds Max and V-Ray FIG 4.77 Render Setup, V Ray::
Irradiance Map.
•
V-Ray:: Light cache
Set SUBDIVS to 2500 and SAMPLE SIZE to 0.01. Check the USE checkbox in the Reconstruction parameters group.
LIGHT CACHE FOR GLOSSY
RAYS
FIG 4.78 Render Setup, V Ray::
Light Cache.
Render the image with a resolution of 3000 × 1500 pixels. Meanwhile, luxuriate in the knowledge that you have completed another chapter and created an impressively atmospheric picture.
156
CHAPTER 5
T-Bone House, Exterior This chapter presents an exterior visualization. Two characteristics distinguish it from the other chapters. First, the T-Bone house is a building that actually exists; it was completed by the Architectural Office COAST (Stuttgart, Germany). The visualization is based closely on the original. Second, we are going to use many materials, due to the complexity and realism of the scene. We therefore start the chapter with a model that has already been largely textured. We will create only materials that have qualities that have not been previously explored in detail in this book. The final rendering should feature reflections and a shadow on the façade. A further complication is that we want to be able to see into the interior, so we need to set up light sources within the building as well. This scene also uses an HDR image for indirect illumination and reflections.
Preparing the Scene The model for this scene has again been constructed exclusively in 3ds Max. The wooden slats are present as geometry and do not need to be created via a bump map or displacement map. The same applies for the patio tiles joint
Architectural Rendering with 3ds Max and V-Ray. DOI: 10.1016/B978-0-240-81477-3.00009-0 Copyright © 2010 by Elsevier Inc. All rights reserved.
157
Architectural Rendering with 3ds Max and V-Ray
FIG 5.1 T Bone House.
pattern. We want to focus on exterior and interior harmony and add an interesting emphasis to the façade.
Open File Open the file ch 05 01.max from the book CD (chapters\ch 05). First, familiarize yourself with the scene. As you can see, many objects already have materials assigned to them. FIG 5.2 Scene, Overview.
158
T-Bone House, Exterior
FIG 5.3 Material Editor, Already Assigned Materials.
Also check out the LAYER MANAGER; there are a lot more layers than in the other scenes. We hid the layer 00 shadow trees; we will get back to it later. All materials are again assigned to all objects of a layer. Open the RENDER SETUP dialog box. We have already entered some V-Ray settings for you to use. Again, we used a combination of IRRADIANCE MAP and LIGHT CACHE.
FIG 5.4 Layer Manager.
159
Architectural Rendering with 3ds Max and V-Ray Camera Setup Your first action is setting up a camera. The angle from one corner of the yard diagonally towards the house offers an interesting view. Position a new TARGET CAMERA in the TOP VIEWPORT, at about a quarter of the width of the yard and close to the wall. Move the camera’s target towards the bottom of the staircase. Go to the CAMERA VIEWPORT. Move the camera in the z-direction until is at about the same height as a standing adult. Set an absolute height of −110 cm. Now drag the camera target upward as well. Make sure that the ratio of visible ground and air above the building is balanced. We chose an aspect ratio of 3:2 with a lens of 24 mm and a resolution of 640 × 480 pixels. FIG 5.5 Camera Setup.
Create Sunlight Initially, we will set up only one light: the sunlight. This time we are using a simple direct standard light with one target, a TARGET DIRECT LIGHT. Its advantage is that it can be easily controlled with few settings. It also works well in combination with a diffuse HDRI illumination, which we will add later. Create the TARGET DIRECT LIGHT in the TOP VIEWPORT (COMMAND PANEL/CREATE/LIGHTS/ STANDARD). Position the light to the right and above the model and the target to about the center of the house. The height of the light source should be similar to that in Figure 5.6. Name the light source sunlight. Enter the following settings for the light: the SHADOWS rollout should be set 160
T-Bone House, Exterior to VRAYSHADOW and the INTENSITY/COLOR/ATTUNATION rollout should have the MULTIPLIER for light intensity set to 1.0. In the color swatch next to it, enter the RGB values 250, 240, 220 for a natural light color. Set the DIRECTIONAL PARAMETERS rollout to CIRCLE to make the light source circular. The parameters HOTSPOT/BEAM and FALLOFF/FIELD influence the spread of the light. We do not want a falloff of light intensity, so set both parameters to 3000 cm. In any case, the light source diameter should be larger than the model.
FIG 5.6 Create Sunlight.
FIG 5.7 Sunlight, Parameters.
161
Architectural Rendering with 3ds Max and V-Ray Go to the VRAYSHADOWS PARAMS rollout. The checkboxes for TRANSPARENT SHADOWS and AREA SHADOW should be activated. To make the sun look realistic, select the option SPHERE. The values U, V, W determine the SIZE of the SPHERE. Set each of them to 10 cm for a sphere with a diameter of 10 cm. The higher the values, the softer the shadow edges will be.
FIG 5.8 Sunlight, Further Parameters.
Activate the indirect illumination in the RENDER SETUP dialog box’s INDIRECT ILLUMINATION tab. Then render the scene. You will notice that the contrast is very high. This should not bother you at this stage.
FIG 5.9 Render Setup, V Ray:: Indirect Illumination (GI).
Tip Activate gamma correction in the V-Ray FRAME BUFFER by clicking on the DISPLAY COLORS IN SRGB SPACE button. 162
T-Bone House, Exterior
FIG 5.10 V Ray Frame Buffer.
Create Additional Materials In the next section, we are going to create the missing materials. Apart from a wood cladding that emphasizes the characteristic T shape of the house, we need materials for window frames and window panes.
Wood, External The external walls on the ground floor and upper floor have naturally weathered wood cladding. In this case, we modeled the slats and joints, which makes the joint structure emerge more clearly than if we had used a bump map. We use the bump map just to emphasize the wood texture. Again, we overlay the wood with a SHELLAC material to achieve a soft sheen. To reduce the sheen in dark, deep areas of the 163
Architectural Rendering with 3ds Max and V-Ray wood texture, we place a grayscale bitmap into the SHELLAC material’s REFLECTION CHANNEL. • Create a new VRAYMTL wood external in the MATERIAL EDITOR. • DIFFUSE CHANNEL Place a VRAYDIRT map into the DIFFUSE CHANNEL. Change the parameters for RADIUS to 10 cm, FALLOFF to 1.0, and SUBDIVS to 16. Select a BITMAP in the UNOCCLUDED COLOR channel. Open the picture wood external.jpg from the textures subdirectory. Make sure that USE SYSTEM DEFAULT GAMMA is selected in the SELECT BITMAP IMAGE FILE dialog box, to satisfy the linear workflow (LWF). In the BITMAP settings, select the USE REAL-WORLD SCALE checkbox and determine the dimensions of the map. Set WIDTH to 150 cm and HEIGHT to 75 cm. Activate the SHOW STANDARD MAPS IN VIEWPORT option in the MATERIAL EDITOR to ensure that the texture is visible on the objects in the VIEWPORT later on. FIG 5.11 Wood External, VRayDirt
Parameters.
FIG 5.12 Wood External, VRayDirt,
Bitmap Parameters.
164
T-Bone House, Exterior
•
BUMP
CHANNEL
Place a BITMAP in the BUMP CHANNEL as well. Choose the picture wood bumpspec.jpg. Proceed as in the DIFFUSE CHANNEL. Set the dimensions of the texture to the same size. For BUMP MAPPING INTENSITY, use the preset value of 30.
FIG 5.13 Wood External, Bump
Channel, Bitmap Parameters.
•
Shellac material
Create a SHELLAC material above your VRAYMTL wood external. Choose the option KEEP OLD MATERIAL AS SUBMATERIAL. Set SHELLAC COLOR BLEND to 100. In the SHELLAC material, change the Diffuse color to black. Set the SPECULAR LEVEL (the intensity) to 50 and GLOSSINESS to 30. The material now shows a slight, soft, but even sheen. To maintain this sheen on only the light parts of wood and not in the grooves of the texture, create a grayscale BITMAP in the SPECULAR channel. This map is analogous to the Bump map—the deeper areas are also dark. So you could just paste a copy of the Bump map. In the MATERIAL EDITOR, you can see the variation.
FIG 5.14 Wood External, Shellac
Material, Overview.
165
Architectural Rendering with 3ds Max and V-Ray
FIG 5.15 Shellac Standard Material,
Parameters.
•
UVW map
In the LAYER MANAGER, select the layers 00 wood slats and 00 wood roof and assign the UVW MAP modifier to the selection in the MODIFY tab of the COMMAND PANEL. Make sure that the MAPPING for the modifier is set to BOX and that the REAL-WORLD MAP SIZE checkbox is activated.
FIG 5.16 Wood External, Material
Editor View.
•
Assign material
Open the LAYER MANAGER. Select the layer 00 wood roof. Assign the material. In the TOP VIEWPORT, activate the SHADING (press F3), and you will notice that the wood texture on the roof is rotated in relation to the external walls. Even if that is not visible from the current camera position, it is best to correct it. Activate the UVW MAPPING modifier GIZMO of the layer 00 wood roof. Rotate it by 90 degrees around the z-axis. 166
T-Bone House, Exterior
FIG 5.17 Layer 00 Wood Roof,
Rotate Gizmo.
Wood, Interior The walls in the interior also feature wood cladding—they optically extend the T. Here we can use the material wood external, with a few changes. The texture dimensions are the same, but the surface inside the house is smooth, varnished, and unweathered. •
As we have not yet assigned a glass material for the basement windows, first make the layer 00 glass basement invisible in the LAYER MANAGER. Now we can see inside.
FIG 5.18 Material Editor, Hide Layer
00 Glass Basement.
167
Architectural Rendering with 3ds Max and V-Ray
• •
Create a copy of the BASE MATERIAL wood external and rename it wood internal. DIFFUSE CHANNEL
In the VRAYDIRT map, in the UNOCCLUDED COLOR channel, replace the BITMAP image with the image wood internal.jpg. Unlike the image of the material wood external, this one has a higher saturation and represents unweathered wood.
FIG 5.19 Wood Internal, VRayDirt
Parameters.
•
BUMP
CHANNEL
Delete the map from the BUMP CHANNEL. The wood inside the house has a varnished, smooth surface, so it does not require a relief texture. •
REFLECTION
CHANNEL
Give the material a high-quality, slightly reflective surface by setting the color swatch to 10.
FIG 5.20 Wood Internal, Reflection.
168
T-Bone House, Exterior
•
UVW map
In the LAYER MANAGER, assign a UVW MAP with BOX Type to the layer 00 wood internal. •
Assign the material to the layer 00 wood internal.
FIG 5.21 Wood Internal, Material
Editor View.
Glass The next step is creating the glazing for the windows on the ground floor and upper floor. We want a light glass that is about 10 percent reflective, partially keeping its own color. This is sensible, because the building edges on the ground floor are defined by the glass and should not disappear. • •
Create a new VRAYMTL glass. DIFFUSE CHANNEL
Set a white color in the DIFFUSE •
REFLECTION
CHANNEL.
CHANNEL
Set the color swatch to a gray; use RGB 25 for each setting. We will not use a Fresnel reflection, as the window panes are not curved and the effect is not really visible. •
REFRACTION
CHANNEL
For a complete refraction, set the color to white. Activate the AFFECT SHADOWS checkbox and set AFFECT CHANNELS to COLOR+ALPHA. This ensures that light passes through the glass and that the transparency is output in the alpha channel. •
Assign the glass to the layer 00 glass. 169
Architectural Rendering with 3ds Max and V-Ray
FIG 5.22 Glass, Reflection.
FIG 5.23 Glass, Refraction.
FIG 5.24 Glass, Material Editor
View.
170
T-Bone House, Exterior Glass, Basement For the window panes in the basement, we need to slightly modify the glass used previously. We want to be able to see into the interior, as is often desirable for exterior visualizations. In reality, this is rarely possible, as the environment brightness during the day is much higher than inside a room and the environment is therefore fully reflected by the glass. In our rendering, we will reduce the reflection intensity to create the desired result. • • •
In the LAYER MANAGER, make the layer 00 glass basement visible again. Copy the material glass to an empty slot and name it glass basement. REFLECTION CHANNEL
Reduce the reflection intensity to 15 to create greater transparency.
FIG 5.25 Glass Basement,
Reflection and Refraction.
•
Assign the material to the layer 00 glass basement.
FIG 5.26 Glass Basement, Material
Editor View.
171
Architectural Rendering with 3ds Max and V-Ray Window Frame, White The next material to be assigned is the one for the window frames. These have a white, metallic reflective surface. • •
Create a new VRAYMTL windowframe white. DIFFUSE CHANNEL
In the DIFFUSE CHANNEL, we again use a VRAYDIRT map. Give it a gray color of 230 in UNOCCLUDED COLOR. The other settings are 20 cm for RADIUS, 1.0 for FALLOUT, and 16 for SUBDIVS. FIG 5.27 Windowframe White,
VRayDirt Parameters.
•
REFLECTION
CHANNEL
Set the reflection amount to 40. The material should have a soft reflection, so set REFL. GLOSSINESS to 0.95 and SUBDIVS to 32 to avoid graininess. Remove the link between HIGHLIGHT GLOSSINESS and REFLECTION GLOSSINESS, as we will create a highlight by overlaying the SHELLAC material. FIG 5.28 Windowframe White,
Reflection.
172
T-Bone House, Exterior
•
Shellac material
Create another SHELLAC material with the previous material as the BASE MATERIAL. Change the diffuse color to black. This time we want to simulate a metallic material, so set SHADER BASIC PARAMETERS to ANISOTROPIC. Metallic surfaces have, depending on the surface handling, a direction dependent (anisotropic) reflection. This is caused by very fine grooves on the surface that are caused by polishing or brushing. In the ANISOTROPIC BASIC PARAMETERS group, set SPECULAR LEVEL to 40, GLOSSINESS to 25, and ANISOTROPY to 80. The highlight on the material has now changed to a soft, diagonal stripe.
FIG 5.29 Windowframe White,
Shellac Material, Overview.
FIG 5.30 Shellac Standard Material,
Parameters.
173
Architectural Rendering with 3ds Max and V-Ray
•
In the LAYER MANAGER, assign the material to the layers 00 windowframe, 00 guardplate basement, and 00 door garage.
FIG 5.31 Windowframe White,
Material Editor View.
Light Inside Let’s add some extra focus to the interior. At the moment, you can see inside, but it’s still rather dark and dull in there, especially the kitchen. As we have set up three hanging lamps in the kitchen above the table, it makes sense to equip these with light sources. We will set up another light source above the stairs to brighten that area some more.
Light, Kitchen Create a new VRAYLIGHT (COMMAND PANEL/CREATE/LIGHTS/V-RAY/VRAY-LIGHT) and name it light kitchen. In the TOP VIEWPORT, move it into the center of one of the ceiling lamps, and in the LEFT VIEWPORT, move it to just beneath the illuminant. It should still be within the lampshade.
FIG 5.32 Clone Options, Instance.
174
T-Bone House, Exterior In the TOP VIEWPORT, create one copy each as INSTANCE for the other two lamps. Go to the settings for one light source (COMMAND PANEL/MODIFY). We want to simulate a lightbulb, so the light source should have SPHERE as Type. To achieve a pleasantly warm light tone, set the color swatch to RGB 240, 210, 135. Specify the light intensity by setting the MULTIPLIER to 10. The radius of the spherical light source does not have to be limited to the dimensions of a lightbulb; with a RADIUS of 10 cm, you will approximately fill the lampshade and achieve a good result with soft shadows. Make sure that the CAST SHADOWS and INVISIBLE checkboxes are activated. This ensures that shadows are cast and makes the light source invisible. Because these settings are instances, they are adopted for the other copies. The other lights “inherit” the qualities of the first.
FIG 5.33 Light Kitchen, Overview.
In the next rendering, you will see that the kitchen is now pleasantly lit, the lampsshades are shining, and the chairs cast soft shadows on wall and floor.
Tip The lampshade material has to be translucent. Have a look at it in the MATERIAL EDITOR. 175
Architectural Rendering with 3ds Max and V-Ray
FIG 5.34 V Ray Frame Buffer,
Light Kitchen.
Light, Stairs We want to make the stairs a little bit brighter. This area is too dark; we can create the impression of light falling from the upper floor onto the stairs. Create a copy of the kitchen light, this time with the clone option COPY. Rename it light stairs. FIG 5.35 Clone Options, Copy.
Position the light source in the TOP VIEWPORT at the center of the third step. Go to the LEFT VIEWPORT and move the light to about 20 cm above the ground level of the upper floor or Absolute 20 cm in the z-direction. You still need to increase the MULTIPLIER for the intensity to 30. 176
T-Bone House, Exterior
FIG 5.36 Light Stairs, Overview.
HDRI Illumination As we are not using a VRAYSUN as light source, our scene is currently illuminated by only a standard light source. Next, we are going to add a diffuse illumination by using an HDRI image in the V-Ray Environment. It will also help us create reflections on the façade. Open the RENDER SETUP dialog box and go to the V-RAY:: ENVIRONMENT rollout in the V-RAY tab. Override all channels by activating the checkboxes on their left. Then click on the GI ENVIRONMENT (SKYLIGHT) OVERRIDE channel and choose VRAYHDRI. Drag and drop this map to an empty MATERIAL EDITOR slot and rename it HDRI Illumination. For HDR MAP, select the image environment.hdr from the textures folder on the book CD. Then set MAP TYPE to SPHERICAL ENVIRONMENT. V-Ray loads these HDR images with a gamma value of 1.0, so you need to set GAMMA to the reciprocal of 2.2 (1 divided by 2.2), which is 0.455. Set the image rotation (HORIZ. ROTATION) to −60, which brings the reflections out well. 177
Architectural Rendering with 3ds Max and V-Ray
FIG 5.37 Render Setup, V Ray::
Environment.
FIG 5.38 Material Editor,
HDRI Illumination.
In the RENDER SETUP dialog box, drag a copy of this map to the REFLECTION/ REFRACTION ENVIRONMENT OVERRIDE channel. In the REFRACTION OVERRIDE channel, you can leave the color set to black—we want to override only the reflection. 178
T-Bone House, Exterior
FIG 5.39 Render Setup, V Ray::
Environment.
Render the scene. The atmosphere now seems much less artificial and the façade is no longer completely homogeneous. FIG 5.40 V Ray Frame Buffer,
HDRI Illumination.
179
Architectural Rendering with 3ds Max and V-Ray
Tip Reactivate visibility for the layer 00 shadow trees in the LAYER MANAGER.
Fine-Tuning: Shadows on the Façade In the last step, we add another effect: shadows are cast onto the façade by planes behind the camera, to which we assign a tree texture. • • •
Create a new V-Ray material. Name the VRAYMTL tree big. DIFFUSE CHANNEL
Create a BITMAP in the DIFFUSE CHANNEL and use the image tree a.jpg from the textures folder. This time, make sure that the USe REAL-WORLD SCALE checkbox is deactivated. OFFSET should be set to 0.0 and TILING to 1.0. We do not need a UVW MAP; the BITMAP is applied to the size of the area at a 1-to1 ratio. Activate SHOW STANDARD MAPS IN VIEWPORT in the MATERIAL EDITOR.
FIG 5.41 Tree Big, Diffuse Channel,
Bitmap Parameters.
•
OPACITY
CHANNEL
The OPACITY CHANNEL determines via a grayscale texture which image areas are visible and which are opaque. Drag a copy of the BITMAP from the DIFFUSE CHANNEL to the OPACITY CHANNEL. Replace the picture tree a.jpg with tree a alpha.jpg. In this picture, only the tree areas are white; the rest is black and will therefore not show. •
Assign the material to the three large planes in the layer 00 shadow trees.
To create the texture for the three smaller planes, create a copy of the material and rename it tree small. Replace the image tree a.jpg in the DIFFUSE MAP with tree b.jpg. Also replace the image tree a alpha.jpg with tree b alpha.jpg. Assign this material to the three small planes. 180
T-Bone House, Exterior
FIG 5.42 Tree Big, Opacity
Channel.
FIG 5.43 Tree Big, Opacity
Channel, Bitmap Parameters.
FIG 5.44 Tree Big, Material Editor
View.
181
Architectural Rendering with 3ds Max and V-Ray
FIG 5.45 Scene, Tree Big and
Tree Small Assigned.
Render the scene. You now have a nice shadow over the whole picture. To take some of the shadow’s sharpness away, because it seems too pronounced, go to the sunlight settings. In the VRAYSHADOWS PARAMS rollout, increase the values for the U, V, W SIZE setting to 20 cm each and SUBDIVS to 32 to achieve better resolution of the soft shadow edges. FIG 5.46 Sunlight, Parameters.
182
T-Bone House, Exterior
Final Render Settings V-Ray Open the RENDER SETUP dialog box and go to the V-RAY tab. The following bullet points each relate to one rollout. •
V-Ray:: Image sampler (antialiasing)
Set TYPE to ADAPTIVE DMC and ANTIALIASING
FILTER
to BLACKMAN. FIG 5.47 Render Setup, V Ray::
Image Sampler (Antialiasing).
•
V-Ray:: Adaptive DMC image sampler
Set MIN.
SUBDIVS
to 2 and MAX.
SUBDIVS
to 6. FIG 5.48 Render Setup, V Ray::
Adaptive DMC Image Sampler.
Indirect Illumination Go to the INDIRECT ILLUMINATION tab. •
V-Ray:: Indirect Illumination (GI) 183
Architectural Rendering with 3ds Max and V-Ray Set PRIMARY BOUNCES to IRRADIANCE •
MAP
and SECONDARY BOUNCES to LIGHT
CACHE.
V-Ray:: Irradiance map
For CURRENT PRESET, choose MEDIUM. Increase the BASIC PARAMETERS settings for HSPH. SUBDIVS to 60 and INTERP. SAMPLES to 20.
FIG 5.49 Render Setup, V Ray::
Irradiance Map.
•
V-Ray:: Light cache
Change the SUBDIVS setting to 2500 and SAMPLE option USE LIGHT CACHE FOR GLOSSY RAYS. FIG 5.50 Render Setup, V Ray::
Light Cache.
184
SIZE
to 0.01. Activate the
T-Bone House, Exterior Render the image with a resolution of 2500 × 1875 pixels. Make sure to store the alpha channel when saving the image. FIG 5.51 TIF Image Control, Store
Alpha Channel.
FIG 5.52 Rendering, Integrated In
Photograph.
You can now easily insert a background during further processing with an image editing program. For our example, we inserted a few trees and a sky, as well as tinting the whole picture slightly. Congratulations, you have completed another chapter! Now you are able to use HDR images for illuminating scenes and creating reflections. This method has a lot of potential and can help you create scenes that are amazingly realistic.
185
CHAPTER 6
Studio Setup This chapter addresses a simple studio setup—an environment used primarily with product visualizations. The setup is comparable to a photo studio. Here, the challenge lies in bringing out product shape and material qualities. Diffuse light provides even illumination and soft shadows.
Preparing the Scene We are making the model of a lamp available for your studio setup. You can then create a background, illuminate the scene step by step, and assign the material.
Open File Open the file ch 06 01.max from the companion CD (chapters\ch 06). This lamp was also constructed in 3ds Max. Open the LAYER MANAGER, and you will find that all parts of the lamp are already sorted into layers according to their material. Acquaint yourself with the scene. To arrange your next steps more clearly, create two new layers: light and canvas. Set the layer canvas as current layer.
Architectural Rendering with 3ds Max and V-Ray. DOI: 10.1016/B978-0-240-81477-3.00010-7 Copyright © 2010 by Elsevier Inc. All rights reserved.
187
Architectural Rendering with 3ds Max and V-Ray FIG 6.1 Studio Setup.
FIG 6.2 Scene, Overview.
188
Studio Setup FIG 6.3 Layer Manager, Overview.
Background and Camera At the moment, our lamp is standing in empty space. We need a surface for it to stand on and a background. In a studio setup, you would usually use an L-shaped plane with rounded corner so that it has a fluent transition from floor to background.
Create Canvas Go to the LEFT VIEWPORT. Use the LINE tool to create an angle, as shown in Figure 6.4, with the dimensions 200 cm for length and width. Name this line canvas. FIG 6.4 Draw Line.
189
Architectural Rendering with 3ds Max and V-Ray In the COMMAND PANEL, choose VERTEX and mark the corner point. Use FILLET to round the corner. Choose a setting of 25 cm. Apply the EXTRUDE MODIFIER with a setting of 200 cm to your canvas. The corner is now rounded. In the rendering, these settings create a gradient in the background. FIG 6.5 Canvas, Choose Vertex, Apply Fillet.
FIG 6.6 Round Edge.
You still need to align the canvas with TOOLS/ALIGN/ALIGN…. Center the canvas so that it’s in the middle of the x- and y-axes; in the z-axis, it should be flush with the object stand of the lamp. 190
Studio Setup FIG 6.7 Align Canvas with Lamp.
FIG 6.8 Align Selection, X, Y Position.
FIG 6.9 Align Selection, Z Position.
191
Architectural Rendering with 3ds Max and V-Ray Camera Setup To set up the camera, go to the FRONT VIEWPORT. Create a FREE CAMERA. To get the fewest possible distortions, choose a wide lens and position the camera further away from the lamp. A 200mm lens is a good choice. Due to the lamp proportions, an aspect ratio of 1:2 is best. The format is often not relevant for a studio setup, as the rendering will most likely be isolated and then placed into a new background. Set the resolution to 240 × 480 pixels. Position the camera as in Figure 6.10.
FIG 6.10 Camera Setup, Overview.
Illuminate Scene The aim of product visualization is to enhance the object’s shape, material, and color. Round shapes are emphasized with brightness variations; edges with targeted highlights. We can achieve it by using a neutral background and diffuse illumination of the scene with plane lights. 192
Studio Setup Create Test Material As in the previous scenes, you first assign a neutral, almost white material to all objects. Open the MATERIAL EDITOR, create a new VRAYMTL, and name it test material. Select the VRAYDIRT material in the DIFFUSE CHANNEL and set the gray of the UNOCCLUDED COLOR to 230. Unlike with rooms or buildings, we are now working with a very small object, so decrease the radius to 3.0 cm. Set FALLOFF to 0.5. Increase the SAMPLING in the SUBDIVS parameter to 16 to get a clean result. Select all objects in the scene and assign the test material.
FIG 6.11 Test Material, VRayDirt
Parameters.
Create Plane Lights In the following steps, we create a plane light: a key light to the right of the lamp and a so-called fill light opposite on the left. •
Key light
Go to the LEFT VIEWPORT. Create a VRAYLIGHT (COMMAND PANEL/CREATE/LIGHTS/ V-RAY/VRAYLIGHT) and name it key light. If it is not set already, change TYPE (COMMAND PANEL/MODIFY) to PLANE. You have now created a rectangular light source. You can change its dimensions with HALF-LENGTH and HALF-WIDTH (these designate half the length from the center). Set each to 100 cm. Move the light source until it slightly overlaps the canvas on the left and at the bottom. In the TOP VIEWPORT, position it about 50 cm to the right of the lamp. Compare with Figure 6.12. The light color is also important. The lamp is made mainly from the cool materials glass and chrome. The key light should also have a cool color to emphasize the nature of these materials. Set COLOR to RGB 220, 240, 230. This corresponds to a very light
Tip In the Render Setup dialog box’s V-Ray:: Global Switches rollout, deactivate the Hidden Lights checkbox and set Default Lights to Off with GI.
193
Architectural Rendering with 3ds Max and V-Ray blue. Leave the intensity at 1 and make sure that UNITS is set to DEFAULT (IMAGE). •
Fill light
As you can deduce from its name, the fill light has a more subtle character. Copy the key light with the MIRROR tool (TOOLS/MIRROR). Use the method COPY with an OFFSET of −100 cm. Rename the copy fill light and shift it upwards in the TOP VIEWPORT by about 70 cm in the y-axis. The bottom edge should be a little bit underneath the lamp. This lets the light fade into the background and illuminates only the back, left part of the lamp. The fill light needs a warmer tone to achieve a soft gradient on the round areas, and it should have a lower intensity. Change the COLOR to RGB 255, 220, 170 and reduce the MULTIPLIER to 0.5.
FIG 6.12 Create Key Light and Fill
Light, Overview.
Tip Activate Gamma correction in the V-Ray FRAME BUFFER by clicking on the DISPLAY COLORS IN SRGB SPACE button.
194
Now it is time to check the results again. Open the RENDER SETUP dialog box. Activate V-RAY:: INDIRECT ILLUMINATION (GI) in the INDIRECT ILLUMINATION tab. Set PRIMARY BOUNCES to IRRADIANCE MAP and SECONDARY BOUNCES to LIGHT CACHE. In the V-RAY:: IRRADIANCE MAP rollout, set the CURRENT PRESET to LOW; in the V-RAY:: LIGHT CACHE rollout, reduce SUBDIVS to 500. That should be enough for a preview. Render the image. The effect of the light sources can be assessed well with the test material and a short render time.
Studio Setup FIG 6.13 V Ray Frame Buffer.
Texture the Scene Now we want to bring the lamp to life. Apart from chrome, glass is the main material, and is present in the scene in three variations: the lamp base is shimmering green solid glass; the lamp shade is made from white opaque glass; and parts of the stand are clear glass.
Canvas The canvas in the background should be as neutral as possible. We chose a dark gray in contrast to the bright lamp. • •
Create a new VRAYMTL in the MATERIAL EDITOR and name it canvas. DIFFUSE CHANNEL
Use the COLOR SELECTOR dialog box to enter RGB 15, 15, 15.
195
Architectural Rendering with 3ds Max and V-Ray FIG 6.14 Canvas, Overview.
•
Assign the material
Assign the material to the object canvas.
Chrome Many parts of the stand and the lamp’s pull switch chain are chrome. • •
Create a new VRAYMTL and name it chrome. DIFFUSE CHANNEL
Change the color to black. •
REFLECTION
CHANNEL
Select a FALLOFF map. This makes the reflection depend on the viewing direction. That part of the sphere that faces the viewer appears black and does not reflect. The reflection gets stronger toward the edges of the sphere. Chrome does reflect a little from any angle, so you need to change the black to a medium gray. Enter for the black swatch for FRONT:SIDE an RGB setting of 125, 125, 125. Click on the L next to HIGHLIGHT GLOSSINESS to deactivate its link with REFLECTION GLOSSINESS, and set HIGHLIGHT GLOSSINESS to 0.8. This overlays the sharp chrome reflection at the edges with softer highlight and emphasizes the contours. •
Assign the material
In the LAYER MANAGER dialog box, select the layer 00 chrome and assign the material. 196
Studio Setup FIG 6.15 Chrome, Reflection.
FIG 6.16 Falloff Map, Parameters.
FIG 6.17 Chrome, Material Editor
View.
197
Architectural Rendering with 3ds Max and V-Ray Clear Glass The middle section of the lamp stand is a cylinder of transparent glass. The power cable runs through this cylinder in a narrow chrome tube. The clear glass has a subtle blue tint. • • •
Create a new VRAYMTL and name it glass clear. Change the color swatches for the DIFFUSE, REFLECTION, and REFRACTION CHANNELS to white. REFLECTION CHANNEL
Activate the FRESNEL
REFLECTIONS
checkbox.
FIG 6.18 Glass Clear, Reflection.
•
REFRACTION
CHANNEL
Create a FALLOFF MAP in the REFRACTION CHANNEL. Set FALLOFF TYPE to FRESNEL and swap the white and black color swatches (SWAP COLORS/MAPS). FIG 6.19 Glass Clear, Falloff Map
Parameters.
198
Studio Setup In the MIX CURVE, add a new point slightly to the right of the bottom-left point. See Figure 6.20. This achieves a light haze in the glass edge areas, which makes it stand out better from the background. You avoid the risk that the glass becomes completely transparent at the edges and therefore invisible. FIG 6.20 Mix Curve, Adapted Curve.
Now tint the glass very slightly by using the FOG COLOR parameter; set this to 220, 255, 255. You also need to adjust the FOG MULTIPLIER to 0.01. Activate the AFFECT SHADOWS checkbox and set AFFECT CHANNELS to COLOR+ALPHA.
FIG 6.21 Glass Clear, Refraction.
199
Architectural Rendering with 3ds Max and V-Ray •
Assign the material to the layer 00 glass.
FIG 6.22 Glass Clear, Material
Editor View.
Glass, White The lamp shade is made from opaque glass. • •
Name the newly created VRAYMTL glass white. DIFFUSE CHANNEL
Set the glass color to white. •
REFLECTION
CHANNEL
We want the glass to be about 60 percent reflective. Use a gray with a setting of 155 for each value and activate the FRESNEL REFLECTIONS checkbox. FIG 6.23 Glass White, Reflection.
200
Studio Setup •
REFRACTION
CHANNEL
As the glass is not very transparent, change the REFRACT value to a gray with the setting 30. Again, check AFFECT SHADOWS and set AFFECT CHANNELS to COLOR +ALPHA. Assign this material to the layer glass white. FIG 6.24 Glass White, Refraction.
FIG 6.25 Glass White, Material
Editor View.
Glass, Solid The lamp base is a cylinder of shimmering green solid glass. We will use the fog effect again. • •
Name the new material glass solid and create it in an empty slot. Set a white color for the DIFFUSE, REFLECTION, and REFRACTION CHANNELS.
Activate FRESNEL REFLECTIONS in the REFLECTION group and AFFECT SHADOWS under REFRACTION. In the AFFECT CHANNELS list, choose COLOR+ALPHA. To create the green shimmer, click on the color swatch next to FOG COLOR. The desired effect is 201
Architectural Rendering with 3ds Max and V-Ray achieved with RGB settings 180, 255, 220 (a light turquoise). In this case, set the FOG MULTIPLIER slightly higher, to 0.2.
FIG 6.26 Glass Solid, Reflection.
FIG 6.27 Glass Solid, Refraction.
202
Studio Setup
•
Assign the material to the layer glass solid. FIG 6.28 Glass Solid, Material
Editor View.
Plastic A less spectacular material—plastic—is also used in the scene. The cable at the lamp’s base and a hardly noticeable rubber seal will be assigned this material. We use the SHELLAC material to achieve highlights on rounded areas. • •
Create a new VRAYMTL and name it plastic. In the DIFFUSE CHANNEL, choose a gray set to 10; we do not need reflection. FIG 6.29 Plastic, Overview.
•
SHELLAC material
Click on the material selection next to the material name, which currently shows VRAYMTL. Select the SHELLAC material in the dialog box that opens. Choose the option KEEP OLD MATERIAL AS SUB-MATERIAL. The original VRAYMTL plastic is now the BASE material and the new SHELLAC material is below it. 203
Architectural Rendering with 3ds Max and V-Ray The SHELLAC COLOR BLEND parameter determines how much the SHELLAC material will overlay the BASE material. A setting of 100 is usually a good choice. FIG 6.30 Plastic, Shellac Material,
Overview.
Go into the SHELLAC material. It is a STANDARD material. Change the DIFFUSE to black, which means that there is no color overlay—only the highlight will be superimposed. You control this highlight with the parameters in the SPECULAR HIGHLIGHTS group. Set the SPECULAR LEVEL (the intensity) to 35. GLOSSINESS should be 25 and SOFTEN 25. Now you can see a soft highlight on your plastic material.
COLOR
FIG 6.31 Plastic, Shellac Standard
Material, Parameters.
204
Studio Setup •
Assign the material to the layer plastic black. FIG 6.32 Plastic, Material Editor
View.
Fabric The upper part of the pull-switch is a fabric-coated string. For this final material in our scene, we will make use of the VRAYDIRT map. • •
Create a copy of the test material and rename it fabric. Go to the VRAYDIRT map in the DIFFUSE CHANNEL. Change the UNOCCLUDED COLOR RGB to 200, 200, 180. Increase the RADIUS to 10 cm, FALLOFF to 0.2, and SUBDIVS to 32. You now have a slightly beige material with a stronger light-to-dark gradient. FIG 6.33 Fabric, V RayDirt
Parameters.
205
Architectural Rendering with 3ds Max and V-Ray •
Assign the material to the layer fabric.
FIG 6.34 Fabric, Material Editor
View.
Now is a good time to render the scene with a higher resolution, such as 1000 × 2000 pixels. Do not be too exact with your V-Ray settings. A quick result can be achieved with the following settings in the RENDER SETUP dialog box: •
V-RAY:: IMAGE
Use the ADAPTIVE •
SUBDIVISION SAMPLER
V-RAY:: ADAPTIVE
Set MIN •
SAMPLER (ANTIALIASING)
RATE
with the AREA
FILTER.
SUBDIVISION IMAGE SAMPLER
to −1 and MAX
RATE
to 2.
V-RAY:: INDIRECT ILLUMINATION (GI)
Use IRRADIANCE MAP for PRIMARY BOUNCES and LIGHT CACHE for SECONDARY BOUNCES. Set the PRESET for the IRRADIANCE MAP to LOW. For the LIGHT CACHE settings enter 1000 for SUBDIVS with a SAMPLE SIZE of 0.02 (SCREEN). FIG 6.35 Render Setup, V Ray::
Light Cache.
206
Studio Setup
Fine-Tuning The result looks rather promising. As in the other chapters, we now just need to put the cherry on the top. We can clearly improve our scene by adding a rim light behind the lamp in the camera direction that illuminates only the edges of our lamp. Our studio setup is based on a popular method, the so-called three-point lighting, which involves a key light, a fill light, and a rim light (also called a back light).
Rim Light Create a copy of your fill light and name it rim light. Rotate it by 90 degrees; the arrow must point toward the camera. Move it to about the same position as shown in Figure 6.36.
FIG 6.36 Create Rim Light, Overview.
Now you need to adjust the settings. The light color should be white. It is very important to activate the INVISIBLE checkbox, as we do not want the light to be visible. Set the light intensity (MULTIPLIER) to 1.0. To fine-tune the reflections and brightness variations, you can adjust the position of the key 207
Architectural Rendering with 3ds Max and V-Ray light and the rim light slightly. We decided to move both lights away from the lamp by about 5 cm in the x-axis. FIG 6.37 Rim Light, Parameters.
You can achieve an interesting reflection on the glass tube by lifting the fill light by 2 cm and the key light by 5 cm in the z-axis. The rim light should be positioned at an absolute height of 105 cm. If you then render the image, you can move the light sources slightly in order to see the differences. The position of the lights has a decisive impact on the reflections and the material perception. Check the light calculation resolution for all light sources. The SAMPLING group for every light source should be set to 32 for SUBDIVS, 0.02 cm for SHADOW BIAS, and 0.001 for CUTOFF.
Final Render Settings V-Ray Open the RENDER SETUP dialog box and go to the V-RAY tab. The following bullet points each relate to one rollout. •
V-RAY:: IMAGE
SAMPLER (ANTIALIASING)
Set TYPE to ADAPTIVE DMC and ANTIALIASING 208
FILTER
to BLACKMAN.
Studio Setup FIG 6.38 Render Setup, V Ray::
Image Sampler (Antialiasing).
•
V-RAY:: ADAPTIVE DMC
IMAGE SAMPLER
FIG 6.39 Render Setup, V Ray::
Adaptive DMC Image Sampler.
Set MIN.
SUBDIVS
to 2 and MAX.
SUBDIVS
to 6.
Indirect illumination Go to the INDIRECT ILLUMINATION tab. •
V-RAY:: INDIRECT ILLUMINATION (GI)
Set PRIMARY BOUNCES to IRRADIANCE MAP and SECONDARY BOUNCES to BRUTE time. This produces an almost noise-free gray background. •
V-RAY:: IRRADIANCE
FORCE
this
MAP
Set CURRENT PRESET to HIGH. Increase the BASIC PARAMETERS settings for HSPH. SUBDIVS to 60. 209
Architectural Rendering with 3ds Max and V-Ray FIG 6.40 Render Setup, V Ray::
Irradiance Map.
•
V-RAY:: BRUTE
Change the
FORCE
SUBDIVS
GI
setting to 10 and SECONDARY
BOUNCES
to 4.
FIG 6.41 Render Setup, V Ray::
Brute Force GI.
Render the image with a resolution of 2000 × 4000 pixels. Excellent job— you have completed the final chapter! This studio setup can provide the basis for many product visualizations; simply adapt and redesign it according to your needs. Just as in photography, it is important to find the setup that best suits the object you want to present.
210
Index Page numbers followed by f indicates a figure and t indicates a table
A Adaptive DMC image sampler, 33, 76, 91, 114, 154 155, 183 Adaptive subdivision image sampler, 33, 91, 114 Ambient occlusion (AO), 14 15 Antialiasing, 32 Architecture, light in, 10
B Back light, 88 90. See also Rim light Bathmat fabric texture, 143 Bathroom camera setup, 86 fine tuning settings, 112 113 light sources back light, 88 90 ceiling light, 87 88 side light, 88 scene preparation, 83 open file, 83 85 texture ceramic surface, 98 99 chrome materials, 100 101 frosted glass, 111 112 lacquer, switch, 106 107 mirror glass, 105 106 multimaterial, showerhead, 108 110 natural stone, floor, 94 96 plaster, 101 102 rubber material, 107 108 walls, natural stone, 96 98 wooden surface, 102 105 V Ray rendering settings adaptive subdivision image sampler, 91, 114 color mapping, 92, 114 115 frame buffer, 90 global switches, 90 91 image sampler (antialiasing), 91, 113 114 indirect illumination, 92, 115 irradiance map, 92, 115 light cache, 92 93, 116
Bedroom ceiling lights illumination, 122 123, 123 124 fine tuning adapt environment, 153 adapt light sources, 153 light mirror, 152 153 scene preparation, 117 118 assign test material, 120 121 camera setup, 121 122 link AutoCAD files, 118 119 load furniture, 119 120 open file, 118 texture bathmat fabric, 143 ceramic material, 143 144 chrome, 145 147 color stripes, 129 131 fabric, 141 142 glass, 149 150 glass blocks, 150 151 lights ceiling, 148 mirror glass, 147 paper, screen, 139 141 parquet flooring, 127 129 plaster, 125 126 small tiles, 131 135 window frame wood, 135 138 woodlight, 138 139 V Ray render settings adaptive DMC image sampler, 154 155 image sampler (antialiasing), 154 indirect illumination, 155 irradiance map, 155 156 light cache, 156 Bokeh effects, 29 30 Brick displacement, 80 81 Brute force algorithm, 11 12
C Canvas texture, 195 196 Ceiling light, 87 88 Ceramic texture, 143 144 Chrome texture, 67 71, 100 101, 145 147, 196 197
Clear glass texture, 198 200 Color bleeding, 5 Color mapping, 92, 114 115 Gamma 1.0, 35f Gamma 2.2, 36f Color stripes, 129 131 Color temperature, 6 8 effect of, 8 overview of, 8 Computer graphics, light in, 9 10 Contact shadows, 14
D Daylight white balance, 29f 3D Studio Max, 34 adapt paths, 41 42 color mapping, Gamma 1.0, 35f default settings of, 37f directory structure, 39 Gamma 2.2, color mapping, 36f Gamma correction, 41 material editor, 39f preference settings, 35f, 38f units setup, 40 41 used version, 42
E Exposure, 27
F Fabric texture, 141 142, 205 206 File Link Manager, 43 45 Fill light, 194 Film speed, 29 Fixed image sampler, 33 F number, 27 Fresnel reflection, 73 Frosted glass texture, 111 112
G Glass texture, 73 74, 149 150, 198 200, 200 201, 201 203 clear, 198 200
211
Index Glass texture (Cont.) frosted, 111 112 mirror, 105 106, 147 solid, 201 203 white, 200 201 Global illumination. See Indirect illumination
H HDRI illumination, 177 179
I Illuminance, 4 6 Image sampler (antialiasing), 76, 91, 113 114, 154, 183 Index of refraction (IOR). See Refractive index Indirect illumination, 92, 115, 155, 183 184, 209 210 Brute force, 11 12 exterior scene, 14 interior scene, 14 irradiance map, 12 13 light cache, 13 14 photon map, 13 Intensity multiplier, 24 Irradiance map, 12 13, 77, 92, 115, 155 156, 184
K Key light, 193
L Latency, 29 Leather texture, 71 72 Light in architecture, 10 in computer graphics, 9 10 in real world color temperature, 6 8 effect of color temperature, 8 illuminance, 4 6 perception and mood, 3 4 shadow, 8 9 T Bone house HDRI illumination, 177 179 kitchen, 174 176 stairs, 176 177 working with, 9, 10
212
Light cache, 13 14, 77 78, 92 93, 116, 156, 184 185 Light sources, 9 back light, 88 90 ceiling light, 87 88 side light, 88 Linear workflow (LWF), 34 Loft apartment create and assign textures black leather, 71 72 brick, white paintwork, 56 58 ceiling, textured plaster, 72 chrome objects, 67 71 exposed brickwork, 58 59 glass, 73 74 parquet flooring, 59 61 picture, 61 64 reflecting white material, 65 67 rug, 72 73 white material, matte, 64 65 fine tuning settings brick displacement, 80 81 rug displacement, 78 79 light setup, 74 sunlight, 74 75 scene preparation adapt viewport and image output, 47 camera setup, 47 49 open file, 46 preset for File Link Manager, 43 45 texture settings test material creation, 49 50 VRayLight setup, 54 55 V Ray settings, 50 54 V Ray rendering settings, 75 76 adaptive DMC image sampler, 76 image sampler (antialiasing), 76 irradiance map, 77 light cache, 77 78 Luminance, 4, 18 Luminous flux, 4 Luminous intensity, 4 Luminous power, 18 LWF. See Linear workflow
M Material Editor, 39f Mirror glass texture, 147 Mirror texture, 105 106
N Neutral white balance, 28f
O Opacity channel, 180 Oversampling, 32 33 Ozone, 24
P Photon map algorithm, 13 Plane lights, 193 195 fill light, 194 key light, 193 Plaster texture, 101 102, 125 126 Plastic texture, 203 205 Primary bounces, 11
R Radiance, 18 Radiant power, 18 Refractive index, 6, 6t Render algorithms Brute force algorithm, 11 12 irradiance map algorithm, 12 13 light cache algorithm, 13 14 photon map algorithm, 13 Resolution, 31 Rim light, 207 208 Rug displacement, 78 79 Rug texture, 72 73
S Scene explorer, 69 70 Secondary bounces, 11 Shadow, 8 9 Shadow bias, 25 Shadow subdivs, 24 Shutter offset, 29 Shutter speed, 29 Side light, 88 Size multiplier, 25f, 24 Solid glass texture, 201 203 Studio setup background and camera camera setup, 192 canvas creation, 189 191 final render settings indirect illumination, 209 210 V Ray, 208 209
Index fine tuning settings, 207 rim light, 207 208 illuminate scene plane lights creation, 193 195 test material creation, 193 scene preparation, 187 open file, 187 189 texture scene canvas, 195 196 chrome, 196 197 clear glass, 198 200 fabric, 205 206 plastic, 203 205 solid glass, 201 203 white glass, 200 201 Subsurface scattering surface effect, 32
T T Bone house fine tuning settings, 180 182 light HDRI illumination, 177 179 kitchen, 174 176 stairs, 176 177 materials for window external wood, 163 167 glass, 169 170 glass, basement, 171 interior wood, 167 169 window frames, 172 173 scene preparation, 157 158 camera setup, 160 open file, 158 159 sunlight creation, 160 163 V Ray rendering settings adaptive DMC image sampler, 183 image sampler (antialiasing), 183 indirect illumination, 183 184 irradiance map, 184 light cache, 184 185 Test material creation, 49 50, 193 Three point lighting, 207 Turbidity, 23f, 22 TURBOSMOOTH modifier, 83, 85f
U Undersampling, 33 User defined white balance, 29f
V Vignetting, 27 with rendering, 28f without rendering, 28f V Ray ambient occlusion (AO), 14 15 materials, 31 primary bounces, 11 product features, 10 secondary bounces, 11 VRayBlendMtl, 32 VRayFastSSS, 32 VRayFastSSS2, 32 V Ray Frame Buffer, 195f with Gamma correction, 37f HDRI illumination, 179f kitchen, 176f without Gamma correction, 36f VrayIES, 18 19 V Ray image sampler antialiasing, 32 oversampling, 32 33 undersampling, 33 VRayLightMtl, 31 V Ray light sources (VRayLight) dome, 17 mesh, 17 plane, 16 properties, 16 sphere, 16 units, 18 VRayMtl, 31 VRayMtlWrapper, 32 VRayOverrideMtl, 31 VRayPhysicalCam basic parameters, 28 29 Bokeh effects, 29 30 sampling, 30 31 V Ray rendering settings, 75 76 bathroom adaptive subdivision image sampler, 91, 114 color mapping, 92, 114 115 frame buffer, 90 global switches, 90 91
image sampler (antialiasing), 91, 113 114 indirect illumination, 92, 115 irradiance map, 92, 115 light cache, 92 93, 116 bedroom adaptive DMC image sampler, 154 155 image sampler (antialiasing), 154 indirect illumination, 155 irradiance map, 155 156 light cache, 156 loft apartment adaptive DMC image sampler, 76 image sampler (antialiasing), 76 irradiance map, 77 light cache, 77 78 T Bone house adaptive DMC image sampler, 183 image sampler (antialiasing), 183 indirect illumination, 183 184 irradiance map, 184 light cache, 184 185 VRay2SidedMtl, 31 VRaySimbiontMtl, 32 VRaySky, 25 26 VRaySun, 19 25 intensity multiplier, 24 ozone, 24 photon emit radius, 25 properties, 19 shadow bias, 25 shadow subdivs, 24 size multiplier, 25f, 24 turbidity, 23, 22 with VRayPhysicalCam, 23f without VRayPhysicalCam, 22f
W White balance, 27 daylight, 29f neutral, 28f user defined, 29f White glass texture, 200 201
213