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

Plant Vertex Color Generator

7/21/2014

0 Comments

 
This is a handy little tool I wrote to generate the vertex colors for a tree with vertex animation. Painting these colors isn't much fun and can be a bit time consuming to get right. Hopefully this will allow me to create more vertex animated plants in a shorter time frame. Here's a video of the tool and shader in action: You can see the tree's vertex colors on the left in Unity, before and after generation in maya
I am hoping to add support for specific channels to be regenerated instead of the whole thing and some support for other foliage types. One thing to note if you try it out is that it currently is very specific in how it expects the branch models to be made. Here is an image of the expected branch:
Picture
Simply put, it's pivot must be at 0,0,0 and it must face down the world X at 0 rotation. You are free to duplicate and rotate this obviously, but we want all the leaves to have an origin point like this so the generator doesn't get confused.
Picture

Source Code:

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

plantvertexcolorgenerator.py
File Size: 4 kb
File Type: py
Download File

Also uploading the shader so you can test the effect yourself.

Unity Shader:

phongnormalclipvertexanim.shader
File Size: 43 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.