Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Pages: [1] 2

Author Topic: Terramorphing and falling trees feature  (Read 26487 times)

McArcher

  • Jr. Member
  • *
  • Posts: 14
Terramorphing and falling trees feature
« on: August 23, 2010, 05:42:28 pm »

Will Outerra support terramorphing and falling trees?

I think such feature will make explosions, hits from ammo or bombs, bulldozers, digging trenches with a shovel very realistic. Like in real life... We take shovels, use digging animation and in e.g. 15 min. we can have a small trench for a soldier :) Or a self-trenching mechanism of T-72/T-90 tank can make a trech for a tank in a few minutes :)
And if not, what is the chance to add this feature by future made addons/plugins.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Terramorphing and falling trees feature
« Reply #1 on: August 24, 2010, 01:29:35 am »

Well basically the road system is capable of doing trenches as well. You'd just embed a dirt road deeper into ground, with short transitional areas (= steep sides). But there could be a special road profile for it as well.

Trees are marked in a map so removing some is possible, while keeping a list of fallen ones to be rendered separately ..
Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
  • #1 Outerra Fan Boy
    • My Youtube
Terramorphing and falling trees feature
« Reply #2 on: August 24, 2010, 01:49:51 am »

I have a few tree questions. Do the trees have a physics model? If you crash the tatra into one will it come to a stop or as McArcher said will they "fall over" under the control of the current physics engine?
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Terramorphing and falling trees feature
« Reply #3 on: August 24, 2010, 02:35:48 am »

Currently trees are transparent for vehicle physics so nothing happens. I'm not sure how to handle it yet - when a vehicle should fall the tree and when it should wrinkle on it. As it depends on vehicle construction, it will be probably a parameter somewhere there ..
Logged

McArcher

  • Jr. Member
  • *
  • Posts: 14
Terramorphing and falling trees feature
« Reply #4 on: August 24, 2010, 08:33:16 am »

First of all, for trees may be used a simplified physics engine, as there are tonns of trees on the terrain.
I think behaviour of the tree must depend on 2 or 3 things:

1.   Tree's thickness, which will also be a modified tree's mass/weight to reduce CPU load,
2.   Vehicle's pulse (or impulse, p=m*v),
(3). Height of the point of collision with a tree (this parameter can be also thrown away to reduce calculations).

There can be a constant (for example, a Critical_multiplier_for_thickness), and

Code: [Select]
if (Vehicle's_Impulse * Height_of_Collision > Tree's_Thickness * Critical_multiplier_for_thickness)
{
     Tree_Falls();
}
else
{
     Tree_Doesnt_Fall();

};

or even simplier, each Tree's_Thickness will be that Critical impulse to fall the tree. and then:


Code: [Select]
if (Vehicle's_Impulse * Height_of_Collision > Tree's_Critical_Thickness )
{
     Tree_Falls();
}
else
{
     Tree_Doesnt_Fall();

};

If CPU is too loaded then we can calculate 2 different situations without Height_of_Collision, because land vehicles have similar height (+-0.5m):

Code: [Select]
if (Collided_Vehicle_Type == Type_Land_Vehicle) // collision with a land_veh
{
     if (Vehicle's_Impulse > Tree's_Critical_Thickness_for_Land_Vehicles ) // just one <, and no *
    {
          Tree_Falls();
     }
     else
     {
         Tree_Doesnt_Fall();
     };
}
else // collision with an air_veh
{
     if (Vehicle's_Impulse > Tree's_Critical_Thickness_for_Air_Vehicles ) // just one >, and no *
     {
          Tree_Falls();
     }
     else
     {
          Tree_Doesnt_Fall();
     };
};

well, actually, i'm not a pro programmer, I don't know what is faster: (1 IF== and 1 IF>)    or    (* and IF>)?


And, a question about terramorphing.  I meant, will the engine allow to modify the terrain during the gameplay (to simulate digging) ?
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Terramorphing and falling trees feature
« Reply #5 on: August 24, 2010, 08:59:25 am »

Yes, something like that, but the "critical thickness" should be dependent on vehicle construction as well. I mean, most vehicles are constructed to absorb the energy of impact, but of course not so a tank or a bulldozer.

The terrain can be modified, I thought I answered it with the trenches but now I realize that it wasn't sufficient.
So the answer is that terrain modifications can be done by vector patches, that modify elevation and texturing both. This can be gradual so that the trenches get deeper with time, or instant for craters after explosions.
Logged

McArcher

  • Jr. Member
  • *
  • Posts: 14
Terramorphing and falling trees feature
« Reply #6 on: August 24, 2010, 09:48:20 am »

Well, then this game engine is going to be the best in the world :) Great!
Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
  • #1 Outerra Fan Boy
    • My Youtube
Terramorphing and falling trees feature
« Reply #7 on: August 24, 2010, 02:09:43 pm »

