Skip to main content
GameDev.net gamedev.net
🔒 Locked

Lossy Compression

Started by The Reindeer Effect Jun 7, 2002 at 4:01 PM 7 replies 350+ views
Original Post
The Reindeer Effect
The Reindeer Effect
What uses does it have. I allready figure that it would work relatively well on media files (jpeg), but are there any others? ------------------- The Reindeer Effect Insomniac Software
Alimonster
Alimonster
Sound files too (mp3 et all.).

You could compress a text-file of some dictionaries and the result would look like most of the spelling on the Internet .

Lossy compression is useful when you don''t place as much importance on something. For example, in pictures luminance is more important than colour, so colour can be compressed more heavily. If you can generalize that then the answer is "lossy compression is useful where you don''t notice the difference."

Specific examples? Well, I can''t think of any off the top of my head. How about replays for games like Tekken - I wouldn''t be watching because I always get my ass kicked so I wouldn''t notice if the replay wasn''t exact .
parklife
parklife
regarding the issue with lossy replays in games, I must say that that can be very annoying.

The Replay function in GTA3 isn''t very exact, and it is very annoying, because you really want to see that cool move or that nice explosion again, but end up watching the car not exploding at all or something as incorrect.
Alimonster
Alimonster
quote:
Original post by parklife
regarding the issue with lossy replays in games, I must say that that can be very annoying.

The Replay function in GTA3 isn''t very exact, and it is very annoying, because you really want to see that cool move or that nice explosion again, but end up watching the car not exploding at all or something as incorrect.

Wow! I was joking when I said that - I didn''t imagine for a second that any games wouldn''t have accurate replays. It makes a mockery of the whole concept. There''s an interesting article on Gamasutra about reproducible behaviour; I wonder if the GTA3 makes saw it and whether that was a conscious design decision.
Michalson
Michalson
Its not lossy, its just that the GTA3 engine isn''t ''perfect''. If given the same inputs, but at a different framerate it can produce different results. Thats why I don''t like most of the "framerate independent" stuff I see, as the rounding errors created make it difficult to impossible to reproduce (both for replays and for multiplayer games).
a person
a person
yeah, most of the "frame independent" methods ppl use happen to be the x+=dx*someFactor which is VERY framerate dependent. true framerate independent movement is done using a fixed time step loop, and during the render you interpolate between the last two ticks (ie last two position results from the game logic running). the is ensures exact reproducable results, though input handling might be tricky (you must decide to only check every game logic tick or every frame, though nomatter which you choose, the input will only affect the game when the game logic is run).

quake2 ran its logic at 10 frames per second, but the actual display ran at whatever the hardware supported. the inbetween frames were interpolated.
parklife
parklife
Well, technically GTA3 surely doesn''t use lossy compression when saving replays, but the routine is very bad and doesn''t record things as cars being repaired, garage doors opening, time of explosion, sound (!!!) or explosions. Everything else is recorded but feels a bit ''thin'' or ''degraded'' when played back.
Narcus
Narcus
GTA3''s replays were "hacked-in" for the PC version and it''s obvious they didn''t spent a whole lot of time on that feature.

There are other games that display incorrect replays. In the Playstation 2 game "Sky Odyssey", you can take off and fly a whole mission, and then when you watch the replay it sometimes shows you stalling after take-off and crashing into the ground!
Narcusmy homepage:http://www.pcis.net/amenzies

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.