Artistic Experiments
  • Home
  • Reel
  • Shaders
    • Stylized Shaders
    • Lighting Techniques
    • Shader Effects
    • Cubemaps
    • Pixel Lit Shaders (Basic)
    • Vertex Lit Shaders (Basic)
    • Unlit Shaders (Basic)
  • Tools
  • WIP
  • Contact

Ambient Shadow Baker

7/23/2014

0 Comments

 
A few months ago I was working on trying to bake AO for transparent objects. While i didn't find a perfect solution, I did find that i could get decent results by baking shadows  from ambient lights if they were arranged properly. After running quick Gaussian Blur in photoshop, the results aren't terrible. Here is an example on the tree i made recently, without and with baked shadows.
Picture
I made this tool to speed up the process in setting up the lights and baking the shadows. It creates a Geodesic Sphere (based on a script by Trevor van Hoof )and places lights on every point to ensure even lighting. You can set the tessellation of the sphere via DetailLevels,  choose between ambient or point lights, and set a min height to create lights at to allow hemispherical lighting. Finally in terms of baking you can choose the UV channel to use, as well as the directory to place the baked texture in. 
Picture

Source Code:

baseuiwindow.py
File Size: 6 kb
File Type: py
Download File

ambientshadowbaker.py
File Size: 6 kb
File Type: py
Download File

Here is a shader for testing:

Unity Shader:

ambientalphaclip.shader
File Size: 21 kb
File Type: shader
Download File

0 Comments



Leave a Reply.

    Tools

    Similar to my Shader blog, I am using this to get better at making tools - mostly in Maya right now. Download, use for whatever, if you like them buy me beer, yada yada.

    Archives

    July 2014

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.