Author Topic: animation for standard terrain tiles  (Read 14477 times)

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
animation for standard terrain tiles
« on: January 07, 2015, 10:20:26 pm »
Simple thing I made.

I duplicate larger vegetation images and add simple effect of moving by wind. Similar to what was made in settlers 1. Effect is almost noticeable during battlescape but gives feeling that environment is more alive. Still different plant objects have its animation shifted so they are not moving at the same time.

What do you think about it ? hot or not ? Does anyone care about it ? Does any one want to improve tilesets to add animations properly ?

PS: just don't kill me for the "settlers 1" thing :)

Tin

Offline BlackLibrary

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: animation for standard terrain tiles
« Reply #1 on: January 07, 2015, 11:00:58 pm »
+1 here.  When OpenTFTD is lifting off the ground, more undersea life that does just that and then some would be awesome.

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Re: animation for standard terrain tiles
« Reply #2 on: January 07, 2015, 11:25:04 pm »
actually it can be done even today. It is just a matter of small changes in current images via mcd editor. In vanilla ufo 1 only few items were animated. in vanilla tftd there was much more.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: animation for standard terrain tiles
« Reply #3 on: January 08, 2015, 05:51:18 pm »
Problem is that every tile onscreen will be "synchronized", i.e. in one phase. It's only the smoke which has phase randomized. To make them look a bit diversed, you'll have to make extra MCDs with another "phases", but that will lead to altering maps too.
In UFOEU only arctic tileset has terrain animation (water). TFTD has more animated things, but sometimes it feels even overly.
But really, i would like to invent "random phased" bit in the MCD, to avoid map rebuilding, and in the same time provide visual "evenness" of terrain animation.
For example, byte38, is always 3. For no reason. Unused byte in the MCD. We can use it. If byte38==0 and MCD is animated - init tile with random phase (0..7).
« Last Edit: January 08, 2015, 06:03:45 pm by volutar »

Offline BlackLibrary

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: animation for standard terrain tiles
« Reply #4 on: January 08, 2015, 06:12:39 pm »
Interesting. 

Sounds like you would need the following:
1.  Non animated
2.  Animated, sequential
3.  Animated, random


Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: animation for standard terrain tiles
« Reply #5 on: January 08, 2015, 06:19:33 pm »
No.
Most of tiles have all 8 frames equal === they aren't animated
Some tiles are using different PCKs. But "vanillish" way to treat them - by starting from 0. And animating simultaneously, i.e. one phase for whole map.
We can add visual diversity for "animated" terrain tiles, by adding special flags to them - random starting phase.
And frankly, 2 frames is too few. At least there should be 3.
I think I am clear enough here.
« Last Edit: January 08, 2015, 06:25:29 pm by volutar »

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Re: animation for standard terrain tiles
« Reply #6 on: January 08, 2015, 06:22:22 pm »
not true. I can setup different phase for different pck. Tested on vanilla and works fine.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: animation for standard terrain tiles
« Reply #7 on: January 08, 2015, 06:26:30 pm »
not true. I can setup different phase for different pck. Tested on vanilla and works fine.
There's single MCD for the wheat (CULTIVAT#4). And map is using single value for it. How are you gonna setup different phases across that map module with field of wheat?

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Re: animation for standard terrain tiles
« Reply #8 on: January 08, 2015, 06:30:37 pm »
as shown in first post. and its working fine. I never said that every tile will animate seperately. This is your assumption volutar :) Every tile animated separately would be very distracting.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: animation for standard terrain tiles
« Reply #9 on: January 08, 2015, 06:33:28 pm »
It can't work fine. Where did you see field of wheat which is waving as one?
Did you see smoke with phase0 as initial? It looks awful. And any terrain animation "flashing" with same frames in same time, will look awful.

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Re: animation for standard terrain tiles
« Reply #10 on: January 08, 2015, 06:40:19 pm »
This is your opinion it will looks awful. Luckily there are players who has their own opinions :) I asked them and they agreed. Players, not moders or developers.

Btw I just shown simple way how game could be enhanced. If you like it, it is cool. if you don't then its ok. You don't have to add comments that brings no value especially when it comes to very subjective as visuals.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: animation for standard terrain tiles
« Reply #11 on: January 08, 2015, 07:06:27 pm »
It's not serious to be "fine" with totally unison, synched "fullframe" terrain animation. It seems like you simply didn't see it looking better, and people you were asking didn't see either. Making terrain slightly more dynamic is great idea, and it should be carried out properly to look really worthy. And I can't admit this "synched" way is good. It can, and must be better.
My comment is simply about getting it better and worthy.
This idea deserves more polished and higher quality look.
« Last Edit: January 08, 2015, 07:18:15 pm by volutar »

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Re: animation for standard terrain tiles
« Reply #12 on: January 08, 2015, 07:32:36 pm »
done in my fork, can be merged with original one, no impact on standard tiles


Offline Yankes

  • Commander
  • *****
  • Posts: 3194
    • View Profile
Re: animation for standard terrain tiles
« Reply #13 on: January 08, 2015, 08:05:58 pm »
is hard to show animation using only one screenshoot :) YT video or gif would be better.

Another thing that I must agree with volutar, adding random seed to phase add lot more natural feel. In many games when you see big surfaces of repeating pattern, every thing look 10 time worse.

Good example is globe shading, without random part (poor man dithering) you will see multiple lines passing through ocean, that was very distracting.

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile