TXG/MNX Posted December 1, 2014 Share Posted December 1, 2014 About lz77 never used it before what is a good compressor for windows and what modes does the unpack routine support. I read that there are atleast 5 modes with lz77 compression. Quote Link to comment Share on other sites More sharing options...
+remowilliams Posted December 1, 2014 Share Posted December 1, 2014 A good 68000 primer manual would be a good companion to this. No, I'm not writing it Here you go 68000, 68010, 68020 Primer 4 Quote Link to comment Share on other sites More sharing options...
ggn Posted December 2, 2014 Share Posted December 2, 2014 (edited) About lz77: never used it before. What is a good compressor for windows and what modes does the unpack routine support? I read that there are atleast 5 modes with lz77 compression. Please use punctuation, this is not Twitter and there's no contest on who will write the shortest message in the least number of characters . Anyway, given that Ray's pages are back, and the source is available, and it's only 2-3 pages long (even the packer), I'm sure that it'll take about 5 mins to answer these questions by yourself . Edited December 2, 2014 by ggn 3 Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 2, 2014 Share Posted December 2, 2014 Ray does not mention anything about supported modes so I asume all modes are supported. Now looking for a good win32 lz77 compressor. Will try to find a one. I am typing sometimes on mobile phone that kbd sucks so thats why my text are short. Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 2, 2014 Author Share Posted December 2, 2014 Ray does not mention anything about supported modes so I asume all modes are supported. Now looking for a good win32 lz77 compressor. Will try to find a one. I am typing sometimes on mobile phone that kbd sucks so thats why my text are short. Why? It's not like you need to compress things to get something on screen. Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 2, 2014 Share Posted December 2, 2014 I know you don't need to use that to display something. But to decompress new data/lists when going to a new level. Today I did play around with the animation example, it did change the option dc.l 0 ; sprite_active ; sprite active flag Change it from is_active to 0, 1 and other numbers but the sprite is still enabled, this option is meant to disable that object right ? Maybe it's meant for other things but I thought active sprites are only displayed. I did try it for the background and sprite and both but cannot set one non-active. Secondly I looked, I haven't find an option to play the animation backwards only by making new graphics and a new object. For a small project I am doing I needed some animation, I get it to work both ways but by using 2 objects and 2 gfx, The second has all frames revert. Would be nice, I could just reuse the original gfx. Ofcourse I could also build the reverse gfx from the original gfx I have and in main code copy it into mem reversed but a simple flag that sets the animation direction would be nice. Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 2, 2014 Author Share Posted December 2, 2014 I bet you didn't try -1. There's an alias 'is_inactive' so you don't have to put random numbers in there. Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 3, 2014 Share Posted December 3, 2014 O ok i did try not_active :-) indeed i did not try negative numbers. Thanx will try again. What about play animanion reversed can that be done too? Or is that not possible Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 3, 2014 Author Share Posted December 3, 2014 I'm not adding anything until someone does something with it. Otherwise, it's all wasted effort. So.. the onus is on you guys. 2 Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 4, 2014 Share Posted December 4, 2014 Me again I did try to get a 24-bit picture displayed, I checked all settings several times, I cannot find the error here. I also get different results, a 24-bit BMP shows weird, when the same BMP is converted to TGA it looks better but not the colors. I use the dc.l no_CLUT ; sprite_CLUT ; no_CLUT (8/16/24 bit) or CLUT (1/2/4 bit) This would mean the colors are not from CLUT table but from image. According to the manual the function RAPTOR_GFXConvert (EX-02a)This function will convert the specified image (Windows BMP 4/8/16/24 bpp or TGA16/24 bpp) to Jaguar Bitmap format. The routine would auto-detect the format I guess 24-bit images are 3 bytes so I changed the following In _RAPAPPS.S raptor_video_mode equ vidRGB16 to vidRGB24 In _RAPINIT.S I did change the colordepth to 24 and these fields for *2 to *3 because 24-bit will use 1 extra byte dc.l 320*240*3 ; sprite_framesz ; size per frame in bytes of sprite data *** 24-bit values are 3 bytes dc.l 320*3 ; sprite_bytewid ; width in bytes of one line of sprite data *** 24-bit values are 3 bytes dc.l 320*3 ; sprite_gwidth ; GFX width (of data) *** 24-bit values are 3 bytes mytest 24 bit.zip Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 4, 2014 Author Share Posted December 4, 2014 cant remember if the converter supports 24 bit - you might have to raw import the file. 24bpp is useless for a 2mb machine anyways 2 Quote Link to comment Share on other sites More sharing options...
LinkoVitch Posted December 4, 2014 Share Posted December 4, 2014 24bit colour actually use 32bit pixels. so 320x240x4. It's pretty wasteful, I'd use some nice gfx app to dither your 24bpp down to 15bit and then use that and save 50% of the memory and bandwidth. 2 Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 4, 2014 Share Posted December 4, 2014 (edited) I did test it with 320x240x4 no succes the picture is totally scrambled so it seems the function doesn't support 24bpp. Also displaying a raw 24bpp / 32bit picture converted with gfxconv does not display right with the raptop list, will test some more with 16-bit Edited December 4, 2014 by TXG/MNX Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 4, 2014 Share Posted December 4, 2014 Did another test Used a picture 320x240 16-bit BMP file When I user the raptop gfxconvert function the output looks bad, when I convert the same file manually to 16-bit rgb it works fine. In the raptor examples an rgb sprite is converted to jaguar format without issues. Any idea what is causing the issue with converting ? Is it a limitation when using big data files like this .bmp file I try to convert from bmp to rgb with the raptor function? mytest 16 bit.zip Quote Link to comment Share on other sites More sharing options...
ggn Posted December 4, 2014 Share Posted December 4, 2014 (edited) From experience 16bit support is very flaky in most art programs - usually something weird happens and the colours come out bad. When making tripper I ended up making a 16bit TGA manually (i.e. imagemagick converting the pic to raw 16bit and then using a home cooked program to slap a tga header). You might want to check that out if you like. Edited December 4, 2014 by ggn 1 Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 4, 2014 Share Posted December 4, 2014 I managed to get raw pictures but raptor convert function did sound nice to bad i cannot get it to work. Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 4, 2014 Author Share Posted December 4, 2014 (edited) I have never found a package that can save a BMP in 16 bit format. Use TGA16 (PSP 6/7 can save as this) Edited December 4, 2014 by CyranoJ 2 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 4, 2014 Author Share Posted December 4, 2014 (edited) [WRONG THREAD] Edited December 4, 2014 by CyranoJ Quote Link to comment Share on other sites More sharing options...
Chilly Willy Posted December 5, 2014 Share Posted December 5, 2014 When saving as a 16 bit BMP, there are two modes most programs save in - REAL 16 bit (RGB565), and 15 bit (XRGB1555). When I'm working on the 32X, I need the latter. For the Jaguar, you'd need the former. Two more points - BMPs are always in PC format, i.e., little endian. The Jaguar is going to want the data in big endian format. And finally, the Jaguar 16 bit RGB is actually RBG556, not RGB565. Converters need to take all this into account. Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 5, 2014 Author Share Posted December 5, 2014 BMPs are always in PC format, i.e., little endian. The Jaguar is going to want the data in big endian format. Not for RAPTOR, it's designed to take the windows little endian format so people don't have to arse around. Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 5, 2014 Share Posted December 5, 2014 I use paint.net it saves bmp as 16 bit this is an option. I then manually convert it with gfxconv to jag rgb 16-bit Works ok with raptor no luck. Quote Link to comment Share on other sites More sharing options...
Chilly Willy Posted December 5, 2014 Share Posted December 5, 2014 Not for RAPTOR, it's designed to take the windows little endian format so people don't have to arse around. Yeah, if you can have the function deal with the BMP directly, that's much easier on the user - they just include some BMPs with their project. They just need to make sure they're in the proper format. 1 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 6, 2014 Author Share Posted December 6, 2014 This discussion can continue here: http://atariage.com/forums/forum/160-raptor-api/ Thanks to Albert for creating the new subforums! 4 Quote Link to comment Share on other sites More sharing options...
BillyHW Posted December 10, 2014 Share Posted December 10, 2014 Is there a video someone can post? Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 10, 2014 Author Share Posted December 10, 2014 Is there a video someone can post? You want a video.... of an API? Ummm.... 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.