Page 1 of 2
Foliage collision
Posted: Sat Apr 05, 2008 10:06 pm
by Taivyx
Simply put:
Is there any way to make foliage with collision?
That would make my life sooo much easier (and anyone else who's doing a forest map)
and if there is, is there a way to set the distance the foliage can be viewed from?
Re: Foliage collision
Posted: Sun Apr 06, 2008 5:27 pm
by Caleb1117
The veiw at which you can see foliage, should be in it's ODF, not at home ATM, or I'd post the line.
I know there are folliage objects with it, but I don't know if you could emulate that in other foliage.
What are you trying to do? could you use the invisible collision primitives?
Re: Foliage collision
Posted: Sun Apr 06, 2008 6:20 pm
by Taivyx
Right, I found the line shortly after I posted the topic.
What I'm trying to do is make it so that a huge, detailed forest is just "a click away", without adding to the object count.
Unfortunately one can't do that right now since the trees would have no collision.
Re: Foliage collision
Posted: Sun Apr 06, 2008 6:34 pm
by Teancum
Foliage by its nature has no collision.
Re: Foliage collision
Posted: Sun Apr 06, 2008 6:38 pm
by Grev
I dont know much about it, but cant an option msh (I think thats what its called), like for scaling up, that would make it collision?
Re: Foliage collision
Posted: Sun Apr 06, 2008 6:39 pm
by Teancum
No, using foliage turns all collision off.
Re: Foliage collision
Posted: Sun Apr 06, 2008 6:51 pm
by MandeRek
Sorry to post here, but i can't find it.. How to set up foliage?

Re: Foliage collision
Posted: Sun Apr 06, 2008 6:54 pm
by Teancum
I think it's in zeroeditor_guide.doc. It's one of the Zero guide docs anyways.
Re: Foliage collision
Posted: Sun Apr 06, 2008 6:56 pm
by MandeRek
Yup, it's in that one.. Thanks
It does not really make sense to me with the layers, but I'll play with it
Sorry that i went offtopic

Re: Foliage collision
Posted: Sun Apr 06, 2008 9:01 pm
by FragMe!
Taivyx wrote:Right, I found the line shortly after I posted the topic.
What I'm trying to do is make it so that a huge, detailed forest is just "a click away", without adding to the object count.
Unfortunately one can't do that right now since the trees would have no collision.
By a huge detailed forest do you mean one you can run through or just stand there and say "What a nice forest but now I must go shoot something" if it is the latter and no one is supposed to enter there should be tree billboards in the assets somewhere, that used with invcol meshes to give it collision.
Re: Foliage collision
Posted: Mon Apr 07, 2008 11:47 am
by Taivyx
A forest one can play in, but since Tean's answered the question, I'll just have to resort to placing trees individually and copying/pasting using multi-select
Re: Foliage collision
Posted: Wed Apr 09, 2008 1:38 pm
by Taivyx
I've found something that suggests it can be done.
Endor's .wld file has no objects, in any layer.
Also, it's .prp has this section:
Code: Select all
Mesh()
{
File("end_prop_treeclump_1.msh", 50);
Frequency(50);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
ColorVariation(0.2);
AIVisibilityFactor(0.35,0.6);
}
Also, in the ZeroEditor_guide.doc documentation, it's example of a prp file has a section similar to that as well.
Code: Select all
Mesh()
{
File("end_prop_treeclump_1.msh", 50);
Frequency(80);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
ColorVariation(0.2);
}
}
Re: Foliage collision
Posted: Wed Apr 09, 2008 2:01 pm
by Teancum
Nice Find

I always wondered how they did it on Endor. Let us know how it turns out.
Re: Foliage collision
Posted: Wed Apr 09, 2008 2:22 pm
by Taivyx
Nope, didn't work
Trees flat-out didn't show up
Re: Foliage collision
Posted: Wed Apr 09, 2008 3:35 pm
by FragMe!
check your world req file and make sure this is in there:
REQN
{
"prop"
"end1"
}
of course end1 would be the name of your prop file.
Re: Foliage collision
Posted: Wed Apr 09, 2008 3:36 pm
by Taivyx
It must be there, since the ferns I also added into the same foliage layer show up fine.
Re: Foliage collision
Posted: Wed Apr 09, 2008 3:43 pm
by FragMe!
Taivyx wrote:
Endor's .wld file has no objects, in any layer.
You sure? I just did a search for clump in the end1 world file, (opened in notepad) and it found a whole clump of end_prop_treeclump_01 things.
Re: Foliage collision
Posted: Wed Apr 09, 2008 4:03 pm
by Taivyx
Couldn't see them in zeroeditor, in any case
Re: Foliage collision
Posted: Wed Apr 09, 2008 4:12 pm
by Maveritchell
Taivyx wrote:Endor's .wld file has no objects, in any layer.
Taivyx wrote:Couldn't see them in zeroeditor, in any case
That's cause ZE won't render them. Why? I don't know. Probably because there are about a thousand of them. They still show up on the object list in ZE.
Re: Foliage collision
Posted: Wed Apr 09, 2008 5:04 pm
by Taivyx
Hm, that's strange, cause I have a map with about a thousand trees as well, and they render fine, although a tiny bit laggy