Jump to content

Grit Accessibility Shading Operator


eetu

Recommended Posts

Hi all!

A long time ago I wrote a simple accessibility shader for lightwave (lastest incarnation here).

It's a close cousin to ambient occlusion, meant for mixing between materials according to how accessible the current spot is.

I've often found it to be faster and more stable than ambocc - sometimes it doesn't work at all :)

Here's a supersimple mantra render:

grit04sm.jpg

and a bit nicer examples from the lw version:

lwkitty_weepul.jpgA brass kitty by Weepul

lwpillar_djones.jpgA marble pillar by Davey Jones

(grit is only used in these images to mix between materials)

Thus far I've only constructed it in Vex Builder (screenshot), but

as the original is written in straight C I thought it shouldn't be a big deal to write it in Vex (we'll see about that :)

I have to admit I'm still quite confused about the vex contexts. I don't want to make a fullblown shader out of it,

I just want it to be another node that can be used to construct shaders. The examples I've found here and elsewhere

look like complete shaders outputting the surface Cf. Any pointers?

And in the spirit of sharing, here's the current vex builder network should someone get the urge to dissect..

(It's my first so I might be doing some horrible things ;)

eetu.

Link to comment
Share on other sites

I have to admit I'm still quite confused about the vex contexts. I don't want to make a fullblown shader out of it,

I just want it to be another node that can be used to construct shaders. The examples I've found here and elsewhere

look like complete shaders outputting the surface Cf. Any pointers?

Hi eetu, looks great! There was some discussion about extending VOPs in this thread that may be what you're looking for:

http://forums.odforce.net/index.php?showtopic=5573

Personally I don't know about using vex purely to have a new vop, however there is the "vex vop" in which you just write some code, perhaps even that will do what you'd like.

cheers and thanks for sharing! :D

Link to comment
Share on other sites

If you want to treat your components as just a part of a shader to be plugged into other VOPnets, you could make an HDA out of the working parts and it would be available to you in the drop down menu to be used whenever you wish.

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...