Difference between revisions of "Max:Lightmaps"

m (fixing thumbnail >.>)
Line 1: Line 1:
{{Tutorial|Light Maps}}
+
{{Tutorial|Lightmaps}}
{{Wikify}}
+
Lightmaps are used to show light splashes (like you would see from a spot light) or for defining shadows better. You can use them just about everywhere, but keep in mind that they can bloat your texture prp. Cyan kept the number they used of these to a minimum, and limited them to interior places. For larger areas, you might want to consider using Vertex Painting to define your shadows better.
Light Maps are used to show light splashes (like you would see from a spot light) or for defining shadows better. You can use them just about everywhere, but keep in mind that they can bloat your texture prp. Cyan kept the number they used of these to a minimum, and limited them to interior places. For larger areas, you might want to consider using Vertex Painting to define your shadows better.
+
  
 
==Getting Started==
 
==Getting Started==
[[File:Mlightmap1.jpg|thumb|right|Sample Lighting Setup.]]
+
[[File:Mlightmap1.jpg|thumb|right|Sample Lighting Setup]]
[[File:KIimageltmap.jpg|thumb|left|In-game screenshot of the result.]]
+
[[File:KIimageltmap.jpg|thumb|left|In-game screenshot of the result]]
  
Making Light Maps with 3ds Max is very easy. First you will need to set up your lights that will be producing the light splashes and shadows. Directional lights work well, but you can use any '''Max Standard''' light. Don't try to use Plasma Run Time lights for these (remember, Plasma RT lights are for lighting the avatar and animated objects).
+
# You  need to setup your lights that will be producing the light splashes and shadows. Directional lights work best, but you can use any '''Max Standard''' light. Don't use Plasma Run Time lights for these because they are only for lighting the avatar.
 +
# [[Media:Mlightmap2.jpg | Go to their Modification Tab.]] Adjust the light to your tastes.
 +
# [[Media:Mlightmap3.jpg | Set the map size]] to the same size as the actual textures being used on the object.
 +
# Select the object that the light map is going to be on (in this case it's a floor). In the Modifier Tab, add another Unwrap UVW modifier [[Media:Mlightmap6.jpg | make sure you set this one to channel 2.]]. Do not use the one you put in to UV map your texture - This will need to be a 2nd UV channel in the rollouts.
 +
# Open the UV Editor and remap the 2nd channel so that all the faces [[Media:Mlightmap7.jpg | lay inside the single texture tile.]] Make sure all the face are inside the blue box.
 +
# Go to the ''Component Manager'' and click on [[Media:Mlightmap8.jpg | New > Render > Lightmap]] and assign it to the object.
 +
# In the rollout, make sure you [[Media:Mlightmap9.jpg | change the UVW Mapping channel to 2.]]
  
Once you have the lights set up, [[Media:Mlightmap2.jpg | go to their Modification Tab.]] Adjust the light to your tastes.
 
  
Also, further down in the rollout, you need to [[Media:Mlightmap3.jpg | set the map size]] to the same size as the actual textures being used on the object.
 
  
Next, select the object that the light map is going to be on (in this case it's a floor). In the Modifier Tab, add another Unwrap UVW modifier (Do not use the one you put in to UV map your texture - This will need to be a 2nd UV channel), in the rollouts,  [[Media:Mlightmap6.jpg | make sure you set this one to channel 2.]]
+
<!--This whitespace moves the following BELOW the thumbnails-->
 
+
Now, if you want you can use the F10 key and do a [[Media:Mlightmap4.jpg|quick render]] and see how it is turning out. Once you export, you can link in your Age and see how it looks.
Next, open up the UV Editor and remap this 2nd channel so that all the faces [[Media:Mlightmap7.jpg | lay inside the single texture tile.]] If the faces are outside the blue box, things will not look right.
+
 
+
Now call up the Component Manager and click on [[Media:Mlightmap8.jpg | New > Render > Lightmap]] and assign it to the object.
+
 
+
In the rollout for it, make sure you [[Media:Mlightmap9.jpg | change the UVW Mapping channel to 2.]]
+
 
+
Now, if you want you can use the F10 key and do a [[Media:Mlightmap4.jpg | quick render]] and see how it is turning out.
+
 
+
Once you export, you can link in your Age and see how it looks.
+
  
 
[[Category:3ds Max Tutorials]]
 
[[Category:3ds Max Tutorials]]

Revision as of 13:54, 27 July 2011

Disambig gray.png

This is a tutorial page.Versions available: PyPRP; 3ds Max; Korman.
 

Lightmaps are used to show light splashes (like you would see from a spot light) or for defining shadows better. You can use them just about everywhere, but keep in mind that they can bloat your texture prp. Cyan kept the number they used of these to a minimum, and limited them to interior places. For larger areas, you might want to consider using Vertex Painting to define your shadows better.

Getting Started

Sample Lighting Setup
In-game screenshot of the result
  1. You need to setup your lights that will be producing the light splashes and shadows. Directional lights work best, but you can use any Max Standard light. Don't use Plasma Run Time lights for these because they are only for lighting the avatar.
  2. Go to their Modification Tab. Adjust the light to your tastes.
  3. Set the map size to the same size as the actual textures being used on the object.
  4. Select the object that the light map is going to be on (in this case it's a floor). In the Modifier Tab, add another Unwrap UVW modifier make sure you set this one to channel 2.. Do not use the one you put in to UV map your texture - This will need to be a 2nd UV channel in the rollouts.
  5. Open the UV Editor and remap the 2nd channel so that all the faces lay inside the single texture tile. Make sure all the face are inside the blue box.
  6. Go to the Component Manager and click on New > Render > Lightmap and assign it to the object.
  7. In the rollout, make sure you change the UVW Mapping channel to 2.


Now, if you want you can use the F10 key and do a quick render and see how it is turning out. Once you export, you can link in your Age and see how it looks.