dMZX Forums: png2smzx - dMZX Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

png2smzx Smzx Mode 3

#31 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 17 August 2004 - 11:35 PM

well hopefully it'll also make making custom graphics easier (so long as you remember there is a 4 colors per 8x14 area).
0

#32 User is offline   apage43 

  • Veteran Member
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,199
  • Joined: 13-November 00
  • Gender:Male

Posted 18 August 2004 - 02:40 AM

But remember that smzx is 4x14 per tile, and the 8x14 area will be cut to 4x14 most poorly. It simply ignores the pixels that arent in the right row. ;) You may want to create the stuff at 4x14 tiles and then expand it's width before you convert it

This post has been edited by apage43: 18 August 2004 - 02:40 AM

0

#33 User is offline   Revvy 

  • Jeez guys, there's no need to be narky.
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,520
  • Joined: 05-March 01
  • Gender:Male
  • Location:Ontario, Canada

Posted 18 August 2004 - 04:05 AM

I recommend porting to C/SDL and using SDL_Image to accept many different image types besides png.
<+AFK> Bringing whisky to my mother is like irrigating a lake.

<+AFK> dormando's apathy is palpable.
* AFK palpates
<dormando> stop that

<Malwyn> undressing with revvy a little over a metre away. new definition of awkward.
0

#34 User is offline   RoSS 

  • RIP Fred Friedberg 2004
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,283
  • Joined: 22-October 00
  • Gender:Male
  • Location:Right in front of behind you.

Post icon  Posted 18 August 2004 - 05:48 AM

Revvy, on Aug 17 2004, 11:05 PM, said:

I recommend porting to C/SDL and using SDL_Image to accept many different image types besides png.

Pfft. I'm sure PHP can handle any type of image, really, he's just using png-specific functions. I mean, PHP has a command for everything so why not other image types =P
-RoSS
<img src="http://ross.box43.net/sig.php/sig.png" border="0" class="linked-sig-image" />
0

#35 User is offline   apage43 

  • Veteran Member
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,199
  • Joined: 13-November 00
  • Gender:Male

Posted 18 August 2004 - 05:56 AM

RoSS is right.
although the only other formats I can think of are GIF and JPG that you might actually want to use.
GIF, is restricted to palette images
JPG is restricted to truecolor
PNG can be both and also always decodes the same way and is lossless
so I make you use it. Ha. ;)
0

#36 User is offline   Dr Lancer-X 

  • 電波、届いた?
  • Group: DigiStaff
  • Posts: 8,938
  • Joined: 20-March 02
  • Location:ur mom nmiaow

Posted 18 August 2004 - 06:29 AM

png is infinitely better than any other bitmap format anyway.. wtf else do you NEED?
Posted Image
<Malwyn> Yes, yes. Don't worry I'd rather masturbate with broken glass than ask you for help again. :(
0

#37 User is offline   paulguy 

  • No furry sex
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,548
  • Joined: 14-July 02
  • Gender:Male

Posted 18 August 2004 - 02:12 PM

What is SMZX mode 3?


Why-Fi: but I'M MATURE ENOUGH TO BE A MODERATOR!!!!!!!!!!
0

#38 User is offline   apage43 

  • Veteran Member
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,199
  • Joined: 13-November 00
  • Gender:Male

Posted 18 August 2004 - 02:38 PM

paulguy:

Quoting Koji in the Vapourware Platformer thread:

Quote

Mode 3's color configuration iirc is in a offset pointer style, iirc, where the color assigned to a character is the offset in the 256 color palette to the 4 colors it uses,

EDIT: IOW if you have a char that is color cB7 then the colors used for that character are cB7 (00) cB8 (10) cB9 (01) and cC0 (11), which helps alot in setting up unique palletes (64 totally unique ones) but in using this method, you might waste space on the palette with lots of repeated colors. But hell it's still easier to use than the original smzx modes, which could be removed since no one will use them in light of this easier to use mode!

0

#39 User is offline   Smallhacker 

  • Hey! My monitor turned black!
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 16-September 02
  • Location:Sweden

Posted 18 August 2004 - 09:30 PM

apage43, on Aug 18 2004, 07:56 AM, said:

RoSS is right.
although the only other formats I can think of are GIF and JPG that you might actually want to use.
GIF, is restricted to palette images
JPG is restricted to truecolor
PNG can be both and also always decodes the same way and is lossless
so I make you use it. Ha. ;)

What about BMP? ;)
Smallhacker Lexicon:

Smallhacker: (noun) -s ; Read the post above.
Small Hacker: (noun) -s ; Typo.
Smallhacker Counter: (noun) -s ; If set to 1, it allows 8 colors/char without resoloution loss.

Sign version 2.5
0

#40 User is offline   RoSS 

  • RIP Fred Friedberg 2004
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,283
  • Joined: 22-October 00
  • Gender:Male
  • Location:Right in front of behind you.

