Author Topic: 3D explosions  (Read 12188 times)

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
3D explosions
« on: January 13, 2012, 11:47:37 am »
I always found it curious how explosions are confined to one level. I'm suggesting (to myself) making an option that the explosion affects a sphere-shaped area. Also for smoke grenades (smoke being blocked by floors and ceilings of course). Incendiary probably has not a lot of spreading upwards, as it is more affected by gravity, so I'm leaving that as it is.

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: 3D explosions
« Reply #1 on: January 13, 2012, 11:54:43 am »
What about creating creaters in ground? :D But that probably would require much additional work (like negative levels).

Offline hsbckb

  • Colonel
  • ****
  • Posts: 275
  • Gill Man
    • View Profile
Re: 3D explosions
« Reply #2 on: January 13, 2012, 12:19:04 pm »
I strongly agree that explosions should be multi-leveled. Negative level(i.e underground level) is a must, especially for Alien Grenade.

However, we must teach our operative how to climb out from the hole  ::)
« Last Edit: January 13, 2012, 03:26:22 pm by hsbckb »

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: 3D explosions
« Reply #3 on: January 13, 2012, 12:36:31 pm »
Personally I shouldn't even make it optional... but seeing it as a "bug" fix.

Negative ground level is something that can be more or less be supported. It's more a matter of remaking all maps, moving everything up one level and filling level 0 with ground.
But as hsbckb said, it will create 1-man deep craters with vertical walls you can never get out once you fall in :p
« Last Edit: January 13, 2012, 12:42:23 pm by Daiky »

Offline luke83

  • Commander
  • *****
  • Posts: 1559
    • View Profile
    • openxcommods
Re: 3D explosions
« Reply #4 on: January 13, 2012, 12:41:23 pm »
I was thinking the same thing the other day :)

I would call this a bug fix ;D

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: 3D explosions
« Reply #5 on: January 13, 2012, 01:06:24 pm »
But as hsbckb said, it will create 1-man deep craters with vertical walls you can never get out once you fall in :p

No problem, just equip your soldier with "portable ladder" ;)

But really, what about creating craters with diagonal walls? Like in mountains or dunes.

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: 3D explosions
« Reply #6 on: January 13, 2012, 01:26:41 pm »
real craters with diagonal walls? I don't know, what if two craters overlap eachother and then still have to create very smooth edges... my brain hurts just thinking about it.
Just let the scripting fans code such terrain deformation algorithms in lua or python :p

Offline hsbckb

  • Colonel
  • ****
  • Posts: 275
  • Gill Man
    • View Profile
Re: 3D explosions
« Reply #7 on: January 13, 2012, 01:43:46 pm »
Actually, negative level exist in game. In desert area, there are sand dune with surface at level 3 or 4.  We can activate a grenade there to see how the original game handle this situation.

Offline DiceMaster

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Re: 3D explosions
« Reply #8 on: January 13, 2012, 01:46:40 pm »
Even more interesting to simulate explosion wave. And explosion will not be always round, but will follow geometry of the map.

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: 3D explosions
« Reply #9 on: January 13, 2012, 02:14:00 pm »
I don't know what you mean with explosion wave? Initial blast is round, but it's path can be blocked by objects (they have a HE block modifier) but that's already implemented and working.

Volutar

  • Guest
Re: 3D explosions
« Reply #10 on: January 13, 2012, 04:08:47 pm »
Actually explosions are multileveled, but implemented weirdly. Anyways explosion wave shouldn't be "spherical" just because of 3d proportion. Level height is 24 and tile size is 16. So it should be slightly "squeezed" vertically. But I think it should be squeezed even more. Probably variable value.

Offline DiceMaster

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Re: 3D explosions
« Reply #11 on: January 13, 2012, 04:41:39 pm »
I mean spreading and reflection of blast waves. If grenade explodes in closed room, then explosion pressure on walls and objects inside room will be higher than in open air. Explosion in a corridor will spread farther, e.t.c. Something similar I saw in Dungeon Crawl Stone Soup for aoe spells.

Offline luke83

  • Commander
  • *****
  • Posts: 1559
    • View Profile
    • openxcommods
Re: 3D explosions
« Reply #12 on: January 16, 2012, 08:02:45 am »
Does openX only support 4 levels or can we go higher ?

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: 3D explosions
« Reply #13 on: January 16, 2012, 12:27:17 pm »
It should be unlimited

Offline luke83

  • Commander
  • *****
  • Posts: 1559
    • View Profile
    • openxcommods
Re: 3D explosions
« Reply #14 on: January 16, 2012, 12:32:09 pm »
Sweet