Category

Maya

Maya Export to Sketchfab

By Maya, Sketchab

The easiest way to publish a 3D model from Maya to Sketchfab is to download and install the Sketchfab plugin for Maya. The script uses the included FBX exporter in Maya and sets the correct setting for you so your model is exported with included textures to sketchfab.com

The process is:

  • Register for a free acount at sktechfab.com – see video
  • Prepare your model for export with textures (use temporary textures if you are not there in the process yet).
  • Get the API token/Key from your profile at Sketchfab.com – see video
  • Use the Maya-to-Sketchfab plug-in script to export and send your model directly to your profile on Sktechfab.com – remember to set the correct setting before doing so – see video
  • If you have done as listed above, your model should now be on sketchfab.com
  • Use “Annotations” (a feature in Sketchfab) to leave comments and questions about your model.
Note: Videos are in Norwegian

Maya & Arnold – 5 Sequence Rendering

By Maya, Rendering

From the IPR window you can directly save single frames. In the Render View Window go to > Save Image … > Options

iprsaveimage

In the Options popup you need to adapt the Save Mode according to your intended file format. Choose “Save RAW Image” when you want to output .exr or other formats with 32 bit color mode for further processing or compositing with applications like Nuke or After Effects. In most cases you will save a regular 8 bit color jpeg, tiff or png and for these formats you choose “Save Color-Managed Image”, hit Apply and Close” – this is important, otherwise the output will be too dark.

iprsaveimageoptions

When you select > Save Image … (without Options) you can select your desired File type and save it to the images folder.

iprsaveimageas

For rendering animations first of all make sure you have selected the proper frame rate at > Windows > Settings / Preferences > Preferences > Settings. If you don’t have other requirements you can leave the default 24 fps, it works on most devices.

settingsfps

Go to the Render Settings with the little icon from the shelf. At the Common tab switch to any of the options with the # variable to enable sequence rendering. With File name prefix you can specify a custom output name. Choose your desired Image format and leave the default Gamma at 2.2 for regular 8-Bit jpeg, tiff or png file formats, that’s the equivalent to the option “Save Color-Managed Image” described earlier for single frames. Adjust Frame Range and Image Size according to your requirements.

rendersettingssequence

Switch to the Rendering Menu Set at the top left of the UI.

rendershelfswitch

In the now appearing Render Menu select > Render Sequence (new since Maya 2017). The Render View opens and renders frame by frame to “images” in your project folder.

rendersequence

If you want to stop rendering just close the Render View window.

Maya & Arnold – 4 Camera / Depth of Field Blur

By Maya, Rendering

For animation and specific camera setup we need an extra camera for each shot. If you have not yet created a custom camera in the perspective viewport select > View > Create Camera From View (Ctrl+Shift+C). Rename the new camera and make it the active camera in the Viewport > Panels > Perspective > Your Camera Name. To activate the depth of field blur in the Attribute Editor go to the CameraShape node, activate “Enable DOF” in the Arnold section (not in the Depth of Field section, that’s for the Maya standard renderer) and increase the Aperture Size.

enabledof

With the default focus distance of 1 cm everything becomes blurred in the IPR.

defaultdof

To find out the right focus distance we need to measure it. Let’s temporarily hide unnecessary objects by hitting the “H” key. Switch to the default working camera in the Viewport > Panels > Perspective > persp. Activate “Snap to points” from the toolshelf and > Create > Measure Tools > Distance Tools.

distancetool

Click on the camera in the viewport and on the part of the object in your scene you want to have in focus.

distancemeasure

Apply the measured distance to the “Focus Distance” attribute in the Arnold section of our camera …

focusdistance

… and this part becomes sharper.

dofhighalllights

The DOF blur effect is still intense – great for making adjustments. If you don’t want to measure again when the focus distance has changed, first parent the camera locator by MMB dragging it onto the Camera in the Outliner.

camlocator

Rename the second locator to “Focus”. When you now move the camera or the “Focus” locator, the length value on the distance dimension tool should change. To connect the resulting length of the distanceDimension1 with the Arnold Focus Distance attribute in Camera1 just copy paste the following line into the “MEL” script field at the bottom left:

