17:24
:39
2016
OSLED (Open Shading Language editor)
- Resume:
Software to edit Open Shading Language script, compile and preview some of them.
- Version:
1.0.6
- Size:
74MB
- Download:
[ install ]
- Forum:
[ OSLED ]
- License:
Ti-R License (freeware)
- Copyrights:
Renan Lavarec

This software enable to create and easily check OSL scripts. I made this software because of another project which I'm working on.

Infos

  • High Performance Code Editor. (ace)

  • Syntax highlighter for Open Shading Language

  • Multiple OSL version to try to compile with. (1.6 and 1.7 already included)

  • Surface shaders can be renderered. (version 1.6 is use for rendering)

  • 3D Scene selection. (You can add you own env scene)

  • 3D object selection. (You can add you own 3D object)

  • Simple function code formatting.

How to use it

  1. Write a shader or copy paste or drag and drop an osl file (An osl example is given a bit farther)

  2. Press F5 to check if the file was well compile.

  3. If this is a surface shader script, press F10 to visualize the render

Here an example:

/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al.
// All Rights Reserved.
/////////////////////////////////////////////////////////////////////////////
surface
matte
    [[ string description = "Lambertian diffuse material" ]]
(
    float Kd = 1
        [[  string description = "Diffuse scaling",
            float UImin = 0, float UIsoftmax = 1 ]],
    color Cs = 1
        [[  string description = "Base color",
            float UImin = 0, float UImax = 1 ]]
  )
{
    Ci = Kd * Cs * diffuse (N);
}
Change the color by multiplying a color:
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al.
// All Rights Reserved.
/////////////////////////////////////////////////////////////////////////////
surface
matte
    [[ string description = "Lambertian diffuse material" ]]
(
    float Kd = 1
        [[  string description = "Diffuse scaling",
            float UImin = 0, float UIsoftmax = 1 ]],
    color Cs = 1
        [[  string description = "Base color",
            float UImin = 0, float UImax = 1 ]]
  )
{
    Ci = Kd * Cs * color(1.0,0.0,0.0) * diffuse (N);
}

Do not forget to press F5. Now you get a red object. Have fun :)

Change log:

  • Version 1.0.6

    • Fix focus problem just after launching.

  • Version 1.0.5

    • Fix antislash problem on Copy/Paste/Loading

    • Update redistributable inside the installer

  • Version 1.0.4

    • Update 'Save as' to memorize last path picked

  • Version 1.0.3

    • Show 'Save as' if the file doesn't exist yet

    • Show filename

  • Version 1.0.2

    • Add shortcut to show or hide the render

  • Version 1.0.1

    • Add Compile button

  • Version 1.0.0

    • Software release