Terrain engine

Hello,

I didn’t have the luck to have a very close look at the terrain engine yet. Only played around with it a little bit… so I have some very technical questions…

  • Can the trees have colliders ? Also very far away ?
  • If I fire a rocket which hits a hill far away covered with trees… will the trees disappear when I “delete” them ?
  • Can I have different/more than one “main” cameras/objects which are far away from eachother and both show the terrain very detailed (at least for the physics) ?
  • Can I edit the terrain mesh and texture at runtime ? With an easy script ?
  • Does the LOD also work fine from a very high position (looking down) ?

These are all for now. :slight_smile:

I’m afraid I don’t have answers to your questions, DynamicHead, but I would like to tag onto your first one.

There is what appears to be a Terrain Collider component attached to terrain objects. This component has a “Create Tree Colliders” checkbox in it. Unfortunately, it doesn’t seem to do anything (that I can tell), and I can’t find any documentation for it.

So it looks like it is possible to create colliders for trees, but I can’t figure out how to do it.

Can anyone help (and answer DynamicHead’s other questions)? Thanks!

-BC

To get Tree Colliders you have to put a collider on the original prefab, and THEN click “Create Tree Colliders”.

Thanks so far.

I also asked in the IRC Channel and sadly they were only speculating about 2) - 5)…

Aras, David, Joe maybe ? :slight_smile:

Yes, definitely.

How I do that ?

[/quote]

Yes. Make a prefab of your tree, add a capsule collider, and check generate tree colliders.

“Not yet”, because you can’t delete them in the first place.

Yes. I see no problems here.

You can modify the heightmap very easily using the SetHeights function.
Other modifications are not exposed yet.

No. Sorry.

If I understand your (original) question correctly, there’s nothing to it. Set up the cameras as you like. It just works :wink:

hmmmm I must’ve misunderstood the original question. I guess you are referring to tree LOD… anyway, terrain texture LOD (mipmapping) works as expected…

Thanks guys.
I’ll start testing it…

Looks like Unity is strong enough to at least start a RTSG now. :smile:

I’m quite sure you’ll find it so. And while we’re not promising any individual feature additions to the terrain system right now, it’s clear that we’ll do with the terrain system as we do with all of Unity: we keep adding features that are needed by our users.

Just look at our track record (click the bottom links to review changes in previous versions of Unity):

http://unity3d.com/unity/whats-new/unity-2.0

d.