Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: RandomTiger on October 25, 2003, 07:13:44 am

Title: Replacing ANI's - discuss
Post by: RandomTiger on October 25, 2003, 07:13:44 am
Ani's (correct me if Im wrong) are a collection of PCX files in one file. It would be nice to have a 32bit replacement, what would be the best way?

A file full of jpg or tga?
Avi?
Something else?
Title: Replacing ANI's - discuss
Post by: FreeTerran on October 25, 2003, 07:15:22 am
hmm i think high quality jpg are the best or avi but not tga
Title: Replacing ANI's - discuss
Post by: RandomTiger on October 25, 2003, 07:16:49 am
TGA would probably lead to huge file sizes but why not avi?
Title: Replacing ANI's - discuss
Post by: FreeTerran on October 25, 2003, 07:18:36 am
i have only written not tga read carefully ;)
Title: Replacing ANI's - discuss
Post by: RandomTiger on October 25, 2003, 07:20:44 am
Mmm... I think I need to sleep more.

If ANI's need to use alpha at all then we might have to go back to the green for alpha system.
Title: Replacing ANI's - discuss
Post by: Bobboau on October 25, 2003, 08:18:34 am
mayb suport for avi/mpeg
Title: Replacing ANI's - discuss
Post by: HotSnoJ on October 25, 2003, 08:21:28 am
Well whatever you do make sure we can loop them.
Title: Replacing ANI's - discuss
Post by: kasperl on October 25, 2003, 10:15:45 am
gif
Title: Replacing ANI's - discuss
Post by: FreeTerran on October 25, 2003, 10:27:03 am
Quote
Originally posted by kasperl
gif

:wtf: they are in 256 colors
Title: Replacing ANI's - discuss
Post by: HotSnoJ on October 25, 2003, 10:33:43 am
Or some coder could make a ani builder that goes through 16 million clor pcx files and selects the best color palette so there's minimal color loss. Kinda like 2-pass avi encoding.
Title: Replacing ANI's - discuss
Post by: kasperl on October 25, 2003, 10:50:06 am
Quote
Originally posted by FreeTerran

:wtf: they are in 256 colors


sure?

my fault then, i haven't been doing any serious PSP stuff for some time now.
Title: Replacing ANI's - discuss
Post by: phreak on October 25, 2003, 10:51:29 am
not to mention gif liscences cost a ****load of money

www.burnallgifs.org
Title: Replacing ANI's - discuss
Post by: kasperl on October 25, 2003, 10:52:09 am
liscences.  never tought of that.
Title: Replacing ANI's - discuss
Post by: karajorma on October 25, 2003, 11:30:03 am
Quote
Originally posted by HotSnoJ
Or some coder could make a ani builder that goes through 16 million clor pcx files and selects the best color palette so there's minimal color loss. Kinda like 2-pass avi encoding.


Bright already does that. It's still not as good as having 24/32 bit images.
Title: Replacing ANI's - discuss
Post by: WMCoolmon on October 25, 2003, 12:04:47 pm
Animated PNGs?
Title: Replacing ANI's - discuss
Post by: HotSnoJ on October 25, 2003, 12:30:39 pm
Quote
Originally posted by karajorma


Bright already does that. It's still not as good as having 24/32 bit images.
where can I get bright?!
Title: Replacing ANI's - discuss
Post by: Galemp on October 25, 2003, 02:22:46 pm
Just so long as they get automatically resized in hi-res mode I'll be happy. :)
Title: Replacing ANI's - discuss
Post by: Sticks on October 25, 2003, 03:04:10 pm
Definately png. A quick way would be to make the new ani format just a tar of pngs in sequential order. Maybe in the future use zlib to compress them or something. Although I believe pngs are already compressed, so that may not even be necessary.

EDIT:
Upon more reading, actually jpeg may be the way to go. PNGs do better with continuous color tones rather than subtle hue changes. JPEG may not be the most computationally conservative option, though.

Use the DivX codec!;)
Title: Replacing ANI's - discuss
Post by: Kazan on October 25, 2003, 05:07:50 pm
AVI + DivX
Title: Replacing ANI's - discuss
Post by: Taristin on October 25, 2003, 05:13:51 pm
Quote
Originally posted by Kazan
AVI + DivX


*Seconds That*
Title: Replacing ANI's - discuss
Post by: Sticks on October 25, 2003, 05:17:00 pm
Actually, that was kinda a joke. AFAIK, DivX decoding is fairly computationally expensive. However, for message and briefing anims, I think this would actually work out ok.
Title: Replacing ANI's - discuss
Post by: IceFire on October 25, 2003, 05:53:29 pm
One thing about the ANI format....there are just PCX files...the overhead on those guys has to be really small.  Conversly, MPEG has to be much much more...
Title: Replacing ANI's - discuss
Post by: Taristin on October 25, 2003, 07:20:53 pm
Quote
Originally posted by Sticks
Actually, that was kinda a joke. AFAIK, DivX decoding is fairly computationally expensive. However, for message and briefing anims, I think this would actually work out ok.


