Python/GLSL cell-shading script

  • June 29, 2013
  • 421 Downloads
  • 1 Like
  • Blender 2.6x
  • Render: Blender Internal
  • Creator: WIP
  • License: CC-BY
You must be logged in to download.

Description:

Hello,

I downloaded the BsDev's .blend and I found some default.

In this .blend I use his idea to create a new cell-shading script without them.

This script use the tree color layers (red, green and blue) to better detect objects superposition. It's include in a Python script to use the current window size without weight the GPU execution.

EDIT 10 feb 2014 : I update the file with a new code. I change the outline method to a cleaner method. More you can now choose the outline color. The new method make given color pixel when the difference between current pixel color and the neighbour pixel color is greter than a given value and do nothing else. This method remove outline transprency (it was not beautiful) and remove darkening of faces and edges.

EDIT 26 apr 2014 : I've removed the subsitute function to use % operator that is built-in and I've discovered recently.

EDIT 12 june 2014 : I've found some mistakes and some possibilities for improvment so I update. I also added a little different shader that applie outline on texture too.

Comments:

  • OstrichFarmer87 profile picture
    OstrichFarmer87

    Ooh, nice :) thanks

    Written March 30, 2014
  • lordrockit profile picture
    lordrockit

    wonderful just amazing I love it. this works amazingly as a dynamic bge cel shader thank you

    Written July 28, 2014
  • N3stor profile picture
    N3stor

    Excellent, works better than another script I was using which didn't render under linux (Probably an OpenGl/Direct3d thing) this one does!

    Written March 10, 2016
  • RockyMadio profile picture
    RockyMadio

    Hi ! The cellshader looks really nice. But it doesnt put lines on everything. Like if 2 objects overlap on each other, the above one will not be lined. Could you please fix it?

    Written April 23, 2016