Code Monkey home page Code Monkey logo

osl-shaders's Introduction

This is a collection of osl shaders that I have found.

This collection is intended for use with a version of blender that has been compiled with osl shading enabled. OSL was introduced into blender svn around November 2012 to be included in the 2.65 release. There is a good chance that these can also be adapted with minimum effort to other render engines that support OSL shaders.

For each shader you should find a script file, a small rendered preview file and a sample noodle image showing the node setup used for the preview render as well as a bcm file (see below) to recreate the material. The preview renders were generated using bmps.blend which is available from blenders svn repository at https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests/rendering/cycles/blend_files/bmps.blend a copy is not included here due to size considerations.

BCM files are used by Online Material Library (OML) by Peter Cassetta and include the osl script as well as the node setup used for the sample render. The OML addon isn't included with official releases but is included with most svn builds from graphicall. To add manually see --
http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Material/Online_Material_Library
for more details.
From the OML Panel click the tools button and either open a local bcm file or open the file with blenders text editor and read bcm data from text block. Once you apply it to active you will have the node tree all setup for you ready to render.


To make use of OSL in blender - 
1. Enable cycles as the render engine
2. In the render properties panel select Open Shading Language for the shading system.
3. Add a script node to your material.

If you don't have the Open Shading Language option then you need to get a blender build that has OSL enabled.


Some shaders here can be found elsewhere on the web, I am just collecting them here and providing some conversion to be used in blender if needed. Others are renderman shaders that I have converted to blender osl format.

DISCLAIMER:
While I try and find relevant licensing info and keep it with each shader I cannot guarantee that you are totally free to use these shaders the way you plan. It is up to you to make sure you use these within any legal bounds.


osl-shaders's People

Contributors

sambler avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aditiapratama

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.