Logicielsmoto.com

Nous sommes le 12 Déc 2024, 22:11

Heures au format UTC + 1 heure




Poster un nouveau sujet Répondre au sujet  [ 37 messages ]  Aller à la page 1, 2, 3  Suivante
Auteur Message
 Sujet du message: cc90 - BMP to MAP
MessagePosté: 05 Jan 2013, 10:43 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
I have been trying to use cc90 to convert a 300x200 4 colours bmp file to MAP. The file is 4bpp, I think I need a 2bpp bmp, but I have been traying several tools(gimp, imagemagick, grafx2) and searching on google on how to get a 2bpp bmp without luck...

Can someone help me on this?, it would be appreciated.


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 05 Jan 2013, 18:09 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1085
Localisation: France (24)
No, a 4bpp should be okay. But with a palette of 4 colours, which means that you have to reduce the number of colours to 4.


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 05 Jan 2013, 19:41 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
Prehisto a écrit:
No, a 4bpp should be okay. But with a palette of 4 colours, which means that you have to reduce the number of colours to 4.


Thanks prehisto, but I already have 4 colours, I did get a MAP file but when I tried to see it with xnview and Sam's plugin it just shows a black 320x200 screen...


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 05 Jan 2013, 19:56 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1085
Localisation: France (24)
Could I have a link to your gfx or could you send me it by email ?


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 05 Jan 2013, 20:16 
Hors ligne

Inscription: 21 Aoû 2006, 09:06
Messages: 1822
Localisation: Brest
W_oo_d a écrit:
did get a MAP file but when I tried to see it with xnview and Sam's plugin it just shows a black 320x200 screen...

Might it be a bug in the plugin? I haven't tested it with gfx produced by cc90.


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 05 Jan 2013, 20:41 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1085
Localisation: France (24)
W_oo_d a écrit:
Thanks prehisto, but I already have 4 colours, I did get a MAP file but when I tried to see it with xnview and Sam's plugin it just shows a black 320x200 screen...

Samuel is right. Do you try to display it on an emulator with a simple LOADP ? If it works on an emulator (or a real computer), no need to change anything in my mixture...


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 13:13 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
I have tried with LOADP and it shows a black screen too. :L


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 13:30 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1085
Localisation: France (24)
Send it to me, then.

Or at least, check if there are some 'non-black' datas in the MAP with an hexadecimal editor.

PS : are you sure that the BMP is exactly 320x200 ? Sometimes, a range of pixels more makes the difference...


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 14:28 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
the map file I get:

00 00 B0 00 00 00 27 18 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 5F 00 00 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 5F 00 00 00 00 00 00 00 0C 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A5 5A FF 00 00 00 00

the bmp details:
testenovo.bmp BMP 320x200 320x200+0+0 4-bit sRGB 4c 32.1KB 0.000u 0:00.000


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 14:39 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
Finally it worked!

I loaded the bmp file in irfanview and then I saw that the resultion was 72x72 and I put it to 0x0 then saved the file and it worked.

This is strange as I created the files on gimp with dpi 0x0 but then when saved they all are 72x72...

:D


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 14:41 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1085
Localisation: France (24)
I'm unforgivable. I had the same problem, and forgot everything about that.


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 14:43 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
well the info is here and ppl can find it :)

Thanks for trying to help


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 15:52 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
Still not all is well.... :eek:

I can convert a 320x200 16 colours bmp file to 40 columns mode

and also a 160x200x16 bmp to mode 160x200 16 colours

but when I try to convert a 320x200 bmp to 4 colours mode I always get a 40 columns mode map file. :evil:

my bmp file is 320x200, 4bpp, 4 colours....


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 16:10 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1085
Localisation: France (24)
The value of bmp.biClrImportant (offset 50 (4 bytes) from start of BMP file) ?


Haut
 Profil  
Répondre en citant le message  
 Sujet du message:
MessagePosté: 06 Jan 2013, 16:35 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 76
Prehisto a écrit:
The value of bmp.biClrImportant (offset 50 (4 bytes) from start of BMP file) ?


00 00 00 7D


Haut
 Profil  
Répondre en citant le message  
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 37 messages ]  Aller à la page 1, 2, 3  Suivante

Heures au format UTC + 1 heure


Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Rechercher:
Aller à:  
cron
Développé par phpBB® Forum Software © phpBB Group
Traduction par phpBB-fr.com