Itoo Software Forum

Author Topic: Need object shape bending forest instances effect/code.  (Read 872 times)

vklein

  • Newbie
  • *
  • Posts: 7
Need object shape bending forest instances effect/code.
« on: April 08, 2016, 07:44:04 PM »
Or at least a spline shape. I must animate a hoover sliding through a high wool carpet and want to bend the wool-strings away as they get near the outer shape. I' tried modifying the "bend by object" and "lean out" effects but with no success so far.
Or a "Bend by Object" with a definable at least rectangular area around a object, with separate x and y sizes.
Please help would love to use Forest 5 for my project.

In the past I tried to solve this by putting a FFD-object-modifier around my object, which in turn bent the forest away from it, the big drawback of this method is that a Forest-object with modifiers become a massive object at render time instead of 500000 instances and as a single object eats RAM like a boss. Change this behavior in Forest and it also would solve my cause.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1490
Re: Need object shape bending forest instances effect/code.
« Reply #1 on: April 11, 2016, 10:07:03 AM »
Hi,

This could be done using the lean away feature but with a small adaptation so that it leans away from an Exclude area instead of an Include area. To do this just replace any reference in the script to areaIncNearest or areIncDistance with areaExcNearest and AreaExcDistance. You can then add an exclude spline hidden of any shape under the hoover to bend the wool-strings.



If you don't want the carpet under the hoover to disappear you can duplicate the Forest Pack object and in this one use the hoover as an Include area with the original Lean Out script to add back the missing elements.

Pleaae see the attached file for an example of both set-ups

I hope that helps, please let me know if you have any further questions.

Many thanks!

Paul
Paul Roberts
iToo Software

vklein

  • Newbie
  • *
  • Posts: 7
Re: Need object shape bending forest instances effect/code.
« Reply #2 on: April 11, 2016, 11:37:08 AM »
Thanks a lot, this helps with my project.
The king of the hill would be node-based visual programming for the effects.
Again thanks a lot. You made my day.