connectAttr -f distanceDimension1.distance Camera1Shape.aiFocusDistance;

Hit “Enter”. Important: To make the script work, your camera needs to be named exactly “Camera1” and the distance tool “distanceDimension1” in the Outliner. If you want to make it work with different names you need to adapt the strings in the script accordingly.

connectattr

If the script was successfully applied you can see in the Attribute Editor the Focus Distance of Camera1 became yellow and is now linked to the Distance Tool.

connectattrdone

For final rendering decrease the Aperture Size, I used here 2.

dofipr

 

Maya & Arnold – 3 Three-Point Lighting

By Rendering, Shaders & Texturing

In the last chapter we have set up an environment light – which is great for outdoor scenes or quickly illuminating an object. Three-Point Lighting consists of the Key Light, Fill Light, and Back Light. It refers to situations in reality where several light sources illuminate objects – typically by night, indoors or in situations with bouncing lights. By directing position, intensity, color, shadow behavior of your lightsources you can actually “paint” with light by emphasizing aspects of your model to influence the perception in the spectator. Watch Light & Shadow, an Emmy winning film from director Steve Weiss (20 min) if you want to learn more about the subject. The basic concept of Three-Point Lighting in relation to 3D applications is briefly explained in this Tutorial.

In physical based render engines like Arnold the scene measures refer to real world values. I scaled the displaced terrain from the last chapter to a size of 40000 units (=400 m) which allows me to place a building of  about 7 x 7 and 12 meters on top of the hill. The object I want to see illuminated is called Breather Surface and the building a modified  Menn´s Surface, both are parametric objects created with the free (and still working) Cinema 4D plugins from Jürgen Meier. Create your own building, make sure you cut out enough area for windows.

buildingwireframe

The typical approach to Three-Point Lighting is to start with a Key Light. In our case we already have the environment light which we can use as the Back Light. With the IPR window open adjust Elevation and Azimuth in the aiPhysicalSky to bring the sun close to the horizon. With the main object selected RMB > Assign New Material > aiStandard Material, increase specularity – because every object in our physical world has some (more or less) specularity. You can find out more about specularity and energy conservation in this introduction to physical based rendering. Move around your camera to find a nice framing with the sun highlighting the edge of the objects from slightly above or the side. The default camera in Maya comes with a focal length of 35 mm which is fine in most cases. I widened the angle to 28 mm for capturing more from the room and to make the image more dynamic. Don’t worry about the noise, we will fix that later in the Render Settings.

backlightstart

With the small Icons “Resolution Gate” and “Gate Mask” above the viewport you can overlay the aspect ratio of your final rendering. Once you are happy with the framing in the viewport go to > View > Create Camera from View.

createcamera

Lock your new camera by clicking the small lock icon above the viewport. To move around in your scene and to adjust lights switch back to the default working camera at > Panels > Perspective > persp.

switchcamera

Let’s bring in the Key Light, the dominant light source. In the Outliner select the aiSkyDomeLight and hit “H” to hide it for now. Add > Arnold > Lights > Maya Spot Light. Rotate it above and beside to the camera’s viewing axis. For better visibility you can scale the camera and light symbols in the viewport, it does not affect their beavior. Add some color to the Light and increase the intensity to about 100000. The shadow should be softened slightly at > Radius in the Arnold tab of the light.

keylightsolo

To soften and extend the illumination provided by the key light and to make more of the subject visible, add a > Arnold > Lights > Area Light to serve as our Fill Light. I rotated it away from the object, that the light bounces back from the wall to soften it. Increase the intensity to compensate the energy loss, in my case about are fine. Adding subtle color makes the light composition look more interesting.

filllightsolo

When working with the IPR make sure you leave the settings for exposure and gamma at their default values 0 and 1 as well as View Transform at sRGB gamma. These sliders can be temporarily toggled for diagnosis but must always be switched back by clicking on the icon. The illumination of the scene will be controlled with the intensity of the light sources as well as the brightness and specularity of the materials. Exposure settings can later be adjusted with the camera settings.

iprexposure

The setup from above.

lightsetup

