Difference between revisions of "Ambient occlusion vertex color"
(wikiname) |
(categories, cleanup, pros/cons) |
||
Line 1: | Line 1: | ||
<!-- ## page was renamed from Ambient-Occlusion Vertex Color --> | <!-- ## page was renamed from Ambient-Occlusion Vertex Color --> | ||
− | |||
− | |||
= Ambient-Occlusion Vertex Color = | = Ambient-Occlusion Vertex Color = | ||
+ | [[VertexColor|Vertex color]] can be used to store [[AmbientOcclusionMap|ambient occlusion]] (AO) lighting information. | ||
− | + | == Pros == | |
+ | Vertex color AO works well for meshes that use tiled textures, like environment models, because the tiling prevents unique lighting from being added to the textures. In this case texture-based AO would require a separate non-tiled texture using a second set of UVs, which would increase the texture memory and also increase the vertex count for the model (to store the 2nd set of UVs). | ||
− | == | + | == Cons == |
+ | The downside of vertex color is that AO resolution is dependent on the complexity of the mesh. The less vertices there are, the less precise the shading will be. More edges can be added to the model, but it usually requires a tedious manual process. | ||
− | [http://doc.crymod.com/SandboxManual/frames.html?frmname=topic&frmfile=MaterialEditorRef.html | + | == Examples == |
+ | [[CryEngine2]] uses vertex color for baked ambient occlusion, see the [http://doc.crymod.com/SandboxManual/frames.html?frmname=topic&frmfile=MaterialEditorRef.html Sandbox Manual]. | ||
− | + | == Methods == | |
− | The | + | <span id="Baking_Vertex_Color_AO_in_3ds_Max"></span> |
+ | === Vertex AO in 3ds Max === | ||
+ | The simplest way to bake vertex color AO in 3ds Max is to use Radiosity. For additional methods, see the thread [http://boards.polycount.net/showthread.php?t=52495 Baking Vertex Illumination without using radiosity] on the Polycount forum. | ||
− | + | 1. Place skylight anywhere. | |
− | + | # Set Sky color to white. | |
− | + | # Turn on "Cast Shadows" (optional). | |
− | + | 1. Render -> Render. | |
− | 1. Place skylight anywhere | + | # Advance lighting tab. |
− | # Set Sky color to white | + | # Select Advanced Lighting Rollout. |
− | # Turn on "Cast Shadows" ( | + | # Set advance lighting to radiosity. |
− | 1. Render>Render | + | ## Radiosity Processing Parameters Rollout. |
− | # Advance lighting tab | + | ## Initial quality = 95. |
− | # Select Advanced Lighting Rollout | + | ## Refine Iterations (All Objects) = 1. |
− | # Set advance lighting to radiosity | + | ## Indirect Light Filte r= 1. |
− | ## Radiosity Processing Parameters Rollout | + | |
− | ## Initial quality | + | |
− | ## Refine Iterations (All Objects) | + | |
− | ## Indirect Light | + | |
# Rendering Parameters | # Rendering Parameters | ||
− | ## Re-Use Direct Illumination from Radiosity Solution | + | ## Re-Use Direct Illumination from Radiosity Solution. |
# Under Radiosity Processing Parameters click start. | # Under Radiosity Processing Parameters click start. | ||
− | 1. Select all the geometry | + | 1. Select all the geometry. |
# Command Panel -> Utility Tab -> More... | # Command Panel -> Utility Tab -> More... | ||
− | ## Assign Vertex Colors | + | ## Assign Vertex Colors. |
− | ## Vertex Illum | + | ## Vertex Illum. |
− | ## Lighting Only | + | ## Lighting Only. |
− | ## Color by Vertex | + | ## Color by Vertex. |
− | ## Radiosity | + | ## Radiosity -> Reuse Direct Illum. From Solution. |
− | ## Assign to | + | ## Assign to Selected. |
<<BR>> | <<BR>> | ||
{| border="1" cellpadding="2" cellspacing="0" | {| border="1" cellpadding="2" cellspacing="0" | ||
Line 47: | Line 47: | ||
|} | |} | ||
− | + | === Vertex AO in Maya === | |
− | + | ?? | |
+ | |||
+ | ---- | ||
+ | [[Category:Texturing]] [[Category:TextureTechnique]] |
Revision as of 09:53, 17 September 2010
Contents
Ambient-Occlusion Vertex Color
Vertex color can be used to store ambient occlusion (AO) lighting information.
Pros
Vertex color AO works well for meshes that use tiled textures, like environment models, because the tiling prevents unique lighting from being added to the textures. In this case texture-based AO would require a separate non-tiled texture using a second set of UVs, which would increase the texture memory and also increase the vertex count for the model (to store the 2nd set of UVs).
Cons
The downside of vertex color is that AO resolution is dependent on the complexity of the mesh. The less vertices there are, the less precise the shading will be. More edges can be added to the model, but it usually requires a tedious manual process.
Examples
CryEngine2 uses vertex color for baked ambient occlusion, see the Sandbox Manual.
Methods
Vertex AO in 3ds Max
The simplest way to bake vertex color AO in 3ds Max is to use Radiosity. For additional methods, see the thread Baking Vertex Illumination without using radiosity on the Polycount forum.
1. Place skylight anywhere.
- Set Sky color to white.
- Turn on "Cast Shadows" (optional).
1. Render -> Render.
- Advance lighting tab.
- Select Advanced Lighting Rollout.
- Set advance lighting to radiosity.
- Radiosity Processing Parameters Rollout.
- Initial quality = 95.
- Refine Iterations (All Objects) = 1.
- Indirect Light Filte r= 1.
- Rendering Parameters
- Re-Use Direct Illumination from Radiosity Solution.
- Under Radiosity Processing Parameters click start.
1. Select all the geometry.
- Command Panel -> Utility Tab -> More...
- Assign Vertex Colors.
- Vertex Illum.
- Lighting Only.
- Color by Vertex.
- Radiosity -> Reuse Direct Illum. From Solution.
- Assign to Selected.
<
>
Vertex AO in Maya
??