Wednesday, January 14, 2009

Exterior Lighting

Introduction

The following routine sets up a standard Sunlight System (this uses a target direct light), including ambient light and standard shadow map settings. New users can use this routine as a 'good start' and it will help them understand what settings effect the lights and shadows. This basic setup and settings routine can be fine tuned depending on the effect required

NOTE: Refer to the MAX/VIZ Help for extensive notes on use of IES Sun, IES Sky or a Texture Sky

Download Sample Data

In order to follow this tutorial, you may want to use the supplied files. Please read the sample data instructions before downloading.

kf402_files.zip (385kb)

Place a Sunlight System in the scene and configure

  • Open kf402_01.max
  • In the Top viewport zoom out so that the site is in the centre of the viewport and occupies about one quarter the space available
  • Create Panel > Systems press Sunlight - the cursor turns into a small cross
  • In the top viewport left click and drag at the centre of the site to create a Compass helper object just big enough so that it can be seen easily
  • Take the left finger off the left mouse button and drag the mouse down. This will extend a Sunlight object away from the site into the sky. Drag the Sunlight so that it just disappears from the viewport

NOTE: Notice that in the User viewport the scene is 'bleached'. This is an unfortunate effect of the Daylight System so the Scene's default lighting needs to be used to view the scene comfortably in the viewport. To see the effects of changes in sunlight parameters test render the scene at each stage

  • Viewport Configuration dialog > Uncheck Default Lighting if this is checked. This will display the basic effects of the sunlight in the viewport

To optimise the sunlight for rendering quickly change the parameters of the Sunlight in the Modify Panel thus:

  • General Parameters rollout > Shadows - Set this to Shadow Map

NOTE: The Ray Traced Shadows option calculates accurate and fine shadows. However, for infrastructure and landscape work where the scene 'load' can be great this type of shadow can have major effect on rendering times. This tutorial shows you how to configure Shadow Mapped Shadows to reproduce the effect of ray traced shadows. Efficiency in rendering time is therefore greatly increased

  • Directional Parameters rollout > Light Cone > make sure Show Cone is checked and Overshoot is unchecked
  • Move the Hot Spot spinner up until the Sunlight cone just surrounds the site to be illuminated. If this goes to far from the edges of the site the shadows will become less sharp. Adjust the Falloff similarly, but this time move it down to decrease the size of the Hot Spot. Try to keep the Falloff size as close to the Hotspot size as possible (there is always a small discrepancy)
  • Left click to finish the Sunlight creation
  • Throughout the next steps test render the scene at each stage

Set location and time

  • Sunlight Parameters rollout > Setup
  • Control Parameters > Set the time to 11.00 am, the month to 8 and the day to 20
  • Press Get Location and in the Map dropdown list pick Europe. In the City list pick a City (Birmingham UK for example). The Sunlight will then be positioned in the sky as it would be in Birmingham on August 20th at 11.00am

Logarithmic Exposure Control

  • Environment dialog > Exposure Control rollout > set this to None if Logrithmic Exposure Control is selected

NOTE: MAX and VIZ are different in the exposure control settings in that VIZ defaults to Logrithmic exposure control On but MAX defaults toNone. Turn this off for now and use it later if required

Sunlight settings

  • Shadow Parameters rollout > Click the colour swatch next to Color and change the colour to very dark grey instead of black
  • Change the Density to 0.8
  • Shadow Map Parameters rollout > Bias - Set to 0 - this changes how far the base of a shadow is from the object
  • Density - keep on 1
  • Size - Set to 3000 - this is the size of pixels of the shadow 'map' (or image) used for the shadows. On a large site the size should go up accordingly (not above about 5000) and a smaller site down to 512. Decreasing the Map Size and increasing the Sample Range and / or Fall Off (Directional parameters rollout) will make shadows less sharp:
  • Sample Range - Keep at 4. However, to make shadows sharper decrease the amout to 2 or 3. To make them less sharp increase to 5 or 6
  • 2-Sided Shadows - uncheck

Provide ambient lighting

If just a Sunlight System is used (ie one light), then the sides of objects that are not in sunlight will appear very dark or black and shaded areas will appear too dark next to lighter areas. This is a totally unnatural situation. In the real world light is reflected from surface to surface giving shaded areas an element of light and more subtle shade. This type of lighting is called 'ambient' light. To recreate ambient light in a scene a Skylight light object can be used with the shadow settings turned off and further tweeks made through the Environment dialog settings