Key Light, Fill Light and Back Light together.

threepointlights

Finally I slightly increased the intensity for all lights proportionally and added specularity inside the building. To reduce the noise I changed > Render Settings > Arnold Renderer > Sampling > Camera (AA) to 8. In the report at the bottom of the IPR window you can see how that increased the render time. For fluent working it is recommended to stay with the default sampling rates, you can even reduce the Camera (AA) Sampling to 1. You only need to increase Camera (AA) Sampling for the final output and quality previews.

threepointlightsimproved

Continue with Maya & Arnold Part 4 – Camera / Depth of Field Blur

Create a Simple Terrain and Distribute Objects with MASH

By Maya, Motion Graphics

mashscatteredwire
Since Maya 2016 Extension 2 the MASH plugin is included, which is an excellent tool for all kinds of motion graphics tasks. In this short tutorial we will use it for the controlled distribution of different objects across a hilly ground. In Maya > Settings / Preferences > Plug-in Manager make sure that the MASH.mll is loaded.

For the terrain we will use free available height maps. Go to the website terrain.party select a region you like, export the tile and copy the files to your sourceimages folder.

terrainparty

In Maya create a Poly Plane, make it 50×50 and subdivide it by 100×100. With the plane selected go to > Deform > Texture.

deformtexture

In the Texture Deformer Attributes connect the downloaded height map to the Texture slot with a file node. With the Strength slider you can increase the height of the deformation.

terraintexturestrength

To eliminate glitches at the edge apply UV > Planar > (Options) > Project from Y axis. With the handles the placement of the terrain texture can be adjusted.

terrainuvhandles

Now let’s Create > Empty Group several times and rename the null objects in the Outliner. They will serve as our pivot points. Create some different poly shapes and drag them with MMB into the null objects. Make sure that the y-origin of the objects is at zero, otherwise they will be positioned below the ground. With the Control Key select just the parent nulls. In the top right corner of the Maya interface choose from the Workspace dropdown menu MASH. From the now available MASH menu choose > MASH > Create MASH Network > Options. At Geometry Type are two options. With “Instancer” MASH creates instances of the input geometry tending to solve faster. The default “Mesh” option is more versatile and for now we go with that option.

mashcreate

Our input objects turn invisible and we see one input object copied linear. Now select the MASH object in the Outliner and in the Attribute Editor you can see several new tabs. When you go to the MASH Repro tab you can see that the previously selected objects are now part of the MASH network. MMB dragging additional objects from the Outliner into the Objects list would add them to the MASH network.

mashobjects

Now go to the MASH Distribute tab and expand the Mesh Settings options. MMB drag the terrain to the Input Mesh field. The Distribution Type automatically changes to “Mesh” and we get a “MASH: Connected: ….)” feedback in the viewport.

mashinputmeshconnect

By increasing the Number of Points we can already see the distributed objects on the terrain. By default the copies are oriented along the terrain’s surface normal. To plant them upright untick “Calculate Rotation”.

mashpointnumberrotation

We still see only one object replicated. To make all different types visible we go to the MASH main tab (the “Waiter”) and Add Node > ID > Add to ID.

mashaddid

Now all Objects are included.

mashaddedid

Let’s modify the distribution of the trees, they should mainly grow in the valleys. Create another Poly Plane of the same size and 10×10 Subdivisions, place it beside the terrain. Assign a new Lambert material. Connect the map we used for the terrain to the Color channel. Switch on “Textured” in the viewport.

mashcontroler

Open the Hypershade window. MMB drag the second texture file to the graph editor. Search for the Remap Color node and MMB drag it aslo there. Connect the Out Color of the file node with the In Color of the Remap Color node. With the Remap Color node selected change the Output Min to 1 and Output Max to 0 at the Input and Otput Ranges section. This simply inverts the image.

mashhypershadeinvert

Go to the MASH Waiter and add a Visibility node.

mashaddvisibility

In the Outliner > Display untick “DAG Objects Only” to make all nodes visible.

mashoutlinerdagonly

Now MMB drag the remapColor node from the Outliner to the Strength Map field of the MASH Visibility node. Alternatively you can also MMB grab the node directly from the Hypershade window.

