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
HP's Implementation of OpenGL: HP 9000 Workstations > Chapter 4 Running OpenGL Programs

Running HP's Implementation of the OpenGL Stereo Application

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

With HP's implementation of OpenGL and the Visualize-FX family of graphics devices, it is now possible to run HP's implementation of OpenGL "stereo in a window" mode. Unlike previous HP stereo implementations, "stereo in a window" affects only OpenGL windows that have been created with "stereo capable" GLX visuals. The remainder of the X11 screen is rendered in non-stereo mode without any flickering or color artifacts.

Following are the steps required to run HP's implementation of OpenGL "stereo in a window" mode:

  1. Find out if your monitor is currently configured in a mode that supports stereo. This can be done by running the command:

    export DISPLAY=myhost:x.y
    /opt/graphics/OpenGL/contrib/xglinfo/xglinfo

    The output from xglinfo lists the OpenGL capabilities of the specified X Display, and includes all GLX visuals that are supported. If one or more of the listed GLX visuals are marked as stereo capable, then you can proceed to step three.

  2. If none of the GLX visuals support stereo, you will need to re-configure your monitor to a configuration that supports stereo. Note that you can use the "Monitor Configuration" component of SAM to re-configure you monitor, or you can execute the following command:

    /opt/graphics/common/bin/setmon graphics device

    Note that graphics device is a name such as "/dev/crt" that is included on the Screen line in the /etc/X11/X*screens file for the X Server that you want to configure for stereo. The setmon command is interactive and will present you with the possible monitor configurations allowable for the specified device. You should select one of the configurations that is listed by setmon as stereo capable. If none of the configurations indicate stereo capability, then your graphics device cannot be used for OpenGL stereo rendering.

    After successfully re-configuring your monitor, the X Server will be restarted, and you can verify the availability of GLX stereo visuals by running the xglinfo command again.

  3. To select one of the stereo capable GLX visuals through OpenGL, the GLX_STEREO enumerated value should be passed to either glXChooseVisual() or glXGetConfig(). Once a stereo visual has been selected, it can be used to create a stereo window, and glDrawBuffer() can then be called to utilize both the right and left buffers for rendering stereo images.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.