HP Workstation zx2000 HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi
HP Workstation zx2000 Manual
View all HP Workstation zx2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
HP Workstation zx2000 manual content summary:
- HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 1
OpenGL implementation guide for HP-UX 11.X (IPF version) Document Part Number: 5969-3152 june 2003 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 2
other countries. UNIX® is a registered trademark of The Open Group. Intel® Itanium™ Processor Family is a trademark of Intel Corporation in the U.S. and other countries or loss of information. OpenGL implementation guide for HP-UX 11.X (IPF version) First Edition (june 2003) Document Part Number: 5969 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 3
OpenGL product 1-1 hp's implementation of OpenGL 16 X Window extensions for hp's implementation of OpenGL 1- instructions 2-1 is your system software preloaded with instant ignition 2-1 verify that OpenGL is on your workstation support for the VGL mode 3-1 special considerations 3-1 running hp - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 4
hints 5-1 display list performance 5-2 texture downloading performance 5-5 selection performance 5-5 state change 5-5 optimization of lighting 5-6 occlusion culling 5-6 high frame rate applications 5-6 rescaling normals 5-7 iv OpenGL Implementation Guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 5
on a large number of vendor platforms where the graphics hardware supports a wide range of capabilities (for example, frame buffer only with HP's implementation of OpenGL: ■ OpenGL Programming Guide Instruction on programming in OpenGL, offered in a tutorial format. ■ OpenGL Reference Manual A - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 6
support for 64-bit programming ■ support for threads hp's implementation of the OpenGL libraries The OpenGL product does not support archived libraries. HP : /opt/graphics/OpenGL/lib/hpux64 supported graphics devices The graphics devices that support OpenGL on IPF are ATI™ Fire GL4, - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 7
with it. For information on visual support for graphics devices not in the above list, read the subsequent section "visual support for other graphics devices" on page 0 0 8 8 8 8 24 8 16 16 16 16 TrueColor 24 256 32 0 1 1 0 8 8 8 8 24 8 16 16 16 16 OpenGL implementation guide 1-3 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 8
section "running hp's implementation of the OpenGL stereo application" on page 3-2. Stereo Visual Support for ATI . It will be supported in a future release. visual support for other graphics devices The OpenGL product can also be used with the Virtual Memory Driver (VMD) in implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 9
overview of OpenGL threads support OpenGL supports Level 2 threads. This means HP OpenGL can be used in threaded applications, and more ■ The http://docs.hp.com Web site (search for "Threads" and "Multiprocessing") ■ The OpenGL Programming Guide ■ The OpenGL Reference Manual ■ Threadtime by S. - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 10
application to take advantage of 64-bit capabilities, see the http://docs.hp.com Web site. Search for "64-bit Computing" to find routines, refer to the Reference section or the OpenGL Reference Manual. input and output routines OpenGL was designed to be independent 1-6 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 11
OpenGL extensions for the X Window system (GLX) HP's OpenGL implementation currently supports version 1.2 of the glx extension. The OpenGL refer to the Reference section or the OpenGL Reference Manual. mixing of OpenGL and Xlib The OpenGL implementation conforms Guide. OpenGL implementation - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 12
of OpenGL OpenGL extensions The extensions listed in this section are extensions that HP has created; that is, in addition to those standard functions described in the OpenGL Programming Guide, OpenGL Reference Manual, and OpenGL Programming for the X Window System. draw array set extension For - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 13
using glTexGen or glTexCoord3*; 4. Specify other parameters such as filters just as you would for 2D texturing, but use GL_TEXTURE_3D_EXT for the target. OpenGL implementation guide 1-9 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 14
whiteRGBA[] = {255.0, 255.0, 255.0, 255.0}; GLubyte redRGBA[] = {255.0, 0.0, 0.0, 255.0}; GLubyte greenRGBA[] = {0.0, 255.0, 0.0, 255.0}; GLubyte blueRGBA[] = {0.0, 0.0, 255.0, 255.0}; GLubyte yellowRGBA[]= {255.0, 255.0, 0.0, 255.0}; 1-10 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 15
across the quad. Here's some quad code for a sample. Make sure you have appropriate viewing perspectives. */ glBegin(GL_QUADS); glNormal3f(0., 0., 1.); glTexCoord3f(0.0, 0.0, 0.0); glVertex3f(0.5, 0.5, 0.); glNormal3f(0., 0., 1.); glTexCoord3f(0.0, 1.0, 0.0); OpenGL implementation guide 1-11 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 16
. If the bounding box is not visible, then it is known that the object is not visible and need not be rendered. 1-12 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 17
.Disable/IsEnabled GL_OCCLUSION_TEST_HP Default: Disabled pname variable. Get* GL_OCCLUSION_TEST_RESULT_HP pname variable Default: Zero (0) For related information, see the functions: glEnable, glDisable, and glIsEnabled. OpenGL implementation guide 1-13 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 18
the depth test. This differs from previous Occlusion Culling extensions by allowing the programmer to provide memory for many different Visibility Test results to be returned at the same time. This feature can programmer may conclude that 'buffer' is up to date. 1-14 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 19
back on for rendering the objects glDepthMask(GL_TRUE); glColorMask(GL_TRUE, GL_TRUE,GL_TRUE,GL_TRUE); for ( i=0; i < [Num Objects Tested] ) { if (visBuffer[i] ) { [ Render the ith Object ] } } OpenGL implementation guide 1-15 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 20
visual information that is not included in the OpenGL 1.1 Standard. These extensions are both supported by HP's implementation of the OpenGL API library, but, prior to using them, glXQueryExtensionsString should inquire the visual type or transparency capabilities. 1-16 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 21
GLX_TRANSPARENT_RED_VALUE_EXT GLX_TRANSPARENT_GREEN_VALUE_EXT GLX_TRANSPARENT_BLUE_VALUE_EXT GLX_TRANSPARENT_ALPHA_VALUE_EXT Default: N/A Returns the RGBA data values for the transparent color in a GLX_TRANSPARENT_RGB_EXT GLX visual (not supported on HP servers) OpenGL implementation guide 1-17 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 22
GLX visuals are rated as GLX_NONE_EXT. This extension is implemented for possible future visual support and for use with non-HP servers. Coding to use the GLX_EXT_visual_rating extension is similar to the segments listed above for the GLX_EXT_visual_info extension. 1-18 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 23
of concave quadrilaterals. default visuals Instead of placing the default visual in the deepest image buffer, HP puts the default visual in the overlay planes. EXP and EXP2 fogging The Virtual Memory Driver's implementation of fog applies fog per fragment. Hardware devices implement EXP and EXP2 fog - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 24
identical in both hardware and software, then this may indicate a problem in the application code. HPOGL_PROMOTE_INDIRECT_CONTEXTS This variable may be set to indirect contexts. This behavior is similar to some previous HP graphics devices. Direct contexts generally provide better performance guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 25
instructions This section provides you with the necessary information for determining if your OpenGL product has been installed. is your system software preloaded with instant ignition? Your workstation on your workstation To verify HP OpenGL has been installed on your system. OpenGLRun B.11.23.01 HP - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 26
Workstation" above. If OpenGL is installed, you are done with this section. If OpenGL is not installed, execute this command (as root): /usr/sbin/swinstall ...and follow the installation instructions provided in the document Managing HP OpenGL Run Time Support Files 2-2 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 27
is installed with the OPENGL-DK fileset. The README file in the examples directory contains instructions on how to set up and run the examples. ■ Compile, link and run OpenGL programs that are referenced in the OpenGL Programming Guide, Second Edition published by Addison-Wesley. /opt/graphics - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 28
see in these directories are all drivers for specific graphics devices. All libdd... are loaded automatically at execution time, contingent upon device type. 2-4 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 29
the hp Virtual Memory Driver (VMD) to perform Xlib rendering. VGL provides flexibility for OpenGL users, but does not provide the same level of performance as is available to servers supporting GLX. visual support for perform Xlib rendering after OpenGL rendering. OpenGL implementation guide 3-1 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 30
The following steps are 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 both the right and left buffers for rendering stereo images. 3-2 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 31
source code. contrib/libglut Utilities found in the OpenGL Utility Toolkit as mentioned in the OpenGL Programming for the X Window System manual. contrib/xglinfo Utility to print display and visual information for OpenGL with the X Window system. demos Sample OpenGL programs, including source - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 32
below. #include Instructions for including various additional header files glx.h> linking shared libraries OpenGL is supported using shared libraries that must be HP's ANSI C++ compiler, use the aCC compiler. See the HP Graphics Administration Guide for more information on - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 33
OpenGL utility library libX11 X11 routines libXext X11 extensions libXhp11 HP X11 extension compiling 32-bit and 64-bit applications for the best performance, you must include the gl.h header file supplied with HP's implementation of OpenGL in any source code that makes OpenGL calls. Any - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 34
compiling and linking programs 4-4 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 35
. For further information on OpenGL programming hints that are not HP specific, see Appendix G in the OpenGL Programming Guide and section 6.6 "Maximizing OpenGL Performance" in the OpenGL Programming for the X Window System manual. The programming hints in this chapter are covered in these sections - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 36
after it is created. draw array set extensions glDrawArraySetHP is a HP OpenGL 1.1 extension to vertex arrays which provides a high-speed from a vertex array. However all OpenGL primitive types are supported. Since only glDrawArray calls are made while rendering the 5-2 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 37
in a display list. Another solution would be to use texture objects. Since 3D textures can potentially become very large, they are not cached. OpenGL implementation guide 5-3 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 38
can optimize this type of primitive into a single, very efficient structure. The small cost of adding extra data is offset by this optimization. 5-4 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 39
increased by maximizing the number of vertices per Begin/End pair. If your vertex data in memory is organized in a linear, rather than a random manner, performance is enhanced by taking ■ change attribute settings for capabilities ■ define lights ■ change matrices OpenGL implementation guide 5-5 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 40
such as two-sided lighting, polygon mode GL_LINE, and wide lines. optimization of lighting HP's implementation of OpenGL optimizes the lighting case such that the performance degradation from one light clear operations, avoid the following: ■ depth 8 visuals ■ stereo 5-6 OpenGL implementation guide - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 41
will not need to be normalized as they are transformed into eye coordinates. HP's implementation of OpenGL 1.1 supports the GL_RESCALE_NORMAL_EXT token. It is accepted by the parameter of glEnable, the rescaled normal is: and the fully transformed normal is: OpenGL implementation guide 5-7 - HP Workstation zx2000 | HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 42
disabled, then the square root in the previous fully transformed normal equation is replaced with 1; otherwise, it is calculated as dictated by the OpenGL Spec. If both normalize and rescale are enabled, HP's implementation skips the rescale and does only the normalize. 5-8 OpenGL implementation
OpenGL implementation guide
for HP-UX 11.X (IPF version)
Document Part Number: 5969-3152
june 2003