mashtextureconnectvisibility

When we increase the Number of Points in the MASH Distribute node it becomes obvious that the distribution of our trees is controlled by the darker areas of the texture file.

mashdensityincrease

To add some finesse we can also control the scale of our trees. In the Hypershade window add a Color Correct node, attach its color input to the Remap Color output and lower the Gamma values to increase the contrast.

mashcolorcorrect

Select the MASH object in the Outliner, switch to the MASH Distribute tab and MMB drag the Color Correct node from the Outliner or the Hypershade window to the Strength Map slot. Make a tick at Scale and adjust the Strength.

mashdistributestrengthmap

Voilà. Instead of the height map you could use any kind of texture to control the scattering.

mashscalecontrol

Maya & Arnold – 2 Skydome Lighting and Background

By Rendering, Shaders & Texturing

Every render engine has its own set of lights and materials therefore it is important to pick lights for rendering with Arnold always from the Arnold menu. Add > Arnold > Lights > Skydome Light.

aiskydomelight

At the Color attribute of the aiSkyDomeLightShape click on the Texture checkerboard icon and in the Create Render Node popup choose the > Arnold > Texture > Environment > aiPhysicalSky. Alternatively you can select the > Maya > 2D Texture > File node and load an external HDR (High Dynamic Range) image. With their higher bit depth (32bit) HDR images are able to capture the lighting information from real world environments which is helpful to illuminate photorealistic scenes. You can downlad free HDR samples from the sibl archive. When you load 32bit HDR images in Maya (.hdr or .exr) make sure to change the Color Space to Raw. Jpeg and everything else should remain at sRGB. Find out more about the new Maya 2017 color management in the Arnold User Guide.

colorspaceraw

I’m interested in a more artificial look and will continue with the aiPhysicalSky.

aiphysicalsky

Once we have a light in the scene it would render without background:

aiskydomelightonly

To add a background go to the Render Settings with the little icon from the shelf. Switch to > Render Using Arnold Renderer. At the tab > Arnold Renderer > Environment click on the Background checkerboard icon and select the aiPhysicalSky.

rendersettings

The aiPhysicalSky node is only available here if you have it created in the previous step with the Skydome Light. If  you have decided to use a HDR image for lighting you can use the same HDR file as background image. Since the background image linked at the Render Settings does not contribute to lighting, you can use any file here (also regular 8 bit jpeg images). The free HDR samples from the sibl archive come mostly with high resolution jpeg images, they should be preferred here.

backgroundcreateskyshader

At the Color attribute of the aiSky node click on the Texture checkerboard icon, in the Create Render Node popup choose the > Maya > 2D Textures > File node and load an external image.

backgroundcreateskyshaderfile

To make the support geometry of the aiSkyDomeLight or aiSky invisible in the viewport you can switch off the LOD Visibility at the Attribute Editor.

aiskydomelightvisibility

Now with the groundplane selected RMB > Assign New Material.

assignnewmaterial

In the popup window select > Arnold > Shader > Surface > aiStandard.

aistandard

In the Attribute Editor change the diffuse color. Click on the IPR (Interactive Render Preview) button. You might notice a black gap between the terrain and the horizon.iprterrain

The Physical Sky model renders everything black below a latidude of 0 degrees. To fix it create another Poly Plane with no subdivision, scale it to a value of 10000000 (=100 km) place it slightly below the terrain to avoid intersections and with RMB > Assign Existing Material (the same terrain material). If you have changed geometry in your scene you need to klick on the IPR refresh icon to update it. Other changes in the scene like navigation or shader modifications are automatically updated.

iprrefresh

In the aiPhysicalSky node you can influence the lighting and color mood by changing Elevation and Azimuth of the sun. More information about the Physical Sky model with example pictures can be found in the Arnold Manual.

aiskysettings

Continue with Maya & Arnold Part 3 –Three-Point Lighting

Maya & Arnold – 1 Setup

By Maya, Rendering, Shaders & Texturing

