Zerosquare Posted June 3, 2010 Report Share Posted June 3, 2010 Just tried Zeros convertors and they work great THANKS!You're welcome SebRmv : to view CRY pictures on a PC, there's JagView, but it displays the colors slightly wrongly (so it's not a good tool for debugging). If I can find some time, I'll make a PC viewer for CRY files. Link to comment Share on other sites More sharing options...
SebRmv Posted June 3, 2010 Author Report Share Posted June 3, 2010 Subsidiary question: how to view CRY15/RGB15 picture on a Jag? I naively thought it was just needed to add VARMOD when setting VMODE, but it does not seem to work as I expect... Link to comment Share on other sites More sharing options...
Zerosquare Posted June 3, 2010 Report Share Posted June 3, 2010 Here's a quickly-made viewer / converter for CRY, RGB16 and mixed-mode pictures : view_jag.zip Check readme.txt inside the archive to see how it is used. Seb : I never used mixed mode, sorry. Link to comment Share on other sites More sharing options...
Cyrano Jones Posted June 3, 2010 Report Share Posted June 3, 2010 Seb, I wouldnt worry about the colours being wrong - the output files are full of random pixels and don't wrap at the correct end of line positions. The pixels it does get in the right place are all the correct colour. Link to comment Share on other sites More sharing options...
Cyrano Jones Posted June 3, 2010 Report Share Posted June 3, 2010 Subsidiary question: how to view CRY15/RGB15 picture on a Jag? I naively thought it was just needed to add VARMOD when setting VMODE, but it does not seem to work as I expect... Put the jag in 16bit CRY and set VARMOD. Works fine Link to comment Share on other sites More sharing options...
SebRmv Posted June 4, 2010 Author Report Share Posted June 4, 2010 Are these four images correct? (these are ASM files, to include in a source file) space.zip Link to comment Share on other sites More sharing options...
Cyrano Jones Posted June 4, 2010 Report Share Posted June 4, 2010 I tried all 4 in my app and they all looked like random data... however your header in the .s says 320x200 the image i uploaded was 340x255.... so that might explain that Link to comment Share on other sites More sharing options...
SebRmv Posted June 4, 2010 Author Report Share Posted June 4, 2010 I tried all 4 in my app and they all looked like random data... however your header in the .s says 320x200 the image i uploaded was 340x255.... so that might explain that yes, these are 320x200 images (this should correspond to the bmp you posted above) Link to comment Share on other sites More sharing options...
Cyrano Jones Posted June 4, 2010 Report Share Posted June 4, 2010 You are quite correct, they're 320x200 (my mistake - I changed the format in my app after posting) - however the files are still junked :/ Link to comment Share on other sites More sharing options...
Zerosquare Posted June 4, 2010 Report Share Posted June 4, 2010 I converted the files to binary (using a program written in 5 minutes ^^), and all of them display fine using the tool I posted yesterday. CRY15 and RGB15 files also work when using mixed-mode. So maybe there's something wrong with your display code, or your assembler is somehow generating junk... Here are the files in binary form if it's useful : space.zip Link to comment Share on other sites More sharing options...
SebRmv Posted June 4, 2010 Author Report Share Posted June 4, 2010 Would love to learn the final word of the story. Cyrano, could you please post the piece of code you are using? I can post mine if you wish (but it uses my library). Anyway, I fixed a bug in my converter. The 15 bits mode were flawed, thanks for having spotted that (even if it seems it might be by accident ) The bad news is that I have to recompile a Windows compatible version if I want to make a binary distrib... Link to comment Share on other sites More sharing options...
SebRmv Posted June 6, 2010 Author Report Share Posted June 6, 2010 Here is the code I used to test the four images... Just change the way VMODE is initialised depending on the image format. #include <jagdefs.h> #include <jagtypes.h> #include <stdlib.h> #include <interrupt.h> #include <display.h> #include <sprite.h> #include <sound.h> #include <joypad.h> #include <console.h> extern phrase image; int main(int argc, char *argv[]) { SET_SHORT_INT(CRY16|CSYNC|BGEN|PWIDTH4|VIDEN,VMODE); // for CRY16 // SET_SHORT_INT(RGB16|CSYNC|BGEN|PWIDTH4|VIDEN,VMODE); // for RGB16 // SET_SHORT_INT(CSYNC|BGEN|PWIDTH4|VIDEN|VARMOD,VMODE); // for CRY15/RGB15 init_interrupts(); init_display_driver(); display *d = new_display(0); d->x = 16; d->y = 8; show_display(d); sprite *s = new_sprite(320,240,0,0,DEPTH16,&image); attach_sprite_to_display_at_layer(s,d,1); while(1) { vsync(); } return 0; } Link to comment Share on other sites More sharing options...
Cyrano Jones Posted June 7, 2010 Report Share Posted June 7, 2010 Try this one... it converts as garbage here (I know my code is correct, converting with zeros prg works) NEBULA.bmp Link to comment Share on other sites More sharing options...
SebRmv Posted June 7, 2010 Author Report Share Posted June 7, 2010 Here are the converted image (in ASM format) NEBULA.zip Link to comment Share on other sites More sharing options...
Cyrano Jones Posted June 8, 2010 Report Share Posted June 8, 2010 Must be a problem with the windows builds then, 1.7 and GUI 2.0 versions still making junk files, but the one you posted above was good. Link to comment Share on other sites More sharing options...
SebRmv Posted June 8, 2010 Author Report Share Posted June 8, 2010 Ok, so I'll have a look at the Windows port (if I am courageous enough) Link to comment Share on other sites More sharing options...
rocky1138 Posted April 14, 2013 Report Share Posted April 14, 2013 Sorry to bring this up from the dead but I can't find a copy of this anywhere. The Removers' website is down and searching google for "converter-0.1.8.tar.gz" brings up nothing. Anyone got a copy I can have / anything on github? Link to comment Share on other sites More sharing options...
GT Turbo Posted April 14, 2013 Report Share Posted April 14, 2013 Sorry to bring this up from the dead but I can't find a copy of this anywhere. The Removers' website is down and searching google for "converter-0.1.8.tar.gz" brings up nothing. Hello, The Removers website run nicely, i have done a download on it and it run : http://removers.free.fr/softs/download.php GT Link to comment Share on other sites More sharing options...
Orion_ Posted April 18, 2014 Report Share Posted April 18, 2014 I nice addition to this converter would be the "--header" option of the original tga2cry I need to convert a lots of pictures with different size, so storing the width/height inside the final picture binary would be nice you could store it using long, so width.l height.l makes 8bytes, the data are still phrase aligned tga2cry have this option but it don't have the "auto pad width to phrase boundary", which is required for all the pictures I have Link to comment Share on other sites More sharing options...
SebRmv Posted April 18, 2014 Author Report Share Posted April 18, 2014 Thanks for the suggestion. I will add the option very soon (hopefully tomorrow). What is the exact behaviour of tga2cry when the --header option is enabled? Once added, I plan to make a source release. Will you be able to build yourself the binary? I have not the compilation chain setup for windows... Link to comment Share on other sites More sharing options...
Zerosquare Posted April 18, 2014 Report Share Posted April 18, 2014 bmp_cry_orion_.zip Link to comment Share on other sites More sharing options...
SebRmv Posted April 19, 2014 Author Report Share Posted April 19, 2014 Just added the --header option. The source is available on my website. It emits two words and a long corresponding to the height of the picture, the width of the picture, and the flags for the blitter (PITCH, DEPTH, WIDTH): this is to mimick tga2cry behaviour. Link to comment Share on other sites More sharing options...
Orion_ Posted April 19, 2014 Report Share Posted April 19, 2014 Thanks for the quick release, but, I tried to install ocaml on windows, it works but I can't compile camlimages :/ Zerosquare > thanks but I use rgb output, not cry Link to comment Share on other sites More sharing options...
SebRmv Posted April 19, 2014 Author Report Share Posted April 19, 2014 Thanks for the quick release, but, I tried to install ocaml on windows, it works but I can't compile camlimages :/ Zerosquare > thanks but I use rgb output, not cry Do you use a cygwin environment? You need to take an old version of camlimages. On archlinux, I packaged this version: https://aur.archlinux.org/packages/camlimages3/ I guess it should compile/work the same on windows/cygwin. I hope you manage to compile it, because I am a bit lazy to install cygwin myself. Please let me know. If you can't do it, I'll give it a try next tuesday at my office during the lunch break. Link to comment Share on other sites More sharing options...
Orion_ Posted April 19, 2014 Report Share Posted April 19, 2014 I tried all I can using cygwin but I'm still stuck when compiling camlimage, seems like a problem with autoconf anyway, I finally made a little tool to adjust the width of the output from tga2cry, it was easier and faster to do.. hopefully someone can make a windows binary release of your tool one day Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now