You would also need a random variable in your tree equation. Not all trees are created equal (unless cameni says so). Plus the type of tree (maple, oak, pine, redwood) would differ the force required to fell the tree to change. Also if your in a toyota camry and hit even a large tree at 90 mph odds are you will snap that tree in half so the speed and mass of said vehicle will need to be accounted for. And if your a lunatic the simulation of the effect of ground erosion on the root system based on estimated height maps of the terrain and average wind speed in the area.

And also you have to think of the lowly termites.

EDIT: I think for the next tree you add, since you currently only have one, it should be the redwoods. I don't think I have ever played a game that could properly display their enormity. And weaving the tatra truck through the bases would be FAN-TASTIC.

Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

corona

  • Full Member
  • ***
  • Posts: 114
Terramorphing and falling trees feature
« Reply #8 on: August 24, 2010, 03:54:08 pm »

Quote from: ZeosPantera
I think for the next tree you add, since you currently only have one, it should be the redwoods. I don't think I have ever played a game that could properly display their enormity. And weaving the tatra truck through the bases would be FAN-TASTIC.
I think what they should do is with the demo release whatever tools they use to import stuff into the engine, and the let community go wild. Doesn't need to be a full SDK, just release model specs and a few parameters to place stuff.
Logged

McArcher

  • Jr. Member
  • *
  • Posts: 14
Terramorphing and falling trees feature
« Reply #9 on: August 24, 2010, 04:39:06 pm »

Quote from: corona
I think what they should do is with the demo release whatever tools they use to import stuff into the engine, and the let community go wild. Doesn't need to be a full SDK, just release model specs and a few parameters to place stuff.

Yes, the community will help the project grow even more than in PC games with rich editors! New classes, new actions, new models, new animations, textures, new world.... :D

Look at Arma2 with its poor editor. Even there people make a lot of new addons, isles, vehicles, weapons, scripts... ACE2 mod which greatly modifies the game was made becuse Arma's developers are very lazy :) btw scripts in arma2 are very laggy and stupid, because they are not in game's language, but in new layered code which makes it very laggy....sorry for bad english :D
And in this project (Outerra) devs are not lazy at all, and I think if everyting goes as planned, this is going to be a very successful project....a constructor of games! :D
Logged

Headsetsniper

  • Newbie
  • Posts: 4
Terramorphing and falling trees feature
« Reply #10 on: August 26, 2010, 11:19:57 am »

Quote from: cameni
So the answer is that terrain modifications can be done by vector patches, that modify elevation and texturing both. This can be gradual so that the trenches get deeper with time, or instant for craters after explosions.

So this means that you can let explode something on the terrain, and there is a crater instaly after the explosion, and also physics will instalty apply to this terrain modification (collision detection etc) without reloading the heightmap/dataset???.. wow!!!!
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Terramorphing and falling trees feature
« Reply #11 on: August 26, 2010, 11:56:20 am »

Well, yes, using a looser definition of "instantly" :D
Generally it will take 2-3 frames to appear both visually and be reflected in physics. I think this cannot be a problem - even a much higher latency could be effectually hidden by particles during the explosion.
Logged

McArcher

  • Jr. Member
  • *
  • Posts: 14
Terramorphing and falling trees feature
« Reply #12 on: August 26, 2010, 01:10:23 pm »

I agree, we can sacrifice the realistic blowing, because all this will be hidden by smoke and fire after explosion or just smoke after collision. Even this feauture i cannot find in modern PC games, so for me terramorphing is a great feature!
Logged

RaikoRaufoss

  • Blood may move the wheels of history, but only our cunning keeps the wheels oiled.
  • Sr. Member
  • ****
  • Posts: 374
    • http://www.sabaton.net/
Terramorphing and falling trees feature
« Reply #13 on: August 26, 2010, 01:19:48 pm »

Yes, we can sacrifice realistic explosions for now, but I think a third party plug-in for realistic explosions would be nice and will probably be made.
Logged
Far from the fame
Far away from the fame
But we still remember your name
Karel JanouĊĦek
We mourn the day that you died
So be our guide
CZECHOSLOVAKIA'S PRIDE!!!!!!

Headsetsniper

  • Newbie
  • Posts: 4
Terramorphing and falling trees feature
« Reply #14 on: August 26, 2010, 04:11:35 pm »

Quote from: cameni
Well, yes, using a looser definition of "instantly" :D
Generally it will take 2-3 frames to appear both visually and be reflected in physics. I think this cannot be a problem - even a much higher latency could be effectually hidden by particles during the explosion.

and when you fly away, to the other side of the planet, and come back, is the crater still on the place whery it should be? or does it dissolve when you get out of the LOD range? And if not, how many "craters" can you save?
Logged
Pages: [1] 2