Jump to content

[Solved] How to get interaction between Vellum Hair and Grain


underscoreus

Recommended Posts

Howdy folks!

I've recently started looking into Vellum and I am currently trying to create interaction/collision between Vellum grains and Vellum Hair however it does not seem to come as easy as interaction between grains and cloth.
I've used the same setup that worked with my grains and cloth example to make this setup however as mentioned above so far I've had no luck in making it work. I am sure that there is something very basic that I am missing here but I can't seem to find it. Any ideas?

Screenshots of the setup(Sorry for less than optimal/clean node layout):
Scene file as well as base model too if you'd rather dig into it.

Vellum_Hair_Grain_Test.zip

Screenshot from 2020-05-05 14-08-54.png

Screenshot from 2020-05-05 14-08-18.png

Link to comment
Share on other sites

could be wrong but from memory, VellumGrains need a real geo (surface  or volume) to collide with. Hair is nothing but a line so it won't collide, Grains is particular about this I think, can't for the life of me find the thread anymore. Search function on here is a bit finicky.

Edited by Noobini
  • Like 1
Link to comment
Share on other sites

4 minutes ago, Noobini said:

could be wrong but from memory, Grains need a real geo (surface  or volume) to collide with. Hair is nothing but a line so it won't collide, Grains is particular about this I think, can't for the life of me find the thread anymore. Search function on here is a bit finicky.

Hmmm, and this was for when both grain and hair was Vellum??
If so that's a little annoying. Not entirely sure how I can copy geo onto the vellum hair points and still have them work properly in the vellum sim.

Link to comment
Share on other sites

yeah both grains/hair were using the same vellumsolver.

An even easier test to try before you buy is: line/hair...copy transform a bunch of them, drop grains on them...goes right thru

Then you'd try to be smart about it and put grains on the hair ! Then grains would collide against grains. but I don't think this cheat is good enough for anything except a few giggles.

Edited by Noobini
  • Like 1
Link to comment
Share on other sites

25 minutes ago, Noobini said:

yeah both grains/hair were using the same vellumsolver.

An even easier test to try before you buy is: line/hair...copy transform a bunch of them, drop grains on them...goes right thru

Then you'd try to be smart about it and put grains on the hair ! Then grains would collide against grains. but I don't think this cheat is good enough for anything except a few giggles.

Hmmm, I'll try this out and see how far I can push it!

Thanks for the tip!

Guess I'll update the thread with whatever hair-brained scheme I come up with if I succeed!

Link to comment
Share on other sites

I'd think it should work, definitely submit RFE for that as there is no obvious reason why they shouldn't interact natively unless it's a technical one

what you could do in meantime (and this is sort of a hack, but may work depending on the case) is set i@isgrain point attribute on your hair to 1

you'll still get hair constraints applied, but point to point collisions on hair as it's now disguised as grain

the disadvantages I forsee is, you lose hair segment collisions and maybe some grain forces like clumping will now affect your grain hair, but in some cases for visible interaction it may be worth it

ts_vellum_hair_grain_interaction.gif.f612d8ce26b8120491f1a7d9ce37fc4e.gif

ts_vellum_hair_grain_interaction.hip

Edited by anim
  • Thanks 3
Link to comment
Share on other sites

2 hours ago, anim said:

I'd think it should work, definitely submit RFE for that as there is no obvious reason why they shouldn't interact natively unless it's a technical one

what you could do in meantime (and this is sort of a hack, but may work depending on the case) is set i@isgrain point attribute on your hair to 1

you'll still get hair constraints applied, but point to point collisions on hair as it's now disguised as grain

the disadvantages I forsee is, you lose hair segment collisions and maybe some grain forces like clumping will now affect your grain hair, but in some cases for visible interaction it may be worth it

ts_vellum_hair_grain_interaction.gif.f612d8ce26b8120491f1a7d9ce37fc4e.gif

ts_vellum_hair_grain_interaction.hip

ahhh...much quicker than me setting grains on hair manually.

Link to comment
Share on other sites

18 hours ago, anim said:

I'd think it should work, definitely submit RFE for that as there is no obvious reason why they shouldn't interact natively unless it's a technical one

what you could do in meantime (and this is sort of a hack, but may work depending on the case) is set i@isgrain point attribute on your hair to 1

you'll still get hair constraints applied, but point to point collisions on hair as it's now disguised as grain

the disadvantages I forsee is, you lose hair segment collisions and maybe some grain forces like clumping will now affect your grain hair, but in some cases for visible interaction it may be worth it

ts_vellum_hair_grain_interaction.gif.f612d8ce26b8120491f1a7d9ce37fc4e.gif

ts_vellum_hair_grain_interaction.hip

That is hilarious and awesome that that works!

Thanks a lot, o grand master Anim!

Link to comment
Share on other sites

  • underscoreus changed the title to [Solved] How to get interaction between Vellum Hair and Grain
  • 6 months later...
On 5/6/2020 at 5:46 AM, anim said:

I'd think it should work, definitely submit RFE for that as there is no obvious reason why they shouldn't interact natively unless it's a technical one

what you could do in meantime (and this is sort of a hack, but may work depending on the case) is set i@isgrain point attribute on your hair to 1

you'll still get hair constraints applied, but point to point collisions on hair as it's now disguised as grain

the disadvantages I forsee is, you lose hair segment collisions and maybe some grain forces like clumping will now affect your grain hair, but in some cases for visible interaction it may be worth it

ts_vellum_hair_grain_interaction.gif.f612d8ce26b8120491f1a7d9ce37fc4e.gif

ts_vellum_hair_grain_interaction.hip

Cheers Tomas! Cool stuff, does not seem to work in 18.5 though...any ideas? Cheers!

 

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