Pynodes

Scales Pynode

I made an attempt at creating a scales texture (ee the Scales .blend in the links). What might be interesting for other coders of repetative textures is that I separated out the code that controls how many times a texture is repeated in a separate node (also a Pynode because I needed a modulo operation that is at present not incorporated in the vector math node). The texture node itself then concerns itself only with generating a single 'unit texture'. That is not spectacular of course, but gives you the possibility of using a vector curve node to warp this 'unit texture' by modulating the incoming coordinates. This opens up the path to e.g. lizard scales and such. I included the noodle setup with a straight and a warped example:

Unwarped

(click on image for a larger view) screenshot of scales node setup

Warped

(click on image for a larger view) screenshot of warped scales node setup

Seperate scale coloring

The next example is done with a slightly different Pynode that allows for individual coloring of scales by a texture. It does this not by providing a color output but by a vector output that contains a color coordinate (one that is the same inside each scale) that can be plugged into a texture node.
koi carp
joi carp node setup

Sections

Links

External Links

Copyright

Creative Commons License
This work is licenced under a
Creative Commons Licence.