ExpandLZG function problem

Prince of Persia related subjects that do not have their own boards.
Post Reply
Nico
Efendi
Efendi
Posts: 15
Joined: January 26th, 2009, 3:11 am

ExpandLZG function problem

Post by Nico »

Hi all, I'm trying to decompress the sprites compressed with the LZ algorithm but I have the problem the they are decompressed with the half of their original width. Any idea why??
poirot
Developer
Developer
Posts: 394
Joined: March 24th, 2003, 8:52 pm
Location: Australia
Contact:

Re: ExpandLZG function problem

Post by poirot »

May I see any sample encoded and decoded binary data?
Nico
Efendi
Efendi
Posts: 15
Joined: January 26th, 2009, 3:11 am

Re: ExpandLZG function problem

Post by Nico »

Hi, I've been doing some research and I believe that I'm drawing the decompressed sprites the wrong way. Does anyone have some example I can see do that I can understand how they are draw on the screen?

The sprites I'm trying to draw where decompressed using the LZG_UD and LZG_LR algorithm.

Thanks!
Nico
Efendi
Efendi
Posts: 15
Joined: January 26th, 2009, 3:11 am

Re: ExpandLZG function problem

Post by Nico »

Nevermind guys I managed to solve this. I was drawing the sprites the wrong way...
poirot
Developer
Developer
Posts: 394
Joined: March 24th, 2003, 8:52 pm
Location: Australia
Contact:

Re: ExpandLZG function problem

Post by poirot »

Great! If you have any problem with the algorithm don't doubt contacting me. If you want to code some stuff let me know too.
Post Reply