Ratman Posted July 12, 2006 Share Posted July 12, 2006 Hello all, so recently i've started working on a fire shader in VOPs, right now it's still basic, but it's going, right now i'm trying to find a way to bring the Color POP and $LIFE attributes to the shader, so far not very easy, but it's going, if anyone has any tips feel free to post. So here is a picture. Thanks, Rick Quote Link to comment Share on other sites More sharing options...
Ratman Posted July 12, 2006 Author Share Posted July 12, 2006 I started searching a bit, and seem to be finding some more info on this, think i'm gonna crack this very soon Quote Link to comment Share on other sites More sharing options...
old school Posted July 13, 2006 Share Posted July 13, 2006 Use a parameter VOP to bring in the geometry attributes. See the special note on bringing in LIFE below as it is the only variable that needs a special case. In VOPs, add a Parameter VOP and change the Parameter Name to match EXACTLY the name of the variable you wish to pick up as listed when using the MMB on the SOP's icon. for Color, it is Cd. Just copy - paste name in to Parameter Label. The label will be made invisible. Next match the Parameter Type EXACTLY with the type listed in the op info MMB menu. Make a mistake on either of the two steps above and you won't get your parameter. Next check the option "Use Input Value If Parameter Not Bound". Also mandatory to bring in the variable properly. This option also makes the parameter invisible in the UI so there is no need to check the Invisible option. done. Now for LIFE. You can't import life[2] in to VOPs directly. You need to add two Attribute Create VOP's each to create an age and a mylife float attribute. Set age to $AGE and mylife to $LIFE. Now you can bring in the two floats in to VOPs with Parameter VOPs. Nice looking fire. Quote Link to comment Share on other sites More sharing options...
MIguel P Posted July 13, 2006 Share Posted July 13, 2006 Hey! Thank you very much old school! Quote Link to comment Share on other sites More sharing options...
Ratman Posted July 14, 2006 Author Share Posted July 14, 2006 Haven't quite gotten it working, but here is an update of it. 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.