The Persistence of Ignorance

Menu Home

Ambient Occlusion Baking

POV-Ray 3.7 RC6, July-2012 (5149 K)

Yet another usage for the mesh camera.

The accompanying sources illustrate how to use the new mesh_camera feature to bake an occlusion map for a mesh object. The mesh needs to be UV-mapped (a simple example mesh is included for tests, though it's not the Greek sculpture on the WIPs, but the Stanford dragon).

The trick consists on texturing the mesh in plain white and baking the effect of box-like formation of area lights (24, with insane area size). Then you use back this map to texture the mesh into your scenes (like in the WIPs below).

As usual, any comments, questions or suggestions are welcome...

WIPS, tests and other images:

baked_maps_demo-07-lead baked_maps_demo-08-copper baked_maps_demo-09-iron baked_maps_demo-10-bronze1 baked_maps_demo-11-bronze1 baked_maps_demo-12-iron baked_maps_demo-14-scracthed-paint greek_sculpture_AO2_map_blur

This site uses CMS Made Simple
© 1996-2016 Jaime Vives Piqueres

Creative Commons License