Forest Pack > Tutorials

Introduction to Forest Effects

<< < (2/3) > >>

DM5847:
Hi Paul,

Thanks for the quick response, I'm afraid it's not completely clear.

This is the base expression;

###boundary falloff###
real probability = randomReal(0,DistanceToEdge);
Int innerEdge = randomInt(0,EdgeListStart-2);
Int outerEdge = randomInt(EdgeListStart-1,EdgeListEnd-1);
fpItem.geomID=if(fpItem.areaIncDistance<DistanceToEdge,if(Probability>fpItem.areaIncDistance,outerEdge,innerEdge),InnerEdge);

Where do I add the expressions you wrote above? (fpItem.geomID = randomInt(0,1)). And how does this relate to the edgelist value?

Thanks!

Paul Roberts:
Apologies, I thought you were asking how the effect works. Forget my previous message, you don't need to edit the effect if you just want to use it.

To add debris at the edge of an area with this effect try the following:

1 - Add the normal grass objects to the first half of the geometry list, let's imagine that you have a couple of grass clumps. So these would be the first two items in the geometry list
2 - Add the glass clumps, stones, deadgrass, etc underneath these in the list. Note the point in the list at which these items start and end. For example these would start at position 3 and if there are 5 items, end at position 7
3 - Import the effect and enter 3 for EdgeListStart and 7 for EdgeListEnd to match the items in the geometry list
4 - Adjust the Distance to control the falloff.

I've attached a sample file with this setup.

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

Many Thanks,

Paul


DM5847:
Ah, thanks!

Now I get it. Thanks for the file.

Dean

Jonas:
Hi Guys,

I'm struggling with Tint by altitude: must be to do with the materials (something happens between black and white but those were not the colours I was expecting). An explanation about Forest Colour in this context would be appreciated or a file with the effect working properly (I can then check materials, parameters, etc...)

Regarding transformation effects such as bend by exclude area I can make them work only with splines but not with meshes / objects (a tree, a chair). How to resolve this limitation?

Many thanks

Rokas:
Please post in Forest Pro board with attached maxfile with Your progress.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version