prman: union, blend and pulse functions?


#1

Hi,

I’m having a go at learning RSL and I’m currently looking at a couple of example scripts from Steve May’s RManNotes. The notes are cool, but a couple of functions refuse to compile, namely: union, blend and pulse. I’m afraid I’m pretty much a noob when it comes to this programming malarkey, so I might be just missing something. Is it because they are simply old functions that have been replaced by newer ones?

Any help would be appreciated, thanks. :shrug:


#2

It’s because they’re not RSL standard functions. If you could post a link to the notes you’re talking about it might help, but if they’re not defined in the notes and there’s no header file specified you’ll have to write them yourself.

At a guess, union’s probably a mathematical OR, blend will be an alpha blend and pulse is the pulse function defined in advanced renderman.

You can download a bunch of apocada’s headers from www.renderman.org/RMR so try there first.


#3

http://accad.osu.edu/~smay/RManNotes/WritingShaders/surf1.html

Here’s the link I was refering to. As I mentioned before I’m pretty new to RMan and programming so I’ve spent the last few days in an almost permenant state of confusion :stuck_out_tongue: but I’m slowly making a bit of progress.

I think I’ve got those header files you’ve linked to but I’m still getting errors regarding it finding those functions. I’ll have a look in Advanced Renderman as well.

Cheers :slight_smile:


#4

you need to download rmannotes.sl

then in your shader do

#include “rmannotes.sl”

then you need to tell the shader compiler where to find your includes, with the -I switch

shader -I<path_to_includes>

e.g.:

shader -I/usr/people/me/shaders/include myshader.sl


#5

Ah, it even states that you need that .sl file on the first page :rolleyes: that’s some pretty good observation there by me <not>. I don’t believe I missed that.

Yep, it all works now. Great stuff. Thanks playmesumch00ns.

:thumbsup:


#6

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.