[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1564.0. "Colour map granularity" by SMAUG::GARROD (An Englishman's mind works best when it is almost too late) Thu Oct 12 1989 20:19

    I have a 4 plane VS2000 colour workstation. We have had a long
    debate this afternoon on how colour maps work. Not to go into
    the debate. But could somebody answer this question.
    
    When using the SESSION MANAGER customize window facility it appears
    that you can only set colours (red, blue, green) in discrete intervals
    of about 6. Ie if you pick an intermediate percentage, hit apply
    and then reselect the customisation the setting will have been rounded
    down to this factor of 6 or so.
    
    I thought each colour map entry had 24 bits, 8 for each colour. If
    that is the case why isn't there a granularity of 256, ie 256 different
    possibilities as against only 16 (100/6)?
    
    As far as I understand it the fact that my workstation is only 4
    plane has nothing to do with the contents of the colour map entries/
    I thought the 4 plane meant that I could only display 16 (2 to the 4th)
    different colours on the screen at once, ie only colours that are
    loaded into the first 16 colour map entries.
    
    Dave

T.RTitleUserPersonal
Name
DateLines
1564.1This is a Session Mgr limitation, not X limitationSTAR::ORGOVANVince OrgovanFri Oct 13 1989 18:4517
    In X a color is represented by 16 bits of data for each of the
    red, green and blue intensities in an RGB values, i.e. they are 
    scaled between 0 and 65535. The session manager presents this
    range to the user with a scale that goes from 0 to 100%. 
    
    This means that the session manager only allows you to select 
    from 101 different red intensities, instead of offering you a 
    choice of 65536 red intensities.
    
    The session manager does the conversion between scale value 
    and color intensity using: 
    
    	color_intensity = (scale_value * 65535) / 100
    
    Thus each scale percentage point changes the color intensity by 
    about 6. 

1564.2VSII/GPX has less granularity alsoDECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Sun Oct 15 1989 23:1313
    Vince has explained the problem you are seeing.  Now for the problem
    you might see on a different system:  Note that as Vince says, the
    protocol has a granularity of 65535 intensities per primary.  When this
    number gets to the device, it then must be scaled to what the h/w can
    render.  In the case of the VS2000/GPX 4-plane you correctly state that
    this granularity should be 256 intensities per primary.  However, if
    you have a 4-plane VSII/GPX my recollection is that you now only have
    16 intensities per primary.  Thus, you will see a limitation greater
    than that of the session manager in this particular hardware.
    
    Burns
    

1564.3PSW::WINALSKICareful with that VAX, EugeneSun Oct 15 1989 23:3910
RE: .2

Wait a minute.  I thought that a GPX, regardless of the number of planes,
gave you 8 bits = 256 intensities per primary, for a total possibility of
16M different colors.  The number of planes merely governs how many of these
can be simultaneously on the screen.  The GPX implements hardware pseudo-color,
or so I thought.

--PSW

1564.4Some GPX's have 4 bits per channelSTAR::BMATTHEWSMon Oct 16 1989 09:116
Well it actually depends on which DAC is used in conjunction with the dragon
chip set(GPX). Dragon doesn't contain a DAC itself. On all but the 4 plane
vs2000/pvax there is 8 bits per channel. For that one board there is only
4 bits per channel.
						Bill

1564.5MU::PORTERmisuse a milk crate today!Mon Oct 16 1989 12:0016
> Well it actually depends on which DAC is used in conjunction with the dragon
> chip set(GPX). Dragon doesn't contain a DAC itself. On all but the 4 plane
> vs2000/pvax there is 8 bits per channel. For that one board there is only
> 4 bits per channel.

	Oooooops.

	I was trying to figure this out with Dave Garrod and
	another guy.   I *insisted* that the DAC absolutely
	definitely was the same on all systems, and therefore
	there had to be another explanation.

	A little knowledge is a dangerous thing, eh?

	Sorry.

1564.6DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Thu Oct 19 1989 20:457
    re .-1:  You are right about a little knowledge.  Note that I had the
    hardware backwards.  Sigh.  Why don't I just shut up about hardware
    and let Bill handle it?
    
    Burns