Foliage Collision
Posted: Fri Jan 20, 2012 4:48 pm
I have a question...
So I've placed my foliage, 3 layers, but I'd like to do three things:
1) Add collision to Layer 1. There's a 1 next to UseCollision, and I set the Stiffness to 1.0, but I can still walk right on through it.
2) I'd like to add several different items to a single layer. For example, could I add fel1_bldg_bladder.msh and fel1_bldg_segmented.msh to Layer 1, so that it mixes up the foliage a little bit? How would I format that in the file? Otherwise, it just keeps repeating the same plant over and over again.
3) Is there a way to change the view distance for foliage fading from view? Because when I walk too far away, all of the foliage disappears.
So yeah. And finally, the terrain fades to white when I get a little ways away from, say, a hill. I know that this is a setting in the .sky file, but what do I change?
Here's my XWR.prp file:
So I've placed my foliage, 3 layers, but I'd like to do three things:
1) Add collision to Layer 1. There's a 1 next to UseCollision, and I set the Stiffness to 1.0, but I can still walk right on through it.
2) I'd like to add several different items to a single layer. For example, could I add fel1_bldg_bladder.msh and fel1_bldg_segmented.msh to Layer 1, so that it mixes up the foliage a little bit? How would I format that in the file? Otherwise, it just keeps repeating the same plant over and over again.
3) Is there a way to change the view distance for foliage fading from view? Because when I walk too far away, all of the foliage disappears.
So yeah. And finally, the terrain fades to white when I get a little ways away from, say, a hill. I know that this is a setting in the .sky file, but what do I change?
Here's my XWR.prp file:
Code: Select all
Layer(0)
{
SpreadFactor(0.2);
Mesh()
{
File("fel1_prop_foliage_b.msh", 100);
Frequency(70);
Scale(1);
Lighting(1);
Stiffness(0.0);
AIVisibilityFactor(0.2,0.5);
}
}
Layer(1)
{
SpreadFactor(0.7);
Mesh()
{
File("fel1_bldg_pitcher_bush.msh", 100);
Frequency(70);
Scale(1.0);
Stiffness(0.1);
ColorVariation(0.4);
UseCollision(1);
Lighting(1);
AIVisibilityFactor(1.0,1.0);
Sound("fel_amb_wildlife", 8.0, 2.0);
CollisionSound("foliage_collision");
}
}
Layer(2)
{
SpreadFactor(0.3);
Mesh()
{
File("fel1_prop_foliage_d.msh", 100);
Frequency(60);
Scale(1.0);
Stiffness(0.0);
CollisionSound("foliage_collision");
AIVisibilityFactor(1.0,1.0);
}
}
Layer(3)
{
SpreadFactor(0.2);
Mesh()
{
GrassPatch("fel1_prop_thick_bush.odf", 95);
File("editor_prop_bush.msh", 95);
Frequency(95);
Scale(0.45);
Lighting(1);
Stiffness(0.0);
Sound("fel_amb_wildlife", 8.0, 2.0);
CollisionSound("foliage_collision");
AIVisibilityFactor(0.1,0.25);
}
}
TreeLine()
{
Path("jungle1")
{
Distance(20);
BorderOdf("fel1_prop_hellbush");
}
}