:o Whoops. Well, I've never pretended to be knowledgable on this. But I agreed because AVI's are extremely easy to create with all of the softwares floating about here and there. And the DiVx codecs supposedly make them better, so I put one and one together...

Oh well, my opinion doesn't matter anyway.
Title: Replacing ANI's - discuss
Post by: ChronoReverse on October 25, 2003, 08:25:37 pm
DivX makes it smaller.  But at the cost of CPU time.
Title: Replacing ANI's - discuss
Post by: Kamikaze on October 25, 2003, 09:32:35 pm
I think an mpeg4 format would be nice. Preferably not DivX or a Microsoft format.
Title: Replacing ANI's - discuss
Post by: CP5670 on October 25, 2003, 10:55:39 pm
Doesn't PCX support colors higher than 8-bit? I have several pcx's that are listed as 24-bit images. Or does the compression decrease the quality?
Title: Replacing ANI's - discuss
Post by: Sesquipedalian on October 25, 2003, 11:10:13 pm
File size may be an issue for downloading on 56kbps, but reducing the frame rates will have everyone screaming bloody murder.  Go with what runs the fastest.
Title: Replacing ANI's - discuss
Post by: CP5670 on October 25, 2003, 11:15:26 pm
yeah, especially since there are already some problems on that front with the latest build.
Title: Replacing ANI's - discuss
Post by: ChronoReverse on October 25, 2003, 11:29:58 pm
Quote
I think an mpeg4 format would be nice. Preferably not DivX or a Microsoft format.


And that leaves us with... xvid or quicktime 6.  O_0

XviD support wouldn't be a bad idea, but make sure to restrict it to only the Simple Profile.  As long as none of the Simple Advanced features are used, playback should be reasonable (of course, hi-res videos won't be a good idea, the current size of the anis should be fine).
Title: Replacing ANI's - discuss
Post by: Kamikaze on October 26, 2003, 12:07:19 am
you're forgetting...
3ivx
nAVI
OpenDivx
(ther're probably more)
Title: Replacing ANI's - discuss
Post by: Flaser on October 27, 2003, 05:41:44 pm
XVID + OGG support.

...or OGM as a whole.

Why not plain DivX?

XVid is opensource freeware IIRC.
So is OGG - an alternative for mp3.

Beside OGM is just as good as MPEG-4 (actually it is quite the same IMHO in several aspects).
Title: Replacing ANI's - discuss
Post by: Flipside on October 27, 2003, 05:50:54 pm
Well, the more compressed the file is, the more CPU time it takes to uncompress when the game is running, it might even be advisable to have a kind of PCX system running, but with the 256 colour pallette running for each frame?

Flipside :D
Title: Replacing ANI's - discuss
Post by: Nico on October 27, 2003, 06:18:11 pm
Quote
Originally posted by ChronoReverse
DivX makes it smaller.  But at the cost of CPU time.


(quote taken coz it's the latest one I've seen, it's not against you, CR, it's a general remark )

Come on, what PC can run FS2 and would have problems with a 320*200 divx file? what the hell is that CPU time cost? If that pauses any resource problem, the whole game deserves to be burnt down and stamped.
Title: Replacing ANI's - discuss
Post by: Bobboau on October 27, 2003, 06:53:29 pm
it would be decompressed udring load into the internal format that FS uses, CPU time is vurtualy irrelevent
Title: Replacing ANI's - discuss
Post by: ChronoReverse on October 27, 2003, 09:41:01 pm
And I also mentioned how such small videos wouldn't use much cpu in the very next paragraph =)

3vix is pretty much a non-illegal version of divx3.11;-) in terms of the output file.  It doesn't actually follow the mpeg4 spec.

Opendivx has died ages ago.

Never heard of nAVI =\

Technically it's possible to use ogg vorbis and xvid in an avi container but generally it didn't work well and it was an ugly hack (hence the need for the ogm container).

Ogg audio, wouldn't be a bad idea I suppose.  But what do the coders say (I bet this isn't easy or else someone would've done it ages ago)?

Since DivX cutscenes are in FSO now I suppose that the mpeg4 licensing issue isn't anymore?  Or is it just using directshow?
Title: Replacing ANI's - discuss
Post by: Goober5000 on October 27, 2003, 10:21:17 pm
Quote
Originally posted by ChronoReverse
Ogg audio, wouldn't be a bad idea I suppose.  But what do the coders say (I bet this isn't easy or else someone would've done it ages ago)?


:nod:

Quote
Since DivX cutscenes are in FSO now I suppose that the mpeg4 licensing issue isn't anymore?  Or is it just using directshow?


No, no, no.  FSO does not include DivX.  It opens a Windows Media Player window, which means that it can run anything that WMP can run.  Hence, it can only run DivX if WMP has the codec installed.
Title: Replacing ANI's - discuss
Post by: ChronoReverse on October 27, 2003, 11:03:49 pm
So it uses directshow... in a manner of speaking (at least for divx video).  Although bobbeau seems to have hinted that it could be possible for the avi's to be decompressed to a FS2 format before playing in the window.