NOTE: In MAX rendering with light tracing is often used to give very good global illumination (not covered in Key Fundamentals)

  • Create Panel > Lights > Skylight > In the Top viewport left click at the centre of the scene to position a Skylight object
  • Change the Multiplier to 0.3 and Rays per Sample to 5 (this reduces rendering time)

  • Finally, visit the Environment dialog settings to further configure ambient light level and colour

Environment Dialog settings

  • Render > Environment dialog > Background. Change the background colour to light blue by clicking the colour swatch
  • Global lighting > Set the Level spinner to 1.1. This further adds to the ambient lighting effect
  • Ambient Light > set the colour to mid grey

TIP: This tutorial does not explain the Exposure Control settings (there are enough to think about initially). However, if you do want to experiment choose Logarithmic Exposure Control in the dropdown list. Experiment with mainly Brightness, Contrast and Physical Scale, producing test renderings to evaluate results. To start with lower the brightness to about 10

NOTE: Key Fundamentals does not cover Atmospheric Effects such as Fog, Volume Fog and Volume Light. Reference MAX / VIZ Help for in-depth information on how to setup these effects

Fine-tune shadow settings

On the Sunlight parameters:

  • Colour: darker > Density: 1 > Size 4000 > Sample Range: 2

  • Colour: lighter > Density: 0.8 > Size: 1000 > Sample Range: 6

To animate the Sunlight through the day

  • In the Control Parameters set the time to 6.00am
  • Make sure the time slider is set to 0 then press the Auto Key button on the Animation Controls. Move the time slider to the end (this defaults to 100) then in the Motion Panel set the time to 8.00pm
  • Turn off the Auto Key button and move the time slider back to 0. Notice that the sunlight moves across the sky. The time and Sunlight position can now be quickly set at any time during the scene creation

NOTE: When a scene is first opened the time slider is set to 0. The scene will appear dark until the Sunlight is animated back to the required time of day using the time slider. In general, animate the Sunlight for quick shadow studies, then remove the animation by right clicking on any key (below the Time Slider) and selecting Delete Key > All



www.thevideostreet.com

Monday, January 12, 2009

Making a chess pawn tutorial

Click on the 3dsmax-3dmodelchesspawn-tutorial.jpg1 Render Scene Dialog you will see the Render window is open then open Assign Renderer > click
On the Production button and select the Mental Ray click OK

3dsmax-3dmodelchesspawn-tutorial.jpg2

3dsmax-3dmodelchesspawn-tutorial.jpg3


[2]-Click on the Geometry > Standard primitives > Plane and use the following setting
Create a Plane in the top view set like this in the perspective view
3dsmax-3dmodelchesspawn-tutorial.jpg4

3dsmax-3dmodelchesspawn-tutorial.jpg5

3dsmax-3dmodelchesspawn-tutorial.jpg6


[3]-Now click on the line button create a shape like this with the help of line tool
In the front view
3dsmax-3dmodelchesspawn-tutorial.jpg7

3dsmax-3dmodelchesspawn-tutorial.jpg8


[4]-Now apply the lathe & Turbo smooth modifier
Then use the following setting
3dsmax-3dmodelchesspawn-tutorial.jpg9

3dsmax-3dmodelchesspawn-tutorial.jpg10


[5]-Your image should like this in the front view
3dsmax-3dmodelchesspawn-tutorial.jpg11


[6]-Click on the sphere button and create a sphere like this in the top view
Put like this in the front view
3dsmax-3dmodelchesspawn-tutorial.jpg12

3dsmax-3dmodelchesspawn-tutorial.jpg13

3dsmax-3dmodelchesspawn-tutorial.jpg14


[7]-Create a shape like this with the help of line tool in the front view
Then apply the Extrude modifier
3dsmax-3dmodelchesspawn-tutorial.jpg15

3dsmax-3dmodelchesspawn-tutorial.jpg16


[8]-Select the Shape right click Convert into Editable poly then select Vertex mode in the Editable poly
And make a selection like this image as shown below
3dsmax-3dmodelchesspawn-tutorial.jpg17

3dsmax-3dmodelchesspawn-tutorial.jpg18