Arnold will be automatically installed with Maya 2017, by default version MtoA 1.3.0 (Maya to Arnold), but it’s still possible to manually install newer versions of MtoA. The most recent versions can be downloaded here. To activate it in Maya go to > Windows > Settings/Preferences > Plugin Manager and tick both mtoa.mll boxes, refresh, close.

loadplugin

Let’s create a project folder which conveniently bundles textures etc. associated with the Maya scene in one place. Go to > File > Project Window. Click “New”, type in a name in “Current Project” and change the Location. As soon as you hit “Accept” Maya automatically creates a set of folders there.

projectwindow

Now go to > File > Save Scene As … and save the file to the “scenes” directory. A prefix with the date or a consecutive number makes it easier to navigate between iterations of your work later.

saveas

The advantage of the Project folder is, that files associated with the Maya scene are stored in one place. To share projects with different computers you just copy the complete project folder containing texture maps etc. to the new place. If you want to switch the project folder in Maya simply choose > File > Set Project, navigate to the project folder you want to work with and hit “Set”.

Let’s start with a ground and > Create > Polygon Primitives > Plane or use the Polygon Shelf.

polyplane

Arnold calculates the light decay in real world measures therefore it’s recommended to work with somehow realistic measures in your scene. The default size of the Plane is 1×1, Maya’s default units are centimeters, so we need to increase its size. In the next step we will add a terrain structure to the plane and to make the details visible we need to add more subdivisions to the plane. Be careful here, if you crank up the subdivision too high Maya will slow down or freeze.

planesubdiv

One easy technique to create a terrain is to use the sculpt tool. An alternative texture based method will be explained below. Tostart sculpting switch to the Sculpting tab and select the Lift Tool.

sculpting

Adjust the brush size with B + drag or middle mouse button (MMB)-drag left/right. The brush strength can be changed with M + drag or MMB-drag up/down and pull out some hills. In case your groundplane is cut off in the viewport select the camera in > Windows > Outliner and increase the Far Clip Plane value.

farclipplane

Instead of – or in addition to sculpting you can also use the Texture deformer to add roughness to the ground. With a subdivided plane selected go to > Deform > Texture. In the Attribute Editor increase the Strength to 10. Click on the Texture checkerboard icon and in the Create Render Node popup choose a Maya > 2D Texture > Noise node. Fractal, Simplex Noise and Mountain works also or you can choose the file node and link a height map (download here).

texturedeformer

I was after a kind of extraterrestrial landscape and ended up with these noise settings.

noisesettings

You can deform surfaces also with displacement shaders during rendertime with the disadvantage that the distance between displaced surface and other objects cannot be seen in the viewport. It is more memory efficient and useful for rendering surfaces like water.

Continue with Maya & Arnold Part 2 – Skydome Lighting and Background

Maya & Arnold 2017

By Maya, Rendering, Shaders & Texturing

With this multi part tutorial you can learn how to properly set up a Maya project with image based and 3-point lighting, how to create texture shaders, how to work with Cameras and render single different passes (AOVs) for compositing.

dofipr

1 Setting up a Project in Maya
2 Setting Up Skydome Lighting and Background
3 Three Point Lighting
4 Camera / Depth of Field Blur
5 Sequence Rendering
6 AOVs
7 Texture and Normal Mapping
8 Displacement Mapping
9 Creating Ocean Surfaces with the HOT Plugin for Maya and Arnold
10 Texturing with the Substance plugin in Maya and Arnold
11 Rendering with the Volume Shader

Soft / Rigid Body Simulation Including Keyframe Animated Objects in Maya

By Maya, Motion Graphics, Simulation

In this tutorial you can learn how to simulate interactions between soft and rigid objects and how to include keyframe animated elements in the simulation.

We will use the Bullet engine which is in most cases faster than Maya’s nDynamics engine. It ships with the Maya 2017 installation. To activate Bullet, go to > Windows > Settings / Preferences > Plug-in Manager and at “bullet.mll” make both ticks.

If you like to work in a visually pleasing environment it is recommended to set up your lighting and Viewport 2.0 as described in this tutorial.

Start with a groundplane > Create > Polygon Primitives > Plane and scale it. Bring in the first collision object with > Create > Polygon Primitives > Cube and RMB >Assign New Material. Move it up. Switch the UI mode to “FX” and you should now have Bullet in Maya’s menu.