[edit]  What I mean is that if it opens up a WMP window and since WMP uses the DivX dshow filter to playback divx, FSO is kinda using dshow XD [/edit]
Title: Replacing ANI's - discuss
Post by: Bobboau on October 27, 2003, 11:31:13 pm
I was of course talking out of my ass there, no idea on how to do that, just thinking of posabilities
Title: Replacing ANI's - discuss
Post by: ChronoReverse on October 28, 2003, 01:38:53 am
Be careful, we take your words like that of the Immortals :D
Title: Replacing ANI's - discuss
Post by: KARMA on October 28, 2003, 04:12:42 am
mmm I absolutely don't know about the quality of the format, the compression, or the license, but....
what about quicktime movies?
I'm naming them just because in photoshop with the same tool you use for animated gifs you can create .mov or .qt files.
And if it wasn't for the license, I'd go for gifs too, althought the colour limit, mainly because you can have a transparent background and they are very easy to do.
I always thought the licensing problems were only with the compression algorithms, and that there were alternative algorithms, and therefore only the programs to create gifs could have problems, but I may be wrong...I'll read phreak's link.

->well it seem that for all the programs using LZW compression method (it means not only GIFs) must be payed a license, both for compression and decompression, no matter if you are making a non commercial product; I suppose you will have to use this LZW to add gif support wich could lead to some patent violations
Title: Replacing ANI's - discuss
Post by: Nico on October 28, 2003, 05:04:19 am
pffff, that gif license thing. there's millions of sites on the web, 80% of them are full of gif pics. Like hell they even caren at Unisys ( btw, those guys at burnallgifs.org are morons ).

Anyway, I think the most sensible choice is WMV. Tools to make wmv files comes with every legal windows copy, it's free to use, it's not that bad, so it clears all worries. well, that's my two cents.
Title: Replacing ANI's - discuss
Post by: KARMA on October 28, 2003, 06:30:32 am
but the problem as far as I've understood aren't the single images, but the programs using this LZW compression method to compress or decompress images ( not only gifs ), and I suppose that, in order to add gif support in FSO, this compression method should be used.
Anyway, I think you guys should choose a format considering
If there is a license
how easy it is to create an animation in that format
how easy it is to implement this format into fso
what is the quality of the format
what is the resulting filesize in this format
what is the performance hit
I think most of us -surely me- really don't have the knowledge to discuss about those points, so personally I trust your choice:)
Title: Replacing ANI's - discuss
Post by: HotSnoJ on October 28, 2003, 06:57:06 am
KARMA: Don't forget about looping!
Title: Replacing ANI's - discuss
Post by: Drew on October 29, 2003, 07:44:17 pm
why not just load the AVI into the VRAM or sumthing; wouldnt that take the load of the CPU?
Title: Replacing ANI's - discuss
Post by: Fry_Day on October 30, 2003, 01:22:00 am
Tehnically, instead of PNG, there's MNG, which is basically exactly what's needed as a file-format, but adunno about how much support it has as a format, so I don't know about which programs actually support saving to that format.
Title: Replacing ANI's - discuss
Post by: Setekh on October 30, 2003, 02:56:08 am
I would die for OGG audio - it'd be fantastic for anyone who wanted to do extensive voice-acted campaigns, because WAVs are so huge.
Title: Replacing ANI's - discuss
Post by: Kazan on October 30, 2003, 09:36:19 am
DivX is mpeg4
Title: Replacing ANI's - discuss
Post by: Kazan on October 30, 2003, 09:39:59 am
load a movie into VRAM! *looks at 100+ meg filesizes* ARE YOU INSANE :D
Title: Replacing ANI's - discuss
Post by: Fry_Day on October 30, 2003, 09:52:08 am
The LZW patent is no longer binding in the US.

I'm totally against WMV - it's unportable. Besides, Microsoft control enough fields of computing as-is. Don't give 'em more power. Besides, H.264 (aka MPEG4 part 10, H.26L) is much nicer :)
Title: Replacing ANI's - discuss
Post by: karajorma on October 30, 2003, 10:10:29 am
I'm against WMV for the same reason. FS2 now runs on more than just Windows we should try to make sure that things stay that way.
Title: Replacing ANI's - discuss
Post by: Flipside on October 30, 2003, 05:52:25 pm
Agreed there, though it depends how DivX or the like performs in game, the availability of freeware converters to that video type, for people who don't have one, and whether it can convert still images etc. It would actually make life easier for me, since I can render animation straight to DivX format, as can most people with 3D animation software, but are there free BMP or JPG series to DivX video converters out there for those that work frame by frame?

Flipside :D
Title: Replacing ANI's - discuss
Post by: Flaser on October 30, 2003, 06:12:57 pm
Why shouldn't we use Xvid?

For all I know, that's good even license wise.

...or there's open divx, though I know little about it.

BTW ogm files are good, because they are not as valnurable as simple avi files - they have backward framing too, so skimming through them is faster as well.
Title: Replacing ANI's - discuss
Post by: RandomTiger on October 30, 2003, 06:19:16 pm
I think using a video file is less likely considering the overhead.