Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Graphics Administration Guide: HP 9000 Workstations and Servers > Chapter 5 X Windows: HP-UX 10.x

HP Visualize-FX Device-Dependent Information

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

This section includes information on the HP Visualize-FX2, HP Visualize-FX4 and HP Visualize-FX6 graphics devices:

  • The HP Visualize-FX2 has 8 overlay planes, 24 image planes, a 24-bit Z buffer and 8 hardware colormaps.

  • The HP Visualize-FX4 has 8 overlay planes, 48 image planes, a 24-bit Z buffer and 8 hardware colormaps.

  • The HP Visualize-FX6 has 8 overlay planes, 48 image planes, 16 alpha planes, a 24-bit Z buffer and 8 hardware colormaps.

HP Visualize-FX graphics devices contain 2D hardware acceleration similar to that in other HP Visualize devices as well as 3D acceleration for geometry, lighting, and shading. Optional texture mapping acceleration is also available.

Supported Visuals

HP Visualize-FX graphics devices support all of the following visuals:

  • Class PseudoColor Depth 8 Layer Image

  • Class PseudoColor Depth 8 Layer Overlay

  • Class PseudoColor Depth 8 Layer Overlay Transparent

  • Class TrueColor Depth 8 Layer Image

  • Class PseudoColor Depth 12 Layer Image

  • Class DirectColor Depth 12 Layer Image

  • Class TrueColor Depth 12 Layer Image

  • Class DirectColor Depth 24 Layer Image

  • Class TrueColor Depth 24 Layer Image

The following visuals are enabled by default on the HP Visualize-FX2:

  • Class PseudoColor Depth 8 Layer Image- supports DBE hardware double-buffering

  • Class PseudoColor Depth 8 Layer Overlay- supports DBE software double-buffering

  • Class PseudoColor Depth 8 Layer Overlay Transparent- supports DBE software double-buffering

  • Class TrueColor Depth 8 Layer Image- supports DBE hardware double-buffering

  • Class DirectColor Depth 12 Layer Image- supports DBE hardware double-buffering

  • Class TrueColor Depth 12 Layer Image- supports DBE hardware double-buffering

  • Class DirectColor Depth 24 Layer Image- does not support DBE hardware or software double-buffering

  • Class TrueColor Depth 24 Layer Image- does not support DBE hardware or software double-buffering

The default set of visuals on the HP Visualize-FX4 and HP Visualize-FX6 depend on the stereo mode setting.

In non-stereo mode, the following visuals are enabled by default on the HP Visualize-FX4 and HP Visualize-FX6:

  • Class PseudoColor Depth 8 Layer Image- supports DBE hardware double-buffering

  • Class PseudoColor Depth 8 Layer Overlay- supports DBE software double-buffering

  • Class PseudoColor Depth 8 Layer Overlay Transparent- supports DBE software double-buffering

  • Class TrueColor Depth 8 Layer Image- supports DBE hardware double-buffering

  • Class DirectColor Depth 24 Layer Image- supports DBE hardware double-buffering

  • Class TrueColor Depth 24 Layer Image- supports DBE hardware double-buffering

In stereo mode, the following visuals are enabled by default on the HP Visualize-FX4 and HP Visualize-FX6:

  • Class PseudoColor Depth 8 Layer Image - supports DBE hardware double-buffering

  • Class PseudoColor Depth 8 Layer Overlay - supports DBE software double-buffering

  • Class PseudoColor Depth 8 Layer Overlay Transparent - supports DBE software double-buffering

  • Class TrueColor Depth 8 Layer Image - supports DBE hardware double-buffering

  • Class DirectColor Depth 12 Layer Image - supports DBE hardware double-buffering

  • Class TrueColor Depth 12 Layer Image - supports DBE hardware double-buffering

  • Class DirectColor Depth 24 Layer Image - supports DBE hardware double-buffering

  • Class TrueColor Depth 24 Layer Image - supports DBE hardware double-buffering

NOTE: Note: When running xdpyinfo or calling the XGetVisualInfo() Xlib function, some extra duplicate visuals may appear in the visual list. These extra visuals are created on behalf of the OpenGL extension to X (GLX). If necessary, the extra visuals can be disabled using the DisableGlxVisuals screen option. See "Disabling the GLX Visuals" below for more information.

Supported Screen Options

The following Screen Options are supported:

  • CountTransparentInOverlayVisual

  • ImageTextViaBitMap

  • EnableIncludeInferiorsFix

  • Enable12BitPseudoColorVisual

  • DisableGlxVisuals

The following additional screen options are supported on the HP Visualize-FX2, HP Visualize-FX4 (stereo mode) and HP Visualize-FX6 (stereo mode):

  • Disable12BitDirectColorVisual

  • Disable12BitTrueColorVisual

