Difference between revisions of "Myst PICT resources"
(not invalid PICT data, just more complex) |
(restyle) |
||
Line 3: | Line 3: | ||
PICT resources contain the main game graphics in Myst Masterpiece Edition, replacing most [[Myst_WDIB_resources|WDIBs]] of the original edition with true-color versions. | PICT resources contain the main game graphics in Myst Masterpiece Edition, replacing most [[Myst_WDIB_resources|WDIBs]] of the original edition with true-color versions. | ||
− | + | The data is usually in plain [http://en.wikipedia.org/wiki/PICT Apple PICT] format. It starts with the usual 512 byte block of platform-dependent data as in regular MacOS PICT resources. The PICT opcodes are usually a bunch of utility ones (e.g. PnSize and DefHilite) together with a CompressedQuickTime one containing JPEG data. The JPEG block seems to always start at offset 726 into the resource and can thus be simply extracted and decoded, ignoring the complicated PICT format. | |
− | However, a few | + | However, a few PICT resources contain more complex PICT data, also including LongComment opcodes. Pixels are given by a DirectBits opcode so they are uncompressed (you spot those cases immediately from their huge size). Among these exceptions there are PICT 2258 from STONE.DAT, PICTs 4109, 4112, 4113, 4447, 4461, 4462, 4479-4483, 4551, 4779, 11221, 11222 from MYST.DAT. |
+ | |||
+ | Finally, a few perverse PICT resources just retain the WDIB format. Examples are PICTs 2105 and 2112 from STONE.DAT. Fortunately, it is quite easy to discriminate between WDIB and Apple PICT data. |
Revision as of 16:38, 17 October 2008
Myst | |||
Mohawk | Overview | ||
CLRC | EXIT | HINT | INIT |
MJMP | MSND | PICT | RLST |
VIEW | WDIB | HELP | RSFL |
Scripts | Variables |
PICT resources contain the main game graphics in Myst Masterpiece Edition, replacing most WDIBs of the original edition with true-color versions.
The data is usually in plain Apple PICT format. It starts with the usual 512 byte block of platform-dependent data as in regular MacOS PICT resources. The PICT opcodes are usually a bunch of utility ones (e.g. PnSize and DefHilite) together with a CompressedQuickTime one containing JPEG data. The JPEG block seems to always start at offset 726 into the resource and can thus be simply extracted and decoded, ignoring the complicated PICT format.
However, a few PICT resources contain more complex PICT data, also including LongComment opcodes. Pixels are given by a DirectBits opcode so they are uncompressed (you spot those cases immediately from their huge size). Among these exceptions there are PICT 2258 from STONE.DAT, PICTs 4109, 4112, 4113, 4447, 4461, 4462, 4479-4483, 4551, 4779, 11221, 11222 from MYST.DAT.
Finally, a few perverse PICT resources just retain the WDIB format. Examples are PICTs 2105 and 2112 from STONE.DAT. Fortunately, it is quite easy to discriminate between WDIB and Apple PICT data.