2017_fx

To start with the Bullet simulation select the cube and > Bullet > Active Rigid Body.

2017_activerigidbody

Press Play and the Cube falls through the ground. To include the groundplane in the simulation select it and > Bullet > Passive Rigid Body. Now the cube should stop on the ground. You can rotate the cube at it’s initial position to make the collision more interesting. Before you make changes in your scene always go back to Frame 1 with the |<< button at the playbar. If your simulations runs too fast go to > Windows > Settings / Preferences > Preferences > Time Slider or click on the gear icon below the playbar. Change the Max Playback Speed to Real-time.

2017_playbackspeed

Now let’s add a sphere and make it soft. Soft body simulations calculate bending and stretching between polygons and the default sphere’s different polygon sizes delivers not the best topology here. Instead > Create > Polygon Primitives > Cube, hit “3” key and then > Modify > Convert > Smooth Mesh Preview to Polygons. Alternatively the Soccer Ball and the Platonic Polygon Primitives have also a good polygon layout.

2017_smoothmeshpoly

Increase the subdivision by repeating the last steps: hit “3” key again and > Modify > Convert > Smooth Mesh Preview to Polygons. Now add the rounded cube to the simulation with > Bullet > Soft Body.

2017_softbody

When you now hit play the objects interact with each other. In the Attribute Editor at the bulletSoftBodyShape you can tweak the softness and interaction details. It is recommended to switch on Generate Bend Constraints and Enable Shape and Volume Matching. By increasing the Pressure the shape becomes more stable.

2017_softbodyshape

If your soft body slips through the ground, select the bulletSolver object in the Outliner and in the Attribute Editor under Solver Properties activate Ground Plane. If that doesn’t help increase the Internal Fixed Frame Rate to 120 Hz.

2017_bulletgroundplane

Now > Create > Polygon Primitives > Pyramid to bring in the third object. To move objects in other directions than downwards following gravity, you can give rigid bodies an initial velocity. In the Attribute Editor > BulletRigidBodyShape > Initial Conditions you could add Initial Velocity in x direction and let it rotate around z axis for instance by changing the values there.

2017_initialvelocity

If you want to have more control over the animation it is also possible to mix keyframed objects with the simulation. The important thing is, that you turn the pyramid into a rigid body before adding keframes. Select the pyramid and > Bullet > Active Rigid Body. Then you can animate it. Go to Frame 1, place the pyramid at the desired position, hit “S” key, go to the next position in the timeline, move the object, hit “S” key and so on. With the pyramid selected then go to the > Attribute Editor > bulletRigidBodyShape tab and switch Body Type to Kinematic RigidBody. This tells the Bullet engine that the pyramid comes with it’s own animation. The Collider Shape Type needs to be set to “hull”, otherwise the Bullet engine would internally work with the default simplified box shape representation. With “Collider Shape Margin” you can adjust the padding around the shape.

2017_kineticrbd

When you go back |<< and press play all objects should now interact with each other.

2017_bulletresult2

If you want to have more granular control over the simulation especially with soft bodies or if you like to apply different force fields you can alternatively simulate with Maya’s nDynamics engine. It is slower than the Bullet engine but can be more precise. The handling is similar like with Bullet, you find the tools in the FX interface under the nCloth and Field/Solvers menu.

Advanced Maya Viewport 2.0 Setup

By 3D Basics, Maya, Shaders & Texturing

In this tutorial you can learn how to set up 3-point lighting, some shading basics, and how to tweak Viewport 2.0 – Maya’s built in realtime renderer. Along the way you will find some useful tips how to set up a project and organize objects in the Outliner.

Viewport 2.0 Tutorial Result

I used the free plant model “Dandelion” from xfrog.com (direct download here), the HDR panorama “05-16_Day_C” from noemotionhdrs.net and a photo-scanned low-poly ground model which you can download here. But any other assets can be used to follow this tutorial.

Set up a new project with > File > Project Window. Click “New”, type in a name in “Current Project” and change the Location if appropriate. As soon as you hit “Accept” Maya automatically creates a set of folders on your drive.

