Jump to content

whitewater - generic questions


cily

Recommended Posts

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.

 

 

 

Link to comment
Share on other sites

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.

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