The following additional screen options are supported on the HP Visualize-40FX (non-stereo mode) and HP Visualize-80FX (non-stereo mode):

  • Enable12BitDirectColorVisual

  • Enable12BitTrueColorVisual

HP Visualize-FX Configuration Hints

Overlay Visuals and Overlay Transparency

HP Visualize-FX devices have two visuals in the overlay planes, both depth-8 PseudoColor. The first (default) overlay visual has 256 entries per colormap and no transparency. The second overlay visual has 255 entries per colormap and supports transparency.

To allow applications to determine which visuals are in the overlay planes, both overlay visuals are listed in the "SERVER_OVERLAY_VISUALS" property attached to the root window. The default overlay visual has a transparent type of "0" (None) while the transparent overlay visual has a transparent type of "1" (TransparentPixel).

If you need an overlay colormap that supports transparency, create the colormap using the visual that has transparency in its SERVER_OVERLAY_VISUALS property. To look at the contents of this property, you would use code similar to the following:

{
typedef struct {
VisualID overlayVisualID;
Card32 transparentType;/* None, TransparentPixel, TransparentMask */
Card32 value; /* Either pixel value or pixel mask */
Card32 layer;
} OverlayVisualPropertyRec;

OverlayVisualPropertyRec *pOverlayVisuals, *pOVis;
XVisualInfo getVis;
XVisualInfo *pVisuals;
Atom overlayVisualsAtom, actualType;
...
/* Get the visuals for this screen and allocate. */
getVis.screen = screen;
pVisuals = XGetVisualInfo(display, VisualScreenMask, &getVis, &nVisuals);
pOverlayVisuals = (OverlayVisualPropertyRec *)
malloc ( (size_t)nVisuals * sizeof(OverlayVisualPropertyRec) );

/* Get the overlay visual information for this screen. Obtain
* this information from the SERVER_OVERLAY_VISUALS property. */
overlayVisualsAtom = XInternAtom(display, "SERVER_OVERLAY_VISUALS", True);
if (overlayVisualsAtom != None)
{
/* Since the Atom exists, request the property's contents. */
bytesAfter = 0;
numLongs = ( nVisuals * sizeof(OverlayVisualPropertyRec) + 3 ) / 4;
XGetWindowProperty(display, RootWindow(display, screen),
overlayVisualsAtom, 0, numLongs, False,
AnyPropertyType, &actualType, &actualFormat,
&numLongs, &bytesAfter, &pOverlayVisuals);
if ( bytesAfter != 0 ) {/* Serious Failure Here */} ;

/* Loop through the pOverlayVisuals array. */
...
nOVisuals = numLongs/sizeof(OverlayVisualPropertyRec);
pOVis = pOverlayVisuals;
        while (nOVisuals >= 0)
{
if ( pOVis->transparentType == TransparentPixel )
{/* Found a transparent overlay visual, set ident. aside. */};
pOVis++;
}
XFree(pOverlayVisuals);
/* There might be some additional checking of the found
transparent overlay visuals wanted; e.g., for depth. */
}
XFree(pVisuals);
}

This program segment is not complete; however, its main purpose is to give an idea of how to find an overlay visual having transparency.

Disabling the GLX Visuals

The HP Visualize-FX products are the first set of HP graphics devices that supports the OpenGL extension to X (GLX). If HP OpenGL is installed on an HP Visualize-FX system, then the GLX extension offers new entry points for obtaining more information about X visuals. As part of offering extended visual information, some extra X visuals appear in the X visual list. The extra visuals are simply duplicates of visuals that would normally appear in the X visual list. In case that the extra visuals cause problems with applications, a screen option can be used to disable them.

To disable the GLX visuals, add the DisableGlxVisuals Screen Option to the X*screens file. For example:

Screen /dev/crt/
ScreenOptions
DisableGlxVisuals

HP Visualize-FX Colormaps

HP Visualize-FX devices have a total of 8 hardware colormaps. Two of the colormaps are dedicated to the overlay planes, and the remaining six colormaps are dedicated to the image planes.

Of the 2 overlay colormaps, one is permanently reserved for the default colormap. The other overlay colormap is available to applications.

Of the 6 image colormaps, two are reserved for the 12-bit PseudoColor visual. The other 4 image colormaps are available for applications using other image plane visuals.

Changing the Monitor Type

A configuration tool is available to change the monitor type on HP Visualize-FX devices. Monitor resolution, refresh rate and stereo mode settings may be configured using the setmon tool. To change the monitor type, the setmon command can be executed directly or done through the SAM system administration tool.

The setmon executable is located at /opt/graphics/common/bin/setmon. Under SAM this component is located under the top-level "Display" folder, next to the "X Server Configuration" icon.

NOTE: Changing the monitor type while the X server is running will necessitate killing and restarting the X server.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.