Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: Oleg.B on July 06, 2016, 04:08:21 PM

Title: Trying out effects
Post by: Oleg.B on July 06, 2016, 04:08:21 PM
Hello !
So i've started to play with effects in forestpack and i need to do the following simple thing : there is a ground and FP objects scattered on it. Also there is an object above the ground , so what i want to achieve is that all FP objects under that object will have specified height scale multiplier with adjustable zone of transition (faloff) from the edge of the object above.
So basically this is what i need to do : (https://dl.dropboxusercontent.com/s/kvp5rcl88veqry6/shot_160706_170633.png)
I've tried to do that by my own - you can check the attachment , but for some reason it does not work (too bad there is no anything like debugging - idea for next version ?)
Thanks !
Title: Re: Trying out effects
Post by: Michal KarmazĂ­n on July 07, 2016, 11:04:00 AM
Hi,

There are several possibilities how to archive it. In attached effect I've measured the distance from the object to each item and then with help of the easyOut function interpolated the falloff between original and "overridden" scale values. Let me mention, that's not taking in account the shape of used object (not sure if that's something desired).

There's also the usual way by using two Forest objects. You can use your object as an Object Exclude Area, adjust the Area - Scale Falloff, then make a copy of such Forest object, disable the Object Exclude Area and use the first Forest object as an Forest Exclude Area (to fill the space under the object).

Also, in case of using the V-Ray renderer, a possible workaround would be by using the VRayDistanceTex map to drive the Transform - Scale Map.

Hope you'll find it useful.

Best regards,
Title: Re: Trying out effects
Post by: iToo on July 07, 2016, 12:22:55 PM
I've tried to do that by my own - you can check the attachment , but for some reason it does not work (too bad there is no anything like debugging - idea for next version ?)

Just a quick note: actually your can use the "print" statement to show variable values. It's very useful fo debugging.
Also note that since the Effect is applied separately to each Forest item, the Effects editor (including "print") uses just the first item of the distribution.
Title: Re: Trying out effects
Post by: Oleg.B on July 07, 2016, 01:20:56 PM
Thanks for your reply.
I thought about distance map , but i thought to try out effects.
I will try your solution , thanks for help !