Blending
  • About
  • Artwork
    • Image Gallery
    • Video Gallery
    • My Short Film
  • Technical art
  • Scripting
    • Python
    • OSL
  • Android Apps
    • Foul and a miss
    • Privacy Policies
  • Blog
  • Contact

Laser Sheet OSL - demo and .blend file

30/12/2012

16 Comments

 
So I've finally finished the short demo of the Laser Sheet OSL shader to simulate a laser sheet illuminating the objects in a scene.
In order to use it you must use Cycles, with the OSL option enabled. Add a script node and choose the LaserSheet text file.
You should end um with something like this:
 Imagem
You just have to connect the laserout node to an emmission shader which is then added to the original base shader of the object. In this case I've used the same material for all objects, with a random RGB value node group that I've created some time ago in order to have some variation in the scene.
In the script, we have two inputs for the laser thickness and laser intensity (do not use high values...), 3 inputs for the laser origin, 3 inputs to define the normal to the laser sheet plane. ( 0,0,1) will be a horizontal plane (XY plane), (1,0,0) will be a YZ plane, (0,1,0) will be a XZ plane, but you can use other values).
You can input all these values by hand but in order to create an easier and more visible way of where the plane will be, I've introduced 3 empties in layer 2 which define the origin and the orientation of the laser plane. After placing these as we want, just run the python script "LaserUpdate" and the input values of the OSL script will be updated accordingly (insert then keyframes as needed). You should de-activate layer 2 when rendering since the auxiliary plane will act as an obstacle interfere with the script. 
So here's a demo of what can be done with this OSL shader and you can download the .blend file here.

UPDATE! (04.01.2012) - An updated .blend file can be found here with an easier way to define the laser position and orientation from a plane, thanks to SlykDrako who did it using drivers and a python script. The plane might interfere with the laser sheet by creating shadows. Disable layer 2 when rendering if needed.
16 Comments

Improving skills

21/12/2012

0 Comments

 
Yesterday I've applied for the Mastering Modelling in Blender workshop, organized by CGCookie.com.
Although I have been able to model whatever I need, it is always good to know from the specialists how to do things in the proper way, to save time and to improve your skills.

Meanwhile, I've been also looking into Open Shading Language, which is a new tool in Blender that allows the creation of more flexible materials. Here is a .blend file with some of the materials I've found and one that I created myself. I'm preparing a second one, different from what I've seen, and I'll post it here as soon as it is finished.


0 Comments

    Author

    Renato Sousa
    This is where you can keep updated with some news and with my works in progress.

    Blog up to October 2012

    Archives

    August 2016
    May 2016
    April 2016
    November 2015
    September 2015
    June 2015
    April 2015
    November 2014
    July 2014
    March 2014
    January 2014
    December 2013
    September 2013
    August 2013
    July 2013
    June 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    October 2012

    Categories

    All
    Android
    Animation
    Bge
    Blender
    Christmas
    Conference
    Cross-stich
    Curta
    Imagens
    Materials
    News
    Osl
    Ponto Cruz
    Python
    Short Movie
    Stop Motion
    Website
    Workshop

    RSS Feed

Powered by Create your own unique website with customizable templates.