color+restore problems (Development MSX Fora)MSX Resource Center MSX Info Update - Finnish MSX madness at its best           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 99 gasten en 6 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - color+restore problems

Ga naar pagina ( 1 | 2 Volgende pagina )
Schrijver

color+restore problems

norakomi
msx professional
Berichten: 861
Geplaatst: 11 Februari 2005, 21:26   
Hi there !
my game has developped a new problem
I have managed to make a background and my hero can move over it without erasing the background. I can even make the background scroll. (thanx again 4 all the tips).
Now there is a second problem.
I have made 2 nice bmp files with paint.
the first one is the graphix file, containin the hero, the enemies etc.
the second file is the background.
when i use BMP2MSX.EXE to create a SC5 file, the colors get messed up.
However, in msx I type COLOR+RESTORE and voila, that looks good again.

But it looks good for only 1 of the 2 files.
either the background looks good, and my hero and enemies look terrible,
or my hero looks good, and the background is coloured ugly !

Does anyone have a clue whatsoever how to fix the (minor?) difficulty?

§!§ gracias por su ajuda §!§

enribar
msx lover
Berichten: 107
Geplaatst: 11 Februari 2005, 21:33   
One more thing... I have problems with images SC5 converted with BMP2MSX and Turbo Pascal. When I load images, they are shifted 10 pixels from left to right. Why?
pitpan
msx master
Berichten: 1367
Geplaatst: 11 Februari 2005, 21:40   
Include both graphics in the same file. Therefore, you will get only ONE palette for both elements. The problems that you are experiencing right now happen because you overlap two different palettes.

By the way, get a proper graphic editor! PAINT stinks!

wolf_

msx legend
Berichten: 4629
Geplaatst: 11 Februari 2005, 21:40   
Well uhm, bmp2msx prolly checks for the colors that are there, but even if the *same* colors are used in the image, it doesn't guarantee that the colors are all at the right position, compared to other images!

What I do in photosoup is: make an indexed color image, manually set 16 colors, and then convert the image. This way the 'indexed color' image (and all other images using this scheme) uses the colors as you define them!

Another option is to use bmp2msx, write down somewhere which colors it uses an where those colors are located in the palette. Then check out the other image and manually swap colors and pixels until the palette is exactly the same.

pitpan
msx master
Berichten: 1367
Geplaatst: 12 Februari 2005, 14:50   
Or use an MSX1! Then there are neither software sprites (using BASIC, at least) nor palette problems (there is no palette at all). You see, lots of advantages!

Grauw
msx professional
Berichten: 1002
Geplaatst: 12 Februari 2005, 15:14   
hehehe
norakomi
msx professional
Berichten: 861
Geplaatst: 12 Februari 2005, 22:24   
thanx, Ill get right to it...
now... where did I put that msx1 again.....


norakomi
msx professional
Berichten: 861
Geplaatst: 13 Februari 2005, 22:43   
EUREKA.
IK FIXED IT.
thanks once more......
My background image and my hero/enemy image now use the same color palette. It´s starting to look great.
I´ve got my hero, a background which scrolls,
I´m going to start with music soon.
Anyone got a nice programm to make music for fm-pac which i can play in the background of my basic game?
wolf_

msx legend
Berichten: 4629
Geplaatst: 13 Februari 2005, 22:50   
Moonblaster, includes an easy basic replayer
NYYRIKKI
msx master
Berichten: 1500
Geplaatst: 13 Februari 2005, 23:28   
The problem is, that you really have only 16 color pallette and you need to spread that to both images.

I think, that next is quite a good way to get good result:
- First estimate, how much colors are needed for backround and how much for other things. (For example 1-10 (X) for backround and 11-15 (Y) for elements)

- Convert backround so, that Y colors are defined as "no use" and rest are "automatic color"
- Convert elements so, that X colors are defined as "automatic color" and Y colors are defined with previous "automatic color" values now selected as "customize color"

- Save elements

- Convert backround again with all "customize color" palette taken from elements.

- Save backround


AuroraMSX

msx master
Berichten: 1227
Geplaatst: 15 Februari 2005, 12:41   
Quote:

It´s starting to look great.



Any chance we get to see some (fabricated) screenshots?
norakomi
msx professional
Berichten: 861
Geplaatst: 19 Februari 2005, 21:24   
all in good time
norakomi
msx professional
Berichten: 861
Geplaatst: 24 Februari 2005, 16:05   
Quote:



Any chance we get to see some (fabricated) screenshots?




it is time for a screenshot yes, (also because I have some questions, which I´d like to ask using this screenshot.)




now, what I´d like to do is fade the blue color spectrum into a red color spectrum. resulting into this:



Quote:


DarQ
fori=0to7 : forj=0to31 : x=vpeek(&h7680+j)-17 : x=x+(xand&h88)/8 : vpoke&h7680+j,x : nextj : color=restore:nexti:cls



this trick (thanx DarQ) gives a full color fadeout (blue, red and green),
does someone know how to fade the blue into red (or into green)?
norakomi
msx professional
Berichten: 861
Geplaatst: 24 Februari 2005, 16:32   
D-Tail: My file so far is 3 kb !!!

I have got a few enemies passing on the timeline and the bottom of the screen (see 1st picture above) scrolls horizontaly (scrolling the entire screen makes my game too slow, which makes the background a bit boring, that´s why I´m looking to colorfade the background.

So minimizing much, I might stomp level one in 6kb........
[D-Tail]

msx guru
Berichten: 2991
Geplaatst: 24 Februari 2005, 18:53   
Sounds good!
 
Ga naar pagina ( 1 | 2 Volgende pagina )
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.