2017_projectwindow

Copy the downloaded files to the newly created sourceimages directory. Back in Maya go to > File > Save Scene As … type a name and save the file to the “scenes” directory. The idea behind the Project folder is, that files associated with the Maya scene like texture maps are stored in one place. If you or someone else want to work with this project on another computer then you just copy the complete project folder containing sourceimages, scenes, etc. to the new place. To switch the project in Maya choose > File > Set Project, navigate to the project folder you want to work with and hit “Set”.

2017_SaveAs

Now > File > Import the Maya file “GC17_3.mb”. The plant should approximately cover the base grid. It consists of 24 lines in x and z direction with a distance of 1 cm (Maya’s default units are centimeters). 24 x 24 cm is a good size for this plant. The scaling can be changed anytime, but for lighting, simulation or when you want to exchange models within a team it is recommended to work with the proper measures right from the start. If you prefer a clean workspace you can go to > Display and uncheck > Grid.

2017_ImportedDefault

The dandelion model already comes with textures and alpha masks. To make them visible select > Shading > Hardware Texturing or switch on the tiny checkerboard icon above the Viewport. You can also use the “6” and “5” key to switch texturing on and off.

2017_HardwareTexturing

When you zoom in to inspect the leaves you can see that the texture is only visible on one side.

2017_hardwaretexturingblack

To find out why you can open > Windows > Outliner and select the geometry, then > Display > Normals to make their direction visible. You can see that without lights in the scene only the outward facing Normals will be shaded (as long as the Ambient Color of the material is black).

2017_hardwaretexturingnormals

Select > Display > Normals again to hide them. Switch on the light bulb icon above the Viewport or select > Lighting > Use All Lights. Since there are no lights in the scene, everything becomes black. You can also use the “7” and “6” key to switch the light mode on and off.

2017_lightson

Let’s start with > Create > Lights > Ambient Light. It evenly illuminates all surfaces without any shadow. Not quite realistic but we will use it later to slightly brighten the shadows. Changing it’s position or rotation does not affect its direction or strength.

2017_AmbientLight

To bring in shadows we need a ground object. Go to > File > Import … and select the downloaded “BeachRocks.obj” from the sourceimages folder. A Material with the scanned texture will be automatically created, just change the Ambient Color to black in the Attribute Editor. Move around the plant on the ground to a nice spot. To center the view select the plant and hit the “F” key, then adjust your viewing angle further.

2017_GroundImport

Let’s start the Three-Point Lighting with a black scene. Select the ambient light in the Outliner and hit the “H” key to hide it for now. Begin with the the Key Light, it represents the dominant light source, such as the sun, a window, or ceiling light. Select > Create > Lights > Directional Light. The Key light should be rotated 15-45 degrees above (seen from side view) and 15-45 degrees beside (seen from top view) to the camera’s viewing axis. Changing the position of a Directional Light has no effect. Switch on the Shadows icon above the Viewport or make a tick at > Lighting > Shadows. The Key Light defines the most visible lighting and shadows in the scene. In the Attribute Editor increase the Intensity accordingly. Also switch on “Use Depth Map Shadows”, maximize the Resolution and change the Filter Size to 20 to improve the shadow quality. You will notice that the shadow does not match the blossom. By default Viewport 2.0 works with OpenGl which does not consider alpha masks in materials. On Windows computers it is possible to use DirectX for even better realtime shading effects, different shader set ups are then required.

2017_directionallight

To soften and extend the illumination provided by the key light and to make more of the subject visible, we add a Fill Light. It can simulate light scattered from the sky (other than the sun), secondary light sources such as table lamps, or reflected and bounced light. If necessary, you may add several of them to a scene. Hide all lights in the Outliner with “H” and > Create > Lights > Spot Light. For better handling use the Scale Tool to make the light cone visible. Scaling does not change the light intensity of Spot- or Directional Lights (only Area Lights are affected). Seen from the top view, the Fill Light should come from a generally opposite angle than the Key Light – to fill it’s shadows. It can be raised to the subject’s height, but should be lower than the Key Light. The intensity of the Fill Light should be less than 50% of the Key Light. Since the Intensity of the Key Light is already 2.5 we can leave it at 1. Tick here also “Use Depth Map Shadows”, maximize the Resolution and change the Filter Size to 20 to improve the shadow quality. Changing the color of the Fill Light makes the scene look a little bit more interesting.

