In Memoriam: Tai'lahr

OpenUru.org, along with the rest of the Mystonline community, is mourning the loss of Tai'lahr on October 16th, 2019.

Rest in Peace, friend.

Light Maps in Max

From OpenUru
Revision as of 15:34, 29 July 2011 by Mac Fife (talk | contribs) (Remove HR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Light Maps are what we use to either show light splashes (like you see from spot lights, etc), or for defining shadows better. You can use them just about everywhere, but keep in mind that they can bloat your texture prp file. Cyan kept the number they used of these small, and limited to interior places. For larger areas, consider using Vertex Painting to define your shadows better.

Credit for the information in this tutorial goes to Nye Sigmund who figured out how to use it.


Getting Started

Making Light Maps with Max is very easy, and those that are used to how it was done with Blender 2.49 and earlier, will recall how much of a pain it was then.

First you will need to set up your lights that will be helping produce your light splashes and shadows. Directional lights work good, but you can use any, however they MUST be Max Standard lights. Do NOT try and use Plasma Run Time lights for this (remember, Plasma RT lights are for lighting up the avatar and animated objects).

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap1.jpg

Once you have the lights set up, go to their Modification Tab. In my picture, I have check marks for the shadows. GPNMilano tested this, and they do not have to be checked in order for this to work in Plasma, however they may be needed for any other project you might be working on outside of Plasma.

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap2.jpg

Also, further down in the rollout, you need to set the map size to the same size as your actual textures being used on your object:

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap3.jpg

Next, select your object that the light map is going to be on (in this case it's my floor). In the Modifier Tab, add another Unwrap UVW modifier (NO! Do not use the one you put in to UV map your texture! This is going to be a 2nd UV channel, and must be separate.), in the roll outs, make sure you set this one to channel 2:

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap6.jpg

Next, open up the UV Editor and remap this 2nd channel so that all the faces lay inside the single texture tile. If you let the faces be outside the blue box, things will not look quite right.

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap7.jpg

Now call up the Component Manager and click on New > Render > Lightmap and assign it to the object.

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap8.jpg

In the roll out for it, make sure you change the UVW Mapping channel to 2:

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap9.jpg

Now, if you want you can use the F10 key and do a quick render and see how it is turning out:

http://assets.openuru.org/wiki/andy/MaxTutPics1/Mlightmap4.jpg

Once you export, you can link in your Age and see how it looks:

http://assets.openuru.org/wiki/andy/MaxTutPics1/KIimageltmap.jpg



Return To: 3DS Max Plugin Tutorials

Copyright (C) 2011 Andy Legate.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free Documentation License".