Author Topic: Bmp Extraction  (Read 3458 times)

Offline Cpt_Igloo

  • Newbie
  • *
  • Posts: 9
Bmp Extraction
« on: June 01, 2006, 06:18:29 AM »
Hello everybody! I'm new on this forum.
First, sorry for my poor english, I'm french.

I've realized 2 new tools to extract all bitmaps from OP2. They extract them in Windows BMP.
If someone is interrested, don't hesitate ....

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Bmp Extraction
« Reply #1 on: June 07, 2006, 07:05:40 AM »
Sounds interesting. Are you providing any source? Or just an exe?
 

Offline Cpt_Igloo

  • Newbie
  • *
  • Posts: 9
Bmp Extraction
« Reply #2 on: June 08, 2006, 01:54:06 AM »
Why ? Are you interested by the code ? I don't see any problem to give either the exe or the source.
I've done it with Visual C++.

The problem is : where can I upload them ?

Offline Leviathan

  • Hero Member
  • *****
  • Posts: 4055
Bmp Extraction
« Reply #3 on: June 08, 2006, 03:02:42 AM »
Sounds good :)

You could zip it and use something like megaupload.com

Offline TH300

  • Hero Member
  • *****
  • Posts: 1404
    • http://op3game.net
Bmp Extraction
« Reply #4 on: June 08, 2006, 01:11:49 PM »
if its not bigger than 5 MB, post it in the File Forum: http://forum.outpostuniverse.net/index.php?showforum=10

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Bmp Extraction
« Reply #5 on: June 08, 2006, 11:21:27 PM »
I'm always interested in code.

And is this the map graphics? Or the unit graphics? Or everything? The unit graphics are still a bit of a mystery to me in some ways, so I'd be very interested in any additional info on that one.

Offline Cpt_Igloo

  • Newbie
  • *
  • Posts: 9
Bmp Extraction
« Reply #6 on: June 09, 2006, 01:58:34 AM »
I think it's less than 5 MB. I must verify (i'm at office at this time). I'll post it tomorrow.

There are 2 programs : one for map graphics and one for all other graphics (units, structures and other animations...)

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Bmp Extraction
« Reply #7 on: June 09, 2006, 06:19:42 AM »
Ahh cool, good work.

Do you know the complete file format for the unit graphics? Is it easy to figure out how the unit graphics work from the code? If not, would you care to post the details? I think that'd make for a pretty good thread.

 

Offline Cpt_Igloo

  • Newbie
  • *
  • Posts: 9
Bmp Extraction
« Reply #8 on: June 12, 2006, 02:22:45 AM »
Sorry, I wasn't at home this week-end. I can't post it now, because I have to translate all the texts in english (this will not take a long time).

About unit graphics, my program read only the graphics data. I know there's additional information about animations (how to read the file to create animations for OP2). I have some details about this, but my program don't read them. It only create simple BMPs (be careful using it, it extracts all graphics : 5389 BMPs; it takes a long time to do it).

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Bmp Extraction
« Reply #9 on: June 13, 2006, 07:43:55 AM »
Ahh ok, no.

I think it was mostly animation data that I was unsure about. Although, there were a few images I wasn't so sure about how to determine the correct color depth of. What files are you reading the info from? The .prt file?
 

Offline Cpt_Igloo

  • Newbie
  • *
  • Posts: 9
Bmp Extraction
« Reply #10 on: June 14, 2006, 01:48:48 AM »
Every image is in 256 colors (8 bits). The file used for the info is the .prt (9 palettes). The data is in the BMP (each image refers to a palette in the .prt).
 

Offline Cpt_Igloo

  • Newbie
  • *
  • Posts: 9
Bmp Extraction
« Reply #11 on: June 15, 2006, 02:30:40 PM »
As promised, I've posted exe and source : http://forum.outpostuniverse.net/index.php?showtopic=2913

Offline Cpt_Igloo

  • Newbie
  • *
  • Posts: 9
Bmp Extraction
« Reply #12 on: June 27, 2006, 01:42:26 AM »
It seems there was a problem with the link. Sorry, I'll post it again later...