Page 1 of 1

Adding Foliage

Posted: Thu Apr 02, 2009 12:25 pm
by YTGTangerine
In ZE, how do you add foliage? The foliage never appears ingame when I put it in ZE.
Thanks.

Re: Adding Foliage

Posted: Thu Apr 02, 2009 12:45 pm
by ryukaji
You have to use a .prp file to tell ZE what foliage to place. For example heres the Yavin 4 .prp
Hidden/Spoiler:
[code]Layer(0)
{
SpreadFactor(0.3);
Mesh()
{
GrassPatch("yav_prop_grass.odf", 60);
File("editor_grasspatch.msh", 50);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}
Mesh()
{
GrassPatch("yav_prop_grass.odf", 50);
File("editor_grasspatch.msh", 40);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}

}

Layer(1)
{
SpreadFactor(0.2);
Mesh()
{
File("yav_prop_shrub1.msh", 35);
Frequency(10);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}

}

Layer(2)
{
SpreadFactor(0.4);
Mesh()
{
LeafPatch("yav_prop_bush2.odf", 35);
File("editor_prop_bush.msh", 35);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}
}

Layer(3)
{
SpreadFactor(0.5);
Mesh()
{
LeafPatch("yav_prop_bush.odf", 40);
File("editor_prop_bush.msh", 40);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}
}


TreeLine()
{
Path("jungle1")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle2")
{
Flip();
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle3")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle4")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle5")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle6")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
}

[/code]

Re: Adding Foliage

Posted: Thu Apr 02, 2009 1:03 pm
by YTGTangerine
So can I just automatically browse to that or do I have to copy that file somewhere?

Re: Adding Foliage

Posted: Thu Apr 02, 2009 1:13 pm
by ryukaji
You could just copy one from the assets and edit it to use the foliage you want to use.

Re: Adding Foliage

Posted: Thu Apr 02, 2009 3:04 pm
by YTGTangerine
Nuttin happened. Do you mind doing a more detailed tut?

Re: Adding Foliage

Posted: Thu Apr 02, 2009 4:20 pm
by Teancum
The docs cover this really well. Have you read up?

Re: Adding Foliage

Posted: Sat Apr 04, 2009 5:34 am
by lucasfart
just wondering which doc it is in
EDIT: nevermind. i just found it in the ZeroEditor_guide