cily Posted January 30, 2016 Share Posted January 30, 2016 A couple of version about the whitewater in H PART A: cached out the whitewater, I have the 3 group foam spray and bubbles, to see in viewport the result as in the dop lvl I'm running this wrangler if (inpointgroup(0,'foam', @ptnum) == 1) { @Cd = {0,0,.5}; } if (inpointgroup(0,'bubbles', @ptnum) == 1) { @Cd = {.5,0,0}; } if (inpointgroup(0,'spray', @ptnum) == 1) { @Cd = {0,.5,0}; } folloved by a vop with lenght and fit to manage the luminance based on velocity, question 1) there are a faster way human friendly to have this result? 2) vex doesn't have elif statemnt? PART B: whitwater solver is an asset using pop Solver, anyone tried to switch it in Flip? just to have more kernel structure of the 'fluid'. - other sw are using flip also for whitewater . thanks S. Quote Link to comment Share on other sites More sharing options...
fathom Posted January 31, 2016 Share Posted January 31, 2016 there is an else in vex, not no elif. for a more straightforward approach, i would suggest you use the groups in the group field of a color sop (or three color sops) to set your colors. you can also do "@group_XXX" to check ownership of a group. so "if (@group_foam == 1)" can replace the whole "inpointgroup()" thing. Quote Link to comment Share on other sites More sharing options...
sho Posted February 1, 2016 Share Posted February 1, 2016 I believe Miles meant, there is an "else if" in vex. This works, if () {} else if {} Quote Link to comment Share on other sites More sharing options...
bunker Posted February 1, 2016 Share Posted February 1, 2016 (edited) I never use "inpointgroup", I would just do this: if(@group_foam==1)@Cd={,,.5}; if(@group_bubbles==1)@Cd={.5,,0}; if(@group_spray==1)@Cd={,.5,.5}; sorry, just saw @fathom already posted that... Edited February 1, 2016 by bunker Quote Link to comment Share on other sites More sharing options...
fathom Posted February 1, 2016 Share Posted February 1, 2016 I believe Miles meant, there is an "else if" in vex. This works, if () {} else if {} sho! yeah, i figured the "if" was implied. 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.