CompuServe Thread

3D studio bug.

1 messages in this thread
#197013From: Olivier LHERMITEOct 25, 1995 11:15 AM
I have foudn a bug in 3D Studio when saving GIF images. Sometimes the routines of 3DS for saving GIF images bugs and the last line or two last lines of the image are scratch. I have try to show them with QPEG,Adobe Photoshop,Alchemy …etc some of this programm doesn't want to read the file and says 'sorry the image is corrupted' , some other read the file but crash on the 2 last lines . I have found the solution in GIF format : People who have already work on the GIF format know that the data stream is organised in block of 255 bytes at maximum. So you have several blocks of 254 or 255 bytes before the last one which have the correct size to padd the data stream stilll the end of it. After that you've got a block with a size EVER egal to zero, so that you know that the data stream is really finish. The bug is on the block to padd the data stream; And this bug append only when there is only 256 BYTES to save on block , 3DS think that he can put the 256 in ONLY ONE block , but the size of this block is coded on 8 bits (0-255) , so you have the block of the stream with a size of (256 & 0xff) = ZERO !!!! most of the programm stop to uncompress thinking that the data stream is finish, and that the file corrupted because they did'nt finish to uncompress Size_x*Size_y pixels . If someone else found other bug , or a good solution for this one , contact me thanks !! ( I found a solution which work with all the corrupted image I have saw … I hoppe that will be good for alll the GIF image of the galaxy !) Bye. Olivier LHERMITE Adeline Software / FRANCE