Jump to content

Fire Fun


Ratman

Recommended Posts

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.

fire_render_test_01.jpeg

Thanks,

Rick

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...