ziggx Posted January 30, 2005 Share Posted January 30, 2005 Hi there, I'm trying to make a snowy mountain shader that will shade displaced geometry from white at the top of the z-axis to green at the base of the z-axis. But I can't figure how to do this. Could any kind soul give me some suggestions? Bet Wishes Ziggx Quote Link to comment Share on other sites More sharing options...
George Posted January 30, 2005 Share Posted January 30, 2005 Hello Ziggx, I'm by no means a person who should be giving advice on shader writing, but I attached something that might help get you going. The file contains a very simple VOP network. It's very "cheap" because the mountain is assumed to start from z=0 and peak at z=1 in world space. To make it general, you will need to compute the bounding box of the mountain, and ideally specify an arbitrary orientation. You'll also probably want to add some noise, and offer up oodles of parameters. This is the quickest thing I could whip up to give you an example. Hope it helps. simple_peak_shader.hip.gz Quote Link to comment Share on other sites More sharing options...
ziggx Posted January 31, 2005 Author Share Posted January 31, 2005 Hi BoboFancy, Aahh.... SpaceChange -- Houdini can do just about anything if you know where to look. Thanks for your elegant solution. Best Wishes Ziggx Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted January 31, 2005 Share Posted January 31, 2005 You can also vary snow thickness this way... simple_peak_shader.zip 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.