Post icon  Posted 18 August 2004 - 10:18 PM

Smallhacker, on Aug 18 2004, 04:30 PM, said:

What about BMP? ;)

Lancer-X, on Aug 18 2004, 01:29 AM, said:

png is infinitely better than any other bitmap format anyway.. wtf else do you NEED?


That basicly answers your question. To further answer you question, nearly all of the newest (and not-so-new) graphical editors (even MSPaint!) will save as png. PNG is just a generally better format.
-RoSS
<img src="http://ross.box43.net/sig.php/sig.png" border="0" class="linked-sig-image" />
0

#41 User is offline   Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 19 August 2004 - 12:29 AM

RoSS, on Aug 18 2004, 04:18 PM, said:

That basicly answers your question. To further answer you question, nearly all of the newest (and not-so-new) graphical editors (even MSPaint!) will save as png. PNG is just a generally better format.

And smaller ;)
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
0

#42 User is offline   Micah 

  • Ancient Member
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 5,330
  • Joined: 25-January 03
  • Gender:Male

Posted 19 August 2004 - 12:59 AM

The saving quality of JPEG would add extra colors in there,
and GIF loses color formation as well unless you convert from
another format.
♫ ▄ █ ▄ █ ▄ █ ▄
0

#43 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 19 August 2004 - 02:38 AM

Well, you know, converting to smzx will lose color information too... I mean gif is more than adequate for this application.
0

#44 User is offline   LogiCow 

  • Holiday cow
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,671
  • Joined: 18-July 02
  • Gender:Male
  • Location:Quebec

Posted 19 August 2004 - 04:12 AM

Sometime an image will be smaller in .gif than in .png.
Also with specific programs you can have .gif lossy which makes pictures much smaller.

And for big photos .jpg is the one and only format to use.


Otherwise .png is good ;)
0

#45 User is offline   Pyro1588 

  • wojtek
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 20-October 02
  • Gender:Male
  • Location:Minnesota

Posted 19 August 2004 - 09:57 PM

lessee, here's my result:
i edited john's banjo the clown avatar for this (i think i cropped it vertically one and added however much was needed horizontally for it to fit 8x14) and converted it. smzx freezes whenever i try to load the palette. then i converted tails.gif (first frame) to png and tried converting it to smzx. all i got was a blocky crappy image that in no way resembled tails.
successes - 0
<Tox> bah. I may as well give in and shop australia. D:
<pyro1588> "welcome to australia, can i help you find what you're looking for?"
<Tox> pyro1588, I'm giving you the most reproachful of glares right now.
--------
Go show those nutty Koreans what us crazy Europeans are made of pirate.gif pirate.gif pirate.gif - Saike
<exophase> The old Commodore strategy of, "Go friggin' bankrupt!"
<wervyn> Go away! I'm writing the same engine I always do!
0

#46 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 20 August 2004 - 02:06 AM

That's because you suck... try being less sucky... then you will have success.
0

#47 User is offline   Pyro1588 

  • wojtek
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 20-October 02
  • Gender:Male
  • Location:Minnesota

Posted 20 August 2004 - 11:46 PM

koji: what?
<Tox> bah. I may as well give in and shop australia. D:
<pyro1588> "welcome to australia, can i help you find what you're looking for?"
<Tox> pyro1588, I'm giving you the most reproachful of glares right now.
--------
Go show those nutty Koreans what us crazy Europeans are made of pirate.gif pirate.gif pirate.gif - Saike
<exophase> The old Commodore strategy of, "Go friggin' bankrupt!"
<wervyn> Go away! I'm writing the same engine I always do!
0

#48 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 21 August 2004 - 11:38 AM

*shrugs* I wasn't being serious..

Anyway, the only solutions I can reccomend are

1) Make sure that the resolution of the picture is a magnitude of 4x14

2) Take your time looking over your image to make sure that there aren't more than 4 colors in every 4x14 section of the picture.

3) Make sure that there aren't more than 256 colors in the image, (Mostlikely you'd want to even shoot for less than that... more like 16 to 32 colors.)

There, if you do that theres absolutely NO reason for the converter to screw things up. If it sends you more garbage after that I don't know what to tell you.
0

#49 User is offline   Dr Lancer-X 

  • 電波、届いた?
  • Group: DigiStaff
  • Posts: 8,938
  • Joined: 20-March 02
  • Location:ur mom nmiaow

Posted 22 August 2004 - 10:22 PM

Koji: Actually the resolution would have to be a magnitude of 8x14 because of the way apage's prog works. It discards every second column.
Posted Image
<Malwyn> Yes, yes. Don't worry I'd rather masturbate with broken glass than ask you for help again. :(
0

#50 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 22 August 2004 - 11:29 PM

My mistake.
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users