[9]-Now adjust the vertex like this in the front view and left view
3dsmax-3dmodelchesspawn-tutorial.jpg19

3dsmax-3dmodelchesspawn-tutorial.jpg20


[10]-Select the shape click on the 3dsmax-3dmodelchesspawn-tutorial.jpg21 Mirror Button you will see the mirror
Window is open then use the following setting your image should like this in the left view
3dsmax-3dmodelchesspawn-tutorial.jpg22

3dsmax-3dmodelchesspawn-tutorial.jpg23


[11]-Open the material window click on the 3dsmax-3dmodelchesspawn-tutorial.jpg24Standard Button and select the (Glass [Physics_Phen]
You will see the (Glass [Physics_Phen] window is open use the following setting your material should like this
3dsmax-3dmodelchesspawn-tutorial.jpg25

3dsmax-3dmodelchesspawn-tutorial.jpg26

3dsmax-3dmodelchesspawn-tutorial.jpg27


[12]-In the Second material just import a bricks jpg and assign to the Plane
3dsmax-3dmodelchesspawn-tutorial.jpg28


[13]-Now click on the omni and set the omni like this in the front View
3dsmax-3dmodelchesspawn-tutorial.jpg29

3dsmax-3dmodelchesspawn-tutorial.jpg30


[14]-After set the light Press (F9) you will see the final image is ready
Save the file in your folder
I Hope you will be enjoyed
Thanks for watching my tutorial


3dsmax-3dmodelchesspawn-tutorial.jpg31

puzzle game tutorial

Click on the Shape > Spline > Rectangle and use the following setting
Create a Rectangle in the top view set like this in the top view
3dsmax-3dpuzzlegamemodel-studio-tutorial1

3dsmax-3dpuzzlegamemodel-studio-tutorial2

3dsmax-3dpuzzlegamemodel-studio-tutorial3

[2]-Select the Rectangle right click and select the Editable Spline
Then select the Vertex Mode in the Editable Spline
Then select the Insert Button and set the vertex like this
3dsmax-3dpuzzlegamemodel-studio-tutorial4

3dsmax-3dpuzzlegamemodel-studio-tutorial5

3dsmax-3dpuzzlegamemodel-studio-tutorial6

[3]-Your vertex should like this and again set the two more vertexes like this
Same step for other vertex your spline should like this in the top view
3dsmax-3dpuzzlegamemodel-studio-tutorial7

3dsmax-3dpuzzlegamemodel-studio-tutorial8

3dsmax-3dpuzzlegamemodel-studio-tutorial9

3dsmax-3dpuzzlegamemodel-studio-tutorial10

[4]-Select the vertex like this then right click and select the (Smooth mode)
Your spline should like this in the top view
3dsmax-3dpuzzlegamemodel-studio-tutorial11

3dsmax-3dpuzzlegamemodel-studio-tutorial12

3dsmax-3dpuzzlegamemodel-studio-tutorial13

[5]-With Still select the vertex now change the mode smooth to Bezier
Drag the vertex like this now after drags all vertexes your spline should like this
In the top view
3dsmax-3dpuzzlegamemodel-studio-tutorial14

3dsmax-3dpuzzlegamemodel-studio-tutorial15

3dsmax-3dpuzzlegamemodel-studio-tutorial16

[6]-Now apply the Bevel Modifier and use the following setting
Your image should like this in the top view
3dsmax-3dpuzzlegamemodel-studio-tutorial17

3dsmax-3dpuzzlegamemodel-studio-tutorial18

3dsmax-3dpuzzlegamemodel-studio-tutorial19

[7]-Open the material window
Click on the map button an import a map like this
This material assign to the Plane
3dsmax-3dpuzzlegamemodel-studio-tutorial20

3dsmax-3dpuzzlegamemodel-studio-tutorial21

[8]-Again click on the Map button an import a map like this
Before assign the map to the puzzles open the coordinate palette
And select the (Environment) option in the coordinate palette
Then assign the material to the Puzzles
3dsmax-3dpuzzlegamemodel-studio-tutorial22

3dsmax-3dpuzzlegamemodel-studio-tutorial23

[10]-After assign the material press (F9) and you will see the final is ready
Save the file in your folder
Thanks for watching

3dsmax-3dpuzzlegamemodel-studio-tutorial24