DingTo - 2012-01-08 20:14:44
Hi everyone,
the new year starts with a lot of fun!
Two days ago I decided to give the Cycles shader code a try and add a new node to the system.
I have done some Cycles – Blender integration and UI things last year, but this was new land for me.
As I liked the Checker Texture in the Blender Internal texture nodes, I decided to port that node over.
And voilà, here it is:

The Checkerboard Texture
My patch has been committed today by Brecht.
I learned a lot, porting that node to Cycles, was great fun. The commit is also a good reference for other developers, to see how to add a Texture Node. It’s not that trivial (at least it was not for me) and having the code run on CPU and GPU doesn’t make it easier.

The Checkerboard Texture in use
Thanks to Dalai Felinto, who helped me debugging and to Brecht van Lommel for some final tweaks. Also thanks to Robin Allen (who wrote the Blender Internal Texture Nodes).
So! Grab a new SVN Trunk build from Graphicall or compile yourself and have fun with it!
You can download the blend file for the Image shown above here.
Thomas