Author Topic: problem with animated scenery  (Read 5370 times)

0 Members and 1 Guest are viewing this topic.

Offline steppenwo1f

  • Major(1)
  • Posts: 36
problem with animated scenery
« on: November 24, 2010, 03:49:12 pm »
Hello, i have recently problem with animated scenery.
When i add it in polyworks (newest version) to map, all looks ok. but sometimes during game, happens sth like that:


In other words, it looks like I coloured that sceneries in polyworks. But i didnt, and other players also see transparent background of ani gif.
and it changes colours, first 2 screens has blue bacground, 3rd has lime-green.

When i select scenery in polyworks and colour 1 scenery of such type with white color, it helps for a while for all sceneries of that type...

What is goin on...
Is it sth in py system? bad drivers or sth? or what... or i am making gifs in wrong way (they works for others ppl)

and it happens also with gifs not made by me, i used some time ago a torch, and sometimes background changes to black

I have windows 7
« Last Edit: November 24, 2010, 03:59:56 pm by steppenwo1f »

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: problem with animated scenery
« Reply #1 on: November 25, 2010, 02:33:39 am »
gif sceneries are somewhat glitchy... try saving them with 256-colour palette

Offline steppenwo1f

  • Major(1)
  • Posts: 36
Re: problem with animated scenery
« Reply #2 on: November 25, 2010, 06:57:52 am »
btw any of u had such a problem with it?

they are saved in 8 bit color (its 256 colors, am I right?)
what program should I use to make animations
I use Photoshop for draw main frames, and Easy GIF Animator for animate them

I attached that 2 gif files \/

1st is modified gif from internet (changed black backgroud into transparent, increased lightness and resized), second is drew by me

btw in my polyworks "Pick a pixel colour" option doesn't work. It always takes black color. I have found somewhere that sb had same problem, but someone replied its fixed. It stopped to work when i change system.
« Last Edit: November 25, 2010, 07:11:25 am by steppenwo1f »

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: problem with animated scenery
« Reply #3 on: November 25, 2010, 07:20:50 am »
its a bug related to ATI graphic cards.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline steppenwo1f

  • Major(1)
  • Posts: 36
Re: problem with animated scenery
« Reply #4 on: November 25, 2010, 08:02:03 am »
Ye, i have ATI card...
is any way to solve that?
or where to search..
All i find is 404 error

but it happens ony with my scenerys, for example I never have seen that with VTT's, so it seems to happen when I make/save animation

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: problem with animated scenery
« Reply #5 on: November 25, 2010, 09:18:22 am »
More like soldat bug that happens on ATI cards. btw ATI here as well
Open it in Gimp, go to Image->Mode->Indexed...
Convert to 256-colour pallette. This usually helps.

Offline Monsteri

  • Artist
  • Flagrunner
  • ******
  • Posts: 769
  • Strange thing
Re: problem with animated scenery
« Reply #6 on: November 25, 2010, 09:34:35 am »
And if that doesn't help, make gif sceneries background same as bunkers :D
Sorry if I'm insolent.

Offline steppenwo1f

  • Major(1)
  • Posts: 36
Re: problem with animated scenery
« Reply #7 on: November 25, 2010, 10:27:10 am »
And if that doesn't help, make gif sceneries background same as bunkers :D
I don't want solve it like that, i want to make gif, which i could use in more places on map and in other map.

So, converting in gimp to 256 colors (what was before as i guess) changes nothing. It still changes randomly background into colors. sometimes its ok, and i quit map and join again and blue background

I converted that steam gif into grayscale - helped, no changes of background. But the other one should be in color... Maybe 256 is too much?

and 1 thing, when i was converting it, in Gimp was written 255, and had change it into 256

it works well when i used "web-optimized palette"... but there are few colors
« Last Edit: November 25, 2010, 11:04:54 am by steppenwo1f »

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: problem with animated scenery
« Reply #8 on: November 25, 2010, 02:46:45 pm »
How about trying 255 then?

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: problem with animated scenery
« Reply #9 on: November 25, 2010, 03:42:09 pm »
Uh, actually, I believe it's Photoshop's fault. Heres my theory:
When Photoshop saves an animated gif - it checks which pixels change, and which pixels are the same on all frames. If some pixels are the same on all frames - it only saves them on the first one, and on other frames it replaces them with transpacency. Because Soldat does not support transparent pixels - it renders them as solid color.


Try saving each frame as separate non-animated gifs, and make sure each of them has a green background (one that's used for transparency in Soldat), and then merge them together in a different program (I don't know which program does that - try Gimp maybe).
Then open up the finished animated gif in Gimp and make sure that none of the frames have transparent pixels in them.

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: problem with animated scenery
« Reply #10 on: November 25, 2010, 03:45:22 pm »
Uh, actually, I believe it's Photoshop's fault. Heres my theory:
When Photoshop saves an animated gif - it checks which pixels change, and which pixels are the same on all frames. If some pixels are the same on all frames - it only saves them on the first one, and on other frames it replaces them with transpacency. Because Soldat does not support transparent pixels - it renders them as solid color.


Try saving each frame as separate non-animated gifs, and make sure each of them has a green background (one that's used for transparency in Soldat), and then merge them together in a different program (I don't know which program does that - try Gimp maybe).
Then open up the finished animated gif in Gimp and make sure that none of the frames have transparent pixels in them.
nah not really
I can get the same problem on any animated gif. I just need to reload the map until it happens.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: problem with animated scenery
« Reply #11 on: November 25, 2010, 03:48:12 pm »
Well, I know it can be caused by other things, but Photoshop messing up the transparency surely has got to be one of them. So it won't hurt to check for that just in case. At least that was the problem when I tried adding animated gifs to maps.

Offline Blue-ninja

  • Veteran
  • *****
  • Posts: 1419
Re: problem with animated scenery
« Reply #12 on: November 25, 2010, 04:05:07 pm »
Afaik, I've made animated sceneries with ms paint + unfreeze and it didn't have any problems

Plus, a black background also shows up as transparent in .gif as well. I've been using that.

Offline steppenwo1f

  • Major(1)
  • Posts: 36
Re: problem with animated scenery
« Reply #13 on: November 25, 2010, 04:14:54 pm »
only gifs for frames were made in photosop, animeted with other program.
maybe photoshop makes sth with gifs...
VTT, yours gifs (that lights and girl on Kampfer) never changed color. And i downloaded 1 gif from here http://www.metalslugsprites.net/ and it works well
Maybe it's sth wth colors... gifs in colors 'web safe' work well

and for me black background is always black...

Offline Monsteri

  • Artist
  • Flagrunner
  • ******
  • Posts: 769
  • Strange thing
Re: problem with animated scenery
« Reply #14 on: November 26, 2010, 07:38:29 am »
Where's a girl in kampfer??  Try to post the scenery to something sharepage, (Megashare?) and then download it to your computer and replace with that the old one.
Sorry if I'm insolent.

Offline steppenwo1f

  • Major(1)
  • Posts: 36
Re: problem with animated scenery
« Reply #15 on: November 26, 2010, 07:54:33 am »
hehe search search that girl ;)
that with upload will not work. I tried that (not intentionally).

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: problem with animated scenery
« Reply #16 on: November 26, 2010, 08:02:34 am »
Those comments about photoshop and paint made me do facepalm...
anyway, try this: