Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Mugenfan
20
Years of Service
User Offline
Joined: 3rd Oct 2004
Location: Hier
Posted: 4th Oct 2004 01:22
I have a little prob,i want to open pcx images for a mugen project,the program converts the sff images to pcx automatical but the only problem is i can not open pcx images,i convert everything with sfftopcx 2.0.
I hope you could help me
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 4th Oct 2004 01:57
What are you trying to open the PCX files in ? If its DBPro, then it wont - no-one uses PCX files anymore, and so you would have to do your own reader.


Come to the UK Convention on the 23rd & 24th of October
Mugenfan
20
Years of Service
User Offline
Joined: 3rd Oct 2004
Location: Hier
Posted: 4th Oct 2004 04:18
I think i use dbc then.
Thats a little easier than creating a c++ dll file,because i am not really into c++.
Thank you anyway.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 4th Oct 2004 13:05
You dont necessarily have to make a C++ DLL.

You could try reading in the PCX file as bytes or Words. There must be a webpage somewhere explaining the sytanx of a PCX file. It must be something simple like width,height,depth, etc. Or maybe a pallete list. I thought PCX were like bitmaps?

Anyways, as you're reading it in you dump it into a memblock which you then make into an image (make image from memblock img,memblocknum).

Thats my theory without doing ANY research into a PCX filetype.

The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 4th Oct 2004 14:30
I had written some PCX file loading methods in QBASIC a LOOOOONG time ago, and I was new to common file formatts then. It's not really a hard file to read. You might want to check out www.myfileformatts.com (i think that's the site) for info on it. The hardest part of PCX is RLE encryption. RLE is simple to understand though, if the byte value is greater than 250 (i think it was 250, been a while) then it is a run. The size of the run would then be 255 - 250, or 5. The next pixel would be the color of this run, say 16. so that means, you would put 5 pixels in a row of color 16 from the color palette.

Current Projects: Verious things right now. Lots of utils for game making. Hopefully something solid soon.

http://www.geocities.com/djpeterson83
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 4th Oct 2004 18:19 Edited at: 4th Oct 2004 22:27
Here, I did this some years ago - the code is in CodeBase - includes a handy DBC function you can use to load and render PCX images with. It's fast, but using a native format would be faster:

http://www.thegamecreators.com/?m=codebase_view&i=6347989a2cbc1781b9e94c3253e0c249

Cheers,

Rich

"I am not young enough to know everything."
- Oscar Wilde
Supremacy
21
Years of Service
User Offline
Joined: 30th Dec 2003
Location:
Posted: 4th Oct 2004 22:16
i found a really good .pcx image viewer, also views other formats, for free, only has 800kbs , good to download and keep in hardrive:

http://www.programmersheaven.com/d/click.aspx?ID=F30178&URL=http%3A%2F%2Fwww.cadsofttools.com%2FDownload%2FABViewer.zip

Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 4th Oct 2004 22:28
Not much use in a game though? If you want a good free image viewer, use XNView.

"I am not young enough to know everything."
- Oscar Wilde
Mugenfan
20
Years of Service
User Offline
Joined: 3rd Oct 2004
Location: Hier
Posted: 4th Oct 2004 22:55
Thank you for all your reactions i will give it a try.
Mugenfan
20
Years of Service
User Offline
Joined: 3rd Oct 2004
Location: Hier
Posted: 4th Oct 2004 23:08
pcx show worked but it is a little slow and i need the pcx for character animation too,i think i use darkbasic classic again.

Login to post a reply

Server time is: 2025-05-28 04:03:17
Your offset time is: 2025-05-28 04:03:17