Today I tried out the super nice Sublime Text editor for writing Renderman shaders, and liked it enough to buy a license immediately. Looks like it’s made here in Sydney too!
To improve the workflow a bit, I made a little language pack for Renderman SL. It includes a syntax package for highlighting, which mostly inherits the C syntax, but adds a few extras for SL data types (eg. color, vector) and some global shader variables. It also contains a ‘build system’ for shaderdl, 3Delight’s shader compiler, which lets you compile a shader quickly with a hotkey. It should be very easy to copy that for other renderers/compilers too. It’s all pretty basic, but does enough for my needs.
You can grab it here: sublime_renderman_v1.zip
how compile renderman (.sl) in SublimeText ?
Please explain more .
Thanks and regards
Hi, currently the shader compilation is only set up for 3Delight (shaderdl). If you’re using that, after installing the package there should be an option in Tools -> Build System -> shaderdl. If you’ve got that selected, you can just use Tools->Build to build the currently edited .sl file. Also if the Build System is set to automatic and you’re editing a file that ends in .sl, it will automatically choose the shaderdl compiler.
If you’re using prman or another shader compiler, it’s pretty easy to make a new build system for that shader compiler, just duplicate and edit the shaderdl one I’ve got there.
Really nice editor! thank you for sharing your Renderman-package!
Hi Matt,
Great Thanks by me too for your job!
thanks mate. works great!
what color scheme do you use on that screen shot?
cheers
hey pawel, I think in that one it’s a modified version of Solarized:
http://ethanschoonover.com/solarized
but these days I’m using this one:
https://github.com/chriskempson/tomorrow-theme
cheers