eetu Posted July 9, 2007 Share Posted July 9, 2007 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: and a bit nicer examples from the lw version: A brass kitty by Weepul A 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. Quote Link to comment Share on other sites More sharing options...
photex Posted July 10, 2007 Share Posted July 10, 2007 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! Quote Link to comment Share on other sites More sharing options...
stu Posted July 10, 2007 Share Posted July 10, 2007 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. Quote Link to comment Share on other sites More sharing options...
Netvudu Posted December 10, 2007 Share Posted December 10, 2007 (edited) I Edited December 10, 2007 by Netvudu Quote Link to comment Share on other sites More sharing options...
Serg Posted January 13, 2008 Share Posted January 13, 2008 (edited) I Edited January 13, 2008 by Serg Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.