2017_FillLight

To highlight the edge of the objects and to help visually separate them from the background let’s add the Rim Light or Back Light. Place a Spot Light behind your subject, opposite from the camera. Tick here also “Use Depth Map Shadows”, maximize the Resolution and change the Filter Size to 20 to improve the shadow quality. To add some variation I changed the color to a colder tone.

2017_BackLight

Now the Three-Point Lighting set is complete. Switch on Key, Fill and Back Light in the Outliner. Let’s clean up the Outliner in the meantime. Rename the lights according to their function and > Create > Empty Group. MMB drag the Lights into the Null Object, create others for the cameras and the geometry. To hide the Groups in the Outliner you can select > Show > Objects > Sets and > Invert Shown.

2017_outlinerhidesets

Now you can collapse the groups with unused scene elements or hide them from the Viewport with the “H” key.

2017_outlinergroups

To make the material of the plant appear a little bit more lightweight, just increase the Translucence value in all plant shaders slightly.

2017_translucence

The shadows in some parts are quite dark – unlike in reality where almost always diffuse light is around. By using the Ambient Light with a very low intensity we can fake that effect here.

2017_ambientadjust

The ground texture looks a bit overexposed compared to the plant, so let’s adjust that. Select the object and in the Attribute Editor click on the Input icon next to the Color slider.

2017_croundcolorlink

You will be directed to the Texture attributes where you can decrease the Exposure.

2017_groundexposure

For the sky background create a sphere with a radius of 250 cm. It should enclose the ground but be not bigger, otherwise the quality of the shadows might become too poor (the anti aliasing of the lights is calculated relative to the dimension of the whole scene). With the sphere selected RMB > Assign New Material >Maya > Surface > Lambert.

2017_assignlambert

Click on the checkerboard icon next to the Color slider.

2017_assignbgtexture

The “Create Render Node” Windows pops up. Select > 2D Textures > File.

2017_assignbgtexturefile

In the Attribute Editor click on the folder icon and select the downloaded HDR image in the sourceimages folder (the low-res version is fine). Since the sky panorama is in HDR format (High Dynamic Range) the Color Space needs to be changed to RAW (without color correction). Reduce the Exposure to -1 for now, you can fine tune it later.

2017_bgexposureraw

The Normals of the Sphere are pointing outwards by default, but we need them inwards here. To flip the direction  select > Mesh Display > Reverse. In the Shape tab of the Attribute Editor switch off “Casts Shadows” and “Receive Shadows”.

2017_bgshadowoff

To prevent the lights affecting the intensity of the background go to the material settings in the Attribute Manager and maximize the Ambient Color and disable Diffuse. Then the material becomes a kind of self-illuminating. You can quickly test the effect by selecting the Light group in the Outliner. When you hit the “H” key to hide all lights in the scene, everything becomes black – except the Background Sphere.

2017_bgdiffuseambient

Now let’s tweak the Hardware Render Settings. In the Viewport go to > Renderer > Viewport 2.0  > Options, enable Screen-space Ambient Occlusion and maximize Samples, Radius and Filter. Ambient Occlusion adds a shadow effect at overlapping or angular surface areas. It does not work well with the alpha mask of the dandelion here, so we need to reduce the Amount to 0.3. In other scenes higher values should work fine. To add some more finesse adjust the Hardware Fog settings and activate the atmospheric effect in the Viewport at > Shading > Hardware Fog.

2017_hwrenderersettings

In the last step let’s add Depth of Field blur to the scene. Make sure that your custom camera is the active camera. In the Viewport select > Panels > Perspective > (Camera Name). In the Shape tab of your custom camera make a tick at Depth of Field and change the Focus Distance according to the distance from the camera to the focus object. Activate >Shading > Depth of Field or the small icon above the Viewport.

2017_dofsettings

lighteffectslayers