NT DfW palette wierdness


[ Zettels Traum ] [ search / suche ]

von dp am 06.Maerz 97 um 01:19:45:

zu: Perlen aus dem Strom der Nachrichten im direct_L von Daniel am 22.Dezember 96 um 02:00:59:

On a side note, I just discovered a Brand New Bug in Director 5.01 -
officially confirmed by MM Tech Support. It seems that Director's
internal "System - Win" palette gets completely hosed in Win NT 4.0, when
the end-users monitor is set to 16 or 32 bit color mode.

I was working on a project that needed to be released on Win 3.1, Win 95
and Win NT. We needed the artwork to be in 256 colors and mapped to the
Windows system palette. I figured that the safest way to go would be to
use Director's internal "System - Win" palette. Since changing the color
depth in Windows requires changing a control panel setting and restarting
Windows, we did not want our end-users to be put through all this, just
to view our app. We decided to let them view the app in any color depth
of 256 or greater..

The "System - Win" palette works great in Win 3.1 and Win 95 at all color
depths 256 or greater. It also works on Win NT at a color depth of 256
only. Higher than 256 color mode on Win NT will replace any pixel with a
palette index of 8, 9, 246, or 247 with the color black - extremely ugly
if you use these indexes.

Thank God a workaround exists. Since Director has no problem whatsoever
using custom palettes, simply create a custom palette from the "System -
Win" palette in Director and drop it in the score anywhere where you
would normally want the "System - Win" palette. This effectively tricks
Director into using the exact same palette, with no adverse side effects.

Hope this helps someone, sometime, somewhere

Eric Mueller


Dazu:























D. Plänitz