Wednesday 22 October 2008

Using the Light Lister and Ram Player



In order to see what lighting you have in a scene a really useful tool is the light lister. You will find this under tools > Light lister. Here you can change the listed parameters without having to enter the modify panel and you can keep the lister up on your desktop for easy viewing.


Another very useful tool is the RAM Player. This allows you to render two images and load them into the player. This is ideal when you are tweeking the lighting in your scene. Sometimes the changes are very subtle, and therefore the ram player allows you to toggle between the two renders to see the changes.


Go to Rendering > RAM player, and up pops the Player on the desktop. In Channel A, click on the small green teapot, which will allow you to load your last render. I have changed the colour of the spotlight and then re-rendered the image. In Channel B load the newly rendered image. Now you can see the two renders, and can move the small slider along to see the difference in the renders.


Basic Lighting - Spotlights, Directional and Omni Lights















Max has two default lights in the viewports which enable the user to see their models in a basically lit environment. As soon as you start to add your own lighting, that default changes, and Max updates the view to whatever lighting that you specifiy.












Make a small scene, click and drag a plane in the perspective viewport and place assorted standard and extended primitives on that plane, so that you can test out the different lights.






Go to the Creat panel, and click on the small lighting symbol. In the Front viewport click and drag a target spot.












In order to see your lighting update it is a good idea to change one of the viewports to Perspective view - Active Shade - Spot.










Target Spotlights are very useful for mood lighting, free target spots can be used for car headlamps, streetlamps etc. A potlight illuminates an area within a cone, similar to a stage light. Target Spotlights point at a target that you aim, whereas freww spotlights are taargetless, so they can be moved easily. You can align a target light to a path and animate it if you wanted to.










With your target spotlight highlighted, go to the modify panel, and it will reveal a target spotlight rollout.










Under general parameters, you can change the light to either an Omni light or Directional light. An Omni light radiates light in all directions and is ideal for general sunlight, or an overhead light in a room, the light radiates from the one source. Directional lights use a cone of illumination and the sides of the cone are parallel rather than radiating from a single source like spotlights.





You will also notice that you can add shadows. Just check the box next to shadow and miraculously you will get shadows within your scene. Here you can specify different shadow types using different rendering techniques , which will be covered next semester.








In the next box you will find Intensity/Colour Attenuation. Here you can change the intesity of the light by changing the Multiplier spinner, and if you click on the colour square you can change the colour of the light. Here I have changed the colour of the light to light blue, and have added an extra target spot to illuminate the scene even more so that you can see the changes.





You can also change the attenution, but again this will be covered next semester. You can change your spotlight from a round stagelight to a square light in the spotlight parameters box.

In Advanced effects you can add a map to your spotlight. Check the projector map box and click on the map box to add either a proceedural map or one of your own. I have added a speckle map to mine and here is the effect it provides. Omni lights and Directional lights have the same rollouts and parameters, so it is a good idea to play with these to see what sort of lighting effects that you can produce.









Wednesday 8 October 2008

Tutorial 9 - Producing a reflective material


  1. In the Create panel go to Extended primitives. Click and drag a torus knot in the perspective viewport.
  2. Open the Material Editor. Pick an Anastropic shader as this is ideal for metal materials. Check on the diffuse button and change the colour to a dark blue. Make sure that you have a high specular level approx 60 and a high anastrophy approx 80.
  3. Navigate to the maps rollout further down the panel, Click on Reflection > None and click on Material Library. In the Material library there should be some environmental maps - pick a scene such as Hong Kong. This will now add the Hong Kong image to the reflective map channel.
  4. Drag the material from the slot to the torus knot.

Tutorial 8 - Material ID and Multi/Sub Object Proceedural Map








This technique is great when you have a poly model that requires different materials - such as a character wearing clothes.
  1. Click and drag a teapot into the perspective viewport.
  2. Convert the teapot to an editable poly.
  3. In the modify panel, check element.
  4. Scroll down to polygon properties to Material ID
  5. Click on the teapot spout and allocate ID 1
  6. Click on the lid and allocate ID 2
  7. Click on the belly of the teapot and allocate ID 3
  8. Click on the handle and allocate ID 4
  9. Come out of editable poly.
  10. Open the material editor.
  11. Click on Standard to pull up the proceedural map menu > choose Multi/sub object material > OK.
  12. You now have 10 material slots. You add materials or maps to the first four slots. Click on Material#standard and either add a map or make your own material. You then see these materials in the sample slot.
  13. Click and drag the sample slot material to the teapot and the different materials are automatically assigned to